gtk2hs / gtk2hs

GUI library for Haskell based on GTK+
GNU General Public License v3.0
182 stars 83 forks source link

treeModelSortConvertIterToChildIter produces invalid iterators #159

Open glguy opened 8 years ago

glguy commented 8 years ago

It seems that treeModelSortConvertIterToChildIter produces iterators that fail this check treeModelSortIterIsValid and result in segmentation faults when being used.

I've been unable to successfully sort a TreeView using code from the demo directory or examples I've found online.

I'm using GTK+ version 3.18.9 installed via homebrew on OS X 10.11.3, GHC 7.10.3 with current versions of the gtk3 package dependencies.

~/Desktop/gtk3-0.14.2/demo/treelist
$ ./treesort
2016-03-17 09:10:20.271 treesort[74430:16499702] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
Segmentation fault: 11
glguy commented 8 years ago

This problem might be OS X specific. I found that the demo worked when I tried it on an Ubuntu machine.