Forum: Ruby-Gnome 2 ruby-gnome2 not fully functional (at least for me) in latest ubuntu (karmic)

Posted by Guillaume Cottenceau (Guest)
on 2010-01-11 17:26
(Received via mailing list)
Hi,

I've noticed that my program booh lacks screen refresh on ubuntu
karmic (rg2 0.19.0) when calling backend programs. I fork and use ruby
threads to monitor the progress of the backend programs (and
pulse/increment progressbars). I use mandriva (rg2 0.19.2) and I have
no problem.

That simple program seems to reproduce:

http://zarb.org/~gc/t/threaded-example.rb

E.g. when the button is clicked in that example program, the interface
becomes unresponsive for 3 seconds on ubuntu (the button remains
"pushed" and nothing more happens) but it should not. Remove the
Thread{} waiting for process completion and it will workaround the
problem (but I need to wait for process completion in my real program,
of course).

I suspect one of the fix of rg2 0.19.2 (released Wed, Sep 23, 2009) to
be the culprit:

  * [#2862022] fix multi thread blocking with Ruby
     1.8.6-p368 or later and 1.8.7-p173 or later.
     [Roy Wright, Andrea Dallera, Kouhei Sutou]

Any Ubuntu-aware person can suggest a solution? Would the 0.19.0 be
fixed or upgraded?

Thanks,

--
Guillaume Cottenceau - http://zarb.org/~gc/
Posted by David Maciejak (Guest)
on 2010-01-12 13:56
(Received via mailing list)
Hi Guillaume,

I also have the same problem on ubuntu karmic, but did not find the 
solution.
I just tried my tool gnms (http://gnms.rubyforge.org/) yesterday, but
it seems to freeze in some thread on my ubuntu.
If you are right I believe the patch should be removed/modified.

Regards,
david

On Mon, Jan 11, 2010 at 5:25 PM, Guillaume Cottenceau
Posted by Guillaume Cottenceau (Guest)
on 2010-01-12 15:30
(Received via mailing list)
> If you are right I believe the patch should be removed/modified.

there's no patch to remove/modify. the commit I talked about was done
between 0.19.1 and 0.19.2, and karmic is stalled on 0.19.0. either the
commit should be used on 0.19.0 or (better) the whole should be
upgraded.

--
Guillaume Cottenceau - http://zarb.org/~gc/
Posted by David Maciejak (Guest)
on 2010-01-12 16:28
(Received via mailing list)
oh ok, I know it's hard to get ruby-gnome2 updated in Ubuntu, maybe we
should fill a bug entry in launchpad ... and see


On Tue, Jan 12, 2010 at 3:29 PM, Guillaume Cottenceau
Posted by Guillaume Cottenceau (Guest)
on 2010-01-12 16:46
(Received via mailing list)
On Tue, Jan 12, 2010 at 4:27 PM, David Maciejak
<david.maciejak@gmail.com> wrote:
> oh ok, I know it's hard to get ruby-gnome2 updated in Ubuntu, maybe we
> should fill a bug entry in launchpad ... and see

I was hoping an ubuntu developer/packager was listening in this list..
but maybe not..

--
Guillaume Cottenceau - http://zarb.org/~gc/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.