[Gtk-sharp-list] Resend: Strange Crash with NodeStore

Caleb Land redhatdude at gmail.com
Wed Aug 3 15:38:38 EDT 2005

I sent the following message on July 31, but when I looked at the list 
archive it looked like my message didn't make it through. Instead of 
attaching the files I will link to them. Sorry to anybody if the original 
message actually did get through.

(by the way, I tested this code on FreeBSD 5.4 with gtk-sharp-1.9.5 with 
mono <> and it does the same thing)



I have a bit of sample code that produces the error when I do things under 
different circumstances:

Unhandled Exception: System.NullReferenceException: Object reference not set 
to an instance of an object
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x00038> Crash:Main (System.String[] args)

and when I reproduce the crash with gdb --args mono crash.exe I get:
0xb6ff6618 in gtk_accel_group_find () from /usr/lib/libgtk-x11-2.0.so.0

and my X session is locked up until I switch to a VT and kill gdb. It's a 
simple class derrived from Gtk.Window that uses glade to load widgets. I add 
NodeView with a NodeStore and some columns. Here's the wierd thing: if the 
nodestore has 100 elements in it, and I click either the File or Edit menu I 
get the above crash. But if I change the number of elements by setting the 
rowCount member to 10,000 then I don't get a crash on those menu items.

I'm running Ubuntu Linux 5.04 with Mono <> and I've 
tried both gtk-sharp-2.5.5 and gtk-sharp-1.9.5.
I've included the glade file and the source file that cause the crash, I've 
compiled the crash.cs file with the command:
mcs -pkg:glade-sharp-2.0 crash.cs

I don't think it's nodestore related since I've gotten the same results with 
my own NodeStore-like (copied pretty much from NodeStore, C code and all) 
treemodel and my ManagedTreeModel (purely managed treemodel derrived from 

I'm puzzled.

Caleb Land
(RedHatDude at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20050803/a3733e82/attachment.html

More information about the Gtk-sharp-list mailing list