From: Stefano Crocco Date: 2010-12-06T02:04:33+09:00 Subject: Re: qt4-ruby crash On Monday 06 December 2010 01:57:38 Marco Polo wrote: > Hi, > > i had one of the worst idea in my life one month ago: port a working > ruby-gtk2 app to ruby-qt4. Not only it becomes a non-sense to use ruby > since your code looks like to a c++ app written in another language (you > almost lose all advantages of a clean ruby port like ruby-gnome2, > exception messages are unclear when it's qt related) but it crashes in a > way that is incredible: > > /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2680: [BUG] object allocation > during garbage collection phase > ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] > > The first time i had this message, i surrounded a piece of code with > calls to GC.disable and GC.enable to make the damn thing work. > > And now i fall in the same problem in another part of code but this > time, GC.enable/disable doesn't work. > > It's related to qt::treewidget: it works if sorting is not enabled but > it crashes if it's enabled. > > Does anyone have any idea about this problem? > > Thanks. > > Linux 2.6.35.6-48.fc14.x86_64, qt 4.7.1, kde 4.5.3 Which version of qt-ruby are you using? I remember having some problems like the one you're experiencing, but it was a long time ago. Stefano