Red Hat Bugzilla – Bug 991829
GTK+ application (even gtk3-demo.exe) crashes with assertion failure "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)"
Last modified: 2013-08-04 18:34:58 EDT
I'm not using fedora-mingw directly, but a port of it. I checked for the presence of eventual differences that could be the culprit but I did not find anything relevant: I think this problem should be present also under fedora.
Description of problem:
A program I'm developing (http://sourceforge.net/projects/ntdisp/ the relevant installer being under testing/ntdisp-0.5.0-6-win32.exe) crashed at start-up under wine with an assertion failure. I tested gtk3-demo and it crashes too with the same assertion, but after a click on the tree view.
Steps to Reproduce:
$ wine /path/to/gtk3-demo.exe
... and click on a test in the tree view.
> Assertion failed!
> Program: Z:\usr\i686-w64-mingw32\bin\gtk3-demo.exe
> File: /home/aur/archlinux/fedora-mingw-w64-cairo/src/cairo-1.12.14/src/cairo-surface.c, Line 930
> Expression: CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)
> abnormal program termination
A shiny test running flawlessly.
Upstream bug: https://bugs.freedesktop.org/show_bug.cgi?id=63787
GNOME report: https://bugzilla.gnome.org/show_bug.cgi?id=704540
Proposed patch: http://bugs.freedesktop.org/attachment.cgi?id=82797
I tested the proposed patch (http://github.com/ntd/aur-fedora-mingw/commit/8a317cd709b61d9bef1c9d7cb7d7647738c560f5) and it works fine.
Thanks for the patch!
I also got hit by this bug, but wasn't aware of your patch yet.
I'll apply it right away.
This issue should be rawhide-only (as I've only seen it occur in combination with the latest unstable mingw-gtk3)
(In reply to Erik van Pienbroek from comment #1)
> Thanks for the patch!
> I also got hit by this bug, but wasn't aware of your patch yet.
You're welcome. The patch is by Michael Henning by the way ;)
> I'll apply it right away.
> This issue should be rawhide-only (as I've only seen it occur in combination
> with the latest unstable mingw-gtk3)
I can confirm this problem appeared somewhere on 3.9 development branch.
The patch is applied in mingw-cairo-1.12.14-5.fc20