Ticket #1287 (new defect)

Opened 15 months ago

Assertion failed: (_cairo_status_is_error (status))

Reported by: guest Owned by: paolo
Priority: normal Milestone: 0.13.0
Component: Cairo bindings Version: 0.12.4
Keywords: Cc: andreas.voellmy@…

Description

I am hitting a problem using gtk2hs and cairo. I have a simple program HelloCairo? (attached) that compiles fine. When I run it, it produces this error:

./HelloCairo HI! Assertion failed: (_cairo_status_is_error (status)), function _cairo_error, file cairo-error.c, line 68. Abort trap: 6

When I replace the Render action on line 22 with "return ()" the error does not occur.

Otherwise, gtk2hs seems to work well (I've started other gtk2hs programs).

I am using OS X (10.8.4) and I installed all the gtk2hs dependencies (e.g. gtk+, libxml2, glade,...) via Homebrew. The output of otool -L is:

$ otool -L HelloCairo? HelloCairo?:

/usr/local/lib/libgthread-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.3.0) /usr/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.19.0) /usr/local/lib/libgdk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.19.0) /usr/local/lib/libpangocairo-1.0.0.dylib (compatibility version 3401.0.0, current version 3401.1.0) /usr/local/lib/libatk-1.0.0.dylib (compatibility version 20810.0.0, current version 20810.1.0) /opt/X11/lib/libcairo.2.dylib (compatibility version 11203.0.0, current version 11203.2.0) /usr/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0) /usr/local/lib/libgio-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.3.0) /usr/local/lib/libpangoft2-1.0.0.dylib (compatibility version 3401.0.0, current version 3401.1.0) /usr/local/lib/libpango-1.0.0.dylib (compatibility version 3401.0.0, current version 3401.1.0) /usr/local/lib/libgobject-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.3.0) /usr/local/lib/libglib-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.3.0) /usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0) /opt/X11/lib/libfreetype.6.dylib (compatibility version 15.0.0, current version 15.1.0) /opt/X11/lib/libfontconfig.1.dylib (compatibility version 8.0.0, current version 8.2.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)

Attachments

HelloCairo.hs (0.5 kB) - added by guest 15 months ago.
Sample program that exhibits the problem

Change History

Changed 15 months ago by guest

Sample program that exhibits the problem

Note: See TracTickets for help on using tickets.