[DRE-maint] [Bug 514899] Re: Multithreaded Gtk applications using Ruby bindings freeze

Benjamin Drung benjamin.drung at gmail.com
Tue Jun 29 13:14:44 UTC 2010


I removed ~ppa1 from the version string, changed "Changes" to "LP", and
uploaded it.

-- 
Multithreaded Gtk applications using Ruby bindings freeze
https://bugs.launchpad.net/bugs/514899
You received this bug notification because you are subscribed to Ubuntu.

Status in “ruby-gnome2” package in Ubuntu: Fix Released
Status in “ruby-gnome2” source package in Karmic: New

Bug description:
Binary package hint: libgtk2-ruby

In Ubuntu 9.10 with the version of libgtk2-ruby from the repositories (0.19.0), new threads cause the Gtk main loop to freeze. As an example, the following code will never produce any output:

 require 'gtk2'

 Thread.new do
   sleep 1 # Look busy
   exit    # Finished, exit
 end

 # Main loop
 loop do
   # Process all currently pending events
   Gtk.main_iteration while Gtk.events_pending?
   print '.'
 end

However, when the latest version of the bindings is installed (0.19.3) the program works as expected, filling the screen with dots.

This problem is also reported at:
http://sourceforge.net/mailarchive/forum.php?thread_name=dc3bf8581001120746kb5da118udd0a74439cc4dcd9%40mail.gmail.com&forum_name=ruby-gnome2-devel-en







More information about the Pkg-ruby-extras-maintainers mailing list