Re: Crash when re-parenting GtkDataBox





On Thu, Oct 30, 2008 at 11:15 PM, Dr. Roland Bock <box2OO6 eudoxos de> wrote:
Hi John,

this sounds interesting since many users asked for such a feature in the past. I won't be able to look at it in any detail before the 12th or so, though, since I am under pretty heavy workload until then.

Regarding the crash I sure hope that others on this list have more time at the moment and might take a look :-)

Actually, I think I just fixed it, or worked around it at least. It appears that the window that the graph is reparented *into* needs to be shown first.

The smells like the drawing code in gtkdatabox trying to use a GdkVisual or something that is not yet available because the new parent widget has not yet been realized.

I guess it is up for discussion whether this is a bug in gtkdatabox or not. Thoughts?

John



Regards,

Roland

John Stowers wrote:
Hi,

I have created an animated autoscaling plotting widget, based on the old one that used to be distributed as an example with gtkdatabox ~=  0.4 or so.

It basically derives from GtkDataBox and when constructed it adds n GtkDataBoxGraph line graphs to itself, and a grid.

The idea is that you can keep feeding it data continuously, and it will rescale and redraw the n lines (with a fixed history of points).

However I am currently experiencing segmentation faults when this widget is reparented. I have been having trouble debugging the crash. The backtrace reveals a crash in gtk, and not anything related to either my, or the gtkdatabox code AFAICT.

I was wondering if someone could take a look at the attached example, and see if you can spot the error.

It is also available from

svn co https://open.grcnz.com/svn/albatross/branches/groundstation/test-sliding-plot2

I hope that once it is working reliably, it might be interesing enough to go upstream. What are your thoughts?

Regards

John


------------------------------------------------------------------------

_______________________________________________
gtkdatabox-list mailing list
gtkdatabox-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkdatabox-list

_______________________________________________
gtkdatabox-list mailing list
gtkdatabox-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkdatabox-list



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