After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704540 - GTK+ programs crash when any window is popped up from the running GTK+ program
GTK+ programs crash when any window is popped up from the running GTK+ program
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: Backend: X11
3.9.x
Other Windows
: Normal critical
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-07-19 11:04 UTC by Fan, Chun-wei
Modified: 2013-07-22 07:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fan, Chun-wei 2013-07-19 11:04:25 UTC
Hi,

When I was running the gtk3-demo program, it runs normally until I attempt to launch any of the demos from the left pane, which causes the gtk3-demo to crash, with this message displayed on the console window (cmd.exe) that I used to launch gtk3-demo.exe:

Assertion failed: CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count), file ..\..\src\cairo-surface.c, line 930

To further verify this situation, I also ran the gtk3-demo-application, and whatever toolbar or menu item that causes a window to pop up is selected, I am greeted with the same crash with the exact same assertion.

Versions of Cairo used (in addition to the latest code from master for the GNOME parts of the GTK+ stack when I pulled from GIT master yesterday afternoon at around 13:00 GMT+8):

cairo-1.12.14 (released tarball from Cairo project).

I was able to run the GTK+ demos from GTK+ 3.8.x normally with the same system/compiler config

p.s. I am aware that there were updates to GTK+ that required a special branch of Cairo that is not officially released for full functionality, but as far as I could tell from the announcement that I should be able to use cairo-1.12.14 just fine, except that the high res (or so) enhancements would not be available to me
Comment 1 Fan, Chun-wei 2013-07-22 07:18:25 UTC
Hi,

It seems to me that this is caused by a bug in Cairo, as the bug report at freedesktop.org indicates.  Rebuilding Cairo with the patch there[1] applied would allow GTK+ master to run again normally on Windows.  I have updated the GNOME Live! page on the build of the GTK+ stack with Visual C++ [2] regarding this issue.

[1]: https://bugs.freedesktop.org/show_bug.cgi?id=63787
[2]: https://wiki.gnome.org/GTK%2B/Win32/MSVCCompilationOfGTKStack

With blessings, thank you!