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.
Script for reproducing the issue
Thanks for reporting.
I've fixed it in trunk.