#127 GTK freezes using Datamapper (only after v0.16)

closed
nobody
None
5
2009-09-22
2009-09-19
No

After Gtk.main is called the application runs fine for around 60 seconds, then freezes: CPU usage goes to 100% and widgets are not refreshing anymore. I know what causes the problem to be an OR/M library called Datamapper, and i have already submitted a bug report to them (http://datamapper.lighthouseapp.com/projects/20609/tickets/966-datamapper-freezes-gtk), but we were not able to solve the problem. I believe the issue is caused by a module inside Extlib that is responsible for closing pending transactions (you can find the code here -> http://github.com/datamapper/extlib/blob/master/lib/extlib/pooling.rb\).
I am writing this to you because this issue does NOT arise using a version of ruby-gnome previous to 0.17 (so from 0.16 backwards). I've encountered this bug working with Datamapper but I think anything that uses threads the same way will cause the problem.
You will find a script enclosed which reproduces the bug. Thanks in advance.

Discussion

  • Andrea Dallera

    Andrea Dallera - 2009-09-19

    Script for reproducing the issue

     
  • Kouhei Sutou

    Kouhei Sutou - 2009-09-22

    Thanks for reporting.
    I've fixed it in trunk.

     
  • Kouhei Sutou

    Kouhei Sutou - 2009-09-22
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks