I’m using the 1.6.8pre. I notice that the ext/tk/sample/tkhello.rb uses
100% of the CPU. This was not the case with 1.6.7. I take it this is a
bug?
%ruby --version
ruby 1.6.8 (2002-11-09) [i686-linux]
Tk version 8.3.3
I’m using the 1.6.8pre. I notice that the ext/tk/sample/tkhello.rb uses
100% of the CPU. This was not the case with 1.6.7. I take it this is a
bug?
%ruby --version
ruby 1.6.8 (2002-11-09) [i686-linux]
Tk version 8.3.3
I’m using the 1.6.8pre. I notice that the ext/tk/sample/tkhello.rb uses
100% of the CPU. This was not the case with 1.6.7. I take it this is a
bug?%ruby --version
ruby 1.6.8 (2002-11-09) [i686-linux]Tk version 8.3.3
I have the same on a RH 6.2 box, but don’t experience it anymore on a RH
7.1 box. On both I have the default tcl/tk and installed Ruby by hand.
I’d have to look up the versions.
My box at home, happily running Debian unstable with Ruby 1.7.x never
had this 100% CPU problem, iirc.
±-- Kero ------------------------------ kero@chello.nl —+
Don’t split your mentality without thinking twice |
Proud like a God – Guano Apes |
±-- M38c ---------- http://httpd.chello.nl/k.vangelder —+
On Wed, 20 Nov 2002 02:14:24 +0900, kvh wrote:
Hi,
From: “kvh” khindenburg@cherrynebula.net
Subject: ruby 1.6.8pre + Tk = 100% CPU?
Date: Wed, 20 Nov 2002 02:14:24 +0900
Message-ID: 34877.192.168.1.1.1037725646.squirrel@nicole.iquest.net
I’m using the 1.6.8pre. I notice that the ext/tk/sample/tkhello.rb uses
100% of the CPU. This was not the case with 1.6.7. I take it this is a
bug?
The problem is due to new event loop procedure on tcltklib.c.
I wrote new Tk.mainloop method to avoid deadlock troubles on Ruby/Tk
and to get faster response for events. But it seems to have some faults.
Although I’ll try to fix the problem, maybe the work needs long time
if the strategy must be changed.
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
If your Ruby/Tk scripts have no trouble on old event loop
and the trouble is more than you can bear,
please replace tcltklib.c and tk.rb with those of 1.6.7.
Hello,
Thanks for the reply; I used 1.6.7 tcltklib.c/tk.rb with 1.7.3 and it
works fine. I get warnings now, but at least I can use ruby/tk again.
Txs.
% ruby tkhello.rb
/usr/lib/ruby/1.7/tk.rb:954: warning: parenthesize argument(s) for future
version
/usr/lib/ruby/1.7/tk.rb:1434: warning: parenthesize argument(s) for future
version
/usr/lib/ruby/1.7/tk.rb:1576: warning: parenthesize argument(s) for future
version
/usr/lib/ruby/1.7/tk.rb:1858: warning: parenthesize argument(s) for future
version
/usr/lib/ruby/1.7/tk.rb:2351: warning: parenthesize argument(s) for future
version
/usr/lib/ruby/1.7/tk.rb:3176: warning: parenthesize argument(s) for future
version
/usr/lib/ruby/1.7/tk.rb:3311: warning: parenthesize argument(s) for future
version