Bug 991829

Summary: GTK+ application (even gtk3-demo.exe) crashes with assertion failure "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)"
Product: [Fedora] Fedora Reporter: Nicola Fontana <ntd>
Component: mingw-cairoAssignee: Erik van Pienbroek <erik-fedora>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: erik-fedora, fedora-mingw, fedora, lfarkas, marcandre.lureau, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-04 22:34:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicola Fontana 2013-08-04 19:03:14 UTC
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 19:08:11 UTC
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 19:58:09 UTC
(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 22:34:58 UTC
The patch is applied in mingw-cairo-1.12.14-5.fc20
https://koji.fedoraproject.org/koji/buildinfo?buildID=453920