Bug 991829 - GTK+ application (even gtk3-demo.exe) crashes with assertion failure "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)"
GTK+ application (even gtk3-demo.exe) crashes with assertion failure "CAIRO_R...
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: mingw-cairo (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity urgent
: ---
: ---
Assigned To: Erik van Pienbroek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-04 15:03 EDT by Nicola Fontana
Modified: 2013-08-04 18:34 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-04 18:34:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nicola Fontana 2013-08-04 15:03:14 EDT
Preamble:

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.


Actual results:

> 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


Expected results:

A shiny test running flawlessly.


Additional info:

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.
Comment 1 Erik van Pienbroek 2013-08-04 15:08:11 EDT
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)
Comment 2 Nicola Fontana 2013-08-04 15:58:09 EDT
(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.
Comment 3 Erik van Pienbroek 2013-08-04 18:34:58 EDT
The patch is applied in mingw-cairo-1.12.14-5.fc20
https://koji.fedoraproject.org/koji/buildinfo?buildID=453920

Note You need to log in before you can comment on or make changes to this bug.