Ticket #1236 (new defect)

Opened 3 years ago

TreeModelFilter crashes

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc: p.balzarek@…

Description

I am getting strange crashed when using a TreeModelFilter? in concert with a TreeStore?. Whenever I try to add an element to an initially empty tree store the program will crash with a sig 11 (segfault). Setting the filter function up to check for iters that are invalid in the child store and returning False ("do not show") in this case will prevent this particular crash from happening. Also, when I add two child nodes to an initially child-less node and try to expand that node afterwards, the program bails out with "TreeStore?.getRow: iter does not refer to a valid entry". (This is with gtk2hs version 0.12.0 on GHC 7.0.3, linux amd64 )

Attachments

gtkcrash.hs (1.3 kB) - added by guest 3 years ago.
minimal program to reproduce the crash

Change History

Changed 3 years ago by guest

minimal program to reproduce the crash

Note: See TracTickets for help on using tickets.