GNOME Bugzilla – Bug 704540
GTK+ programs crash when any window is popped up from the running GTK+ program
Last modified: 2013-07-22 07:18: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
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!