<br><br><div class="gmail_quote">2012/9/14 Sebastien Kramm <span dir="ltr"><<a href="mailto:sebastien.kramm@univ-rouen.fr" target="_blank">sebastien.kramm@univ-rouen.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
This is my first post here.<br>
<br>
For some application, I am writing a wrapper over basic drawing stuff with cairo, and the corresponding images are displayed into Gtk+2 windows. It ""kinda works"". However, one of my samples triggers an internal cairo assert, and I really don't see how to fix this. The log is:<br>
<br>
demo1: /build/buildd/cairo-1.10.2/<u></u>src/cairo.c:173: _cairo_error: Assertion `(status != CAIRO_STATUS_SUCCESS && status <= CAIRO_STATUS_LAST_STATUS)' failed.<br>
<br>
Something in my code is probably doing something really bad, but I don't know what.<br>
FIY, its a C++ app, that is calling a set of C functions that are wrappers over the drawing back-end library (Cairo) and window managment (Gtk+2).<br>
I only use a small subset of the Cairo functions, drawing on images is done with the classical pattern (creating a cairo_t* with cairo_create(), drawing, then release the object).<br>
<br>
>From error message, I seem to be using 1.10 version (plateform is Ubuntu 12.04). I tried to upgrade to 1.12, but the classical:<br>
sudo apt-get install libcairo2-dev<br>
as suggested by:<br>
<a href="http://www.cairographics.org/download/" target="_blank">http://www.cairographics.org/<u></u>download/</a><br>
tells me that:<br>
"libcairo2-dev is already the newest version"<br>
(although this seems to be false).<br>
<br>
I checked the corresponding code via:<br>
<a href="http://cgit.freedesktop.org/cairo/tree/src/cairo.c?id=1.10.2" target="_blank">http://cgit.freedesktop.org/<u></u>cairo/tree/src/cairo.c?id=1.<u></u>10.2</a><br>
and the assert is in some function:<br>
cairo_status_t _cairo_error (cairo_status_t status)<br>
that my code does NOT call.<br>
<br>
My knowledge of Cairo is very limited, so I'm stuck. Any advice on how to move on would be appreciated.<span class="HOEnZb"><font color="#888888"></font></span></blockquote><div><br>Hi Sebastien,<br><br>it would really really help if you could provide some source code, or at the very least<br>
the part of your code which triggers the assert.<br><br>You most likely called a function on your surface which failed and set the suface<br>status to "error", but didn't detect this and attempted to call another function on said surface.<br>
Mind you, my knowledge of cairo is very limited, so that is just an assumption. <br></div></div>