Re: GNOME CANVAS (bug???)




On Jun 20, 2005, at 12:49 AM, Peter Simon wrote:

When I close my program with (x) button on the window's corner or with alt+F4
I get this error:

"nomeCanvas-CRITICAL **: file gnome-canvas.c: line 3723
(gnome_canvas_request_redraw): assertion `GNOME_IS_CANVAS (canvas)' failed,
<FILE> line 1678 during global destruction.
Segmentation fault"

Is there any way to handle to aviod this incident or is it a bug?

It's been ages since i've looked, but as i recall, this is a combination of a minor bug in libgnomecanvas and reference count cycles in your program. The reference count cycle keeps the object alive in a zombie state, and a flag-checking bug causes the object to try to draw itself while in an invalid state. Sometimes you'll see crashes at shutdown because of this.

Here's a related bug: http://bugzilla.gnome.org/show_bug.cgi?id=90259
Since the perl bindings take a reference, your code is probably not allowing this fix to happen naturally.

Try going through your code and looking for places where you have reference leaks, and try to plug them. Sever ties between objects in the window's "destroy" handler, for example.

--
"it's hard to be eventful when you have this much style."
   - me, rationalizing yet another night of sitting at home.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]