Re: Pango/GLib debugging in VS2015

N.B. I've found pdb files related to the GTK DLLs distributed as part of the hexchat gtk-win32 project (

Executing with these in place, the VS 2015 debugger is showing me that there is an intermittent issue when "pango_layout_clear_lines" is called.

Ultimately a NULL pointer is passed to glib's "magazine_chain_prepare_fields" function.

The issue can be recreated by creating and destroying a UI dialogue a specific number of times. Each text block in the UI dialogue is rendered by creating and destroying PangoLayout and PangoFontDescription objects.

As this is an intermittent issue, and at a glib memory management level, I am not sure how to proceed.

Any advice would be appreciated.

On 5 June 2017 at 20:08, Jeffrey Sheen <jeffrey sheen00 alumni imperial ac uk> wrote:
Dear list,

I've got an issue with Pango, and have tried asking around in the GTK channel on, but no bites.

Memory Access Violations are occurring upon PangoLayout function calls. I'm developing in MS VS2015, with no error text sent to output terminal.

It's a post "pango_layout_set_text" call to "pango_layout_get_pixel_extents" that's bombing out in "gobject-2.0.dll".

Do you have any tips on how to debug GTK in  VS?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]