Re: Pango/GLib debugging in VS2015


I would also like to point you out which is a fork of gtk-win32 having the packages more updated.


On Tue, Jun 6, 2017 at 2:45 AM, Chun-wei Fan (范君維) via gtk-list <gtk-list gnome org> wrote:

Hi Jeffrey,

The issue seems like that we need to get PangoWin32 (and if you are doing this via Cairo, Cairo) thread-safe on Windows.  You might need to for the time being use a private thread (or so) to do this.

With blessings, and cheers!

Jeffrey Sheen 於 2017/6/6 上午 07:35 寫道:
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 <> 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?

gtk-list mailing list
gtk-list gnome org

gtk-list mailing list
gtk-list gnome org

Ignacio Casal Quinteiro

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