From: Bartosz W. <ba...@su...> - 2010-07-15 11:37:30
|
On Thursday 15 July 2010 13:35:38 Bartosz Wójcik wrote: > On Thursday 15 July 2010 10:28:00 Andy Stewart wrote: > > Bartosz Wójcik <ba...@su...> writes: > > > Hi Andy, > > > > > > I'll although it'll take me some time. > > > I've created abstraction which is supposed to help with simple ui. For > > > minimum program I'll have to trim it. I hoped smb might have an idea > > > without minimum program, therefore I've sent this post before creating > > > minimum program. > > > > Like Axel said, from your warning/critical information, > > your problem looks use incorrect "GTK+ logic" and not > > like gtk2hs problem. > > > > BTW, please upgrade to gtk2hs-0.11.0, it fix many bugs and easier to > > install (cabal install gtk2hs-buildtools gtk) > > > > Cheers, > > > > -- Andy > > Hi Andy, > > I've managed to obtain ~500 lines code which can reproduce the problem. > Playing with it I've figured out that problem exists only AFTER one of the > entries becomes editable. Also what's interesting segfault happens on this > entry mostly. I.e. on this one it happens always and it's difficult > (although possible) to get segfault being focused on an other entry. > > Gtk+ version on my Windows I'll check tomorrow only, on Linux I've got > 2.16.1. > > Bartek And with attachement. Best, Bartek > > > > On Thursday 15 July 2010 07:23:01 Andy Stewart wrote: > > >> Hi Bartosz, > > >> > > >> Can you give me a minimum program for test? > > >> If it's a problem of gtk2hs, i will fix it. > > >> > > >> Thanks, > > >> > > >> -- Andy > > >> > > >> Bartosz Wójcik <ba...@su...> writes: > > >> > Hi, > > >> > > > >> > I have following problem I cannot fix. > > >> > In the notebook there are some packed widgets: comboBoxes, entries > > >> > and checkBoxes. When focus is located on any of the entries, > > >> > pressing caps-lock and num-lock causes following warning and > > >> > segfault. > > >> > > > >> > (ElcaGUI:24900): GLib-GObject-WARNING **: instance of invalid non- > > >> > instantiatable type `(null)' > > >> > Segmentation fault > > >> > > > >> > The number in parenthesis is of course each time different. > > >> > Alt, Ctrl, home, PF-keys etc. don't cause any warning. > > >> > > > >> > Other widgets behave correct. > > >> > To the same notebook there is attached another page, static one, > > >> > with scrolledWindow and one label packed only. Pressed caps-lock or > > >> > num-lock there causes as well: > > >> > > > >> > (ElcaGUI:26033): GLib-GObject-CRITICAL **: > > >> > g_type_instance_get_private: assertion `instance != NULL && > > >> > instance->g_class != NULL' failed > > >> > > > >> > or > > >> > > > >> > (ElcaGUI:26387): GLib-GObject-WARNING **: attempt to retrieve > > >> > private data for invalid type 'GtkEntry' > > >> > > > >> > Last one is strange since there is no entry widget on this page. > > >> > > > >> > This problem exists on my Linux OS (gtk2hs version 0.10.0). The same > > >> > program runs on Windows (gtk2hs version 0.10.1) without such > > >> > behaviour. > > >> > > > >> > Therefore I assume there must be something either gtk2hs or OS > > >> > specific. Any help is welcome. > > >> > > > >> > Best regards, > > >> > Bartek |