Bug 991829 - GTK+ application (even gtk3-demo.exe) crashes with assertion failure "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)"
Summary: GTK+ application (even gtk3-demo.exe) crashes with assertion failure "CAIRO_R...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-cairo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Erik van Pienbroek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-04 19:03 UTC by Nicola Fontana
Modified: 2013-08-04 22:34 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-04 22:34:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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