From: Brett Williams Date: 2005-05-05T05:29:49+09:00 Subject: Re: tk_optionMenu bug in 1.8.2 Hidetoshi NAGAI wrote: > From: Hidetoshi NAGAI > Subject: Re: tk_optionMenu bug in 1.8.2 > Date: Thu, 28 Apr 2005 11:34:24 +0900 > Message-ID: <20050428.113404.71101381.nagai@ai.kyutech.ac.jp> > >>I couldn't too. And couldn't reproduce the another error. >>My environment is "ruby 1.8.2 (2005-04-25) [i686-linux]" >>with "ActiveTcl8.4.9.0". > > > Sorry. My tcltklib.so was replaced with 2005-04-26 version. > I installed Tcl/Tk8.3.2 and used "1.8.2 (2005-04-27) [i686-linux]". > But unfortunately, I couldn't reproduce your trouble... Ok, after some work we can recreate this with the following: ######################################### require 'tk' root = TkRoot.new() do title 'Some title' end bad = TkButton.new(root) do text 'bad' command do puts 'bad' win = TkToplevel.new(root) do title "Bad window" end names = ['a', 'b'] operator_var = TkVariable.new() operator = TkOptionMenubutton.new(win, operator_var, *names) operator.pack end end bad.pack Tk.mainloop() ########################################## This will pop up a frame with a single button called bad. You can click the bad button and the bgerror problem occurs for us. The stack trace with this smaller test case is: ncc1701d:homes/brettw> ruby err.rb bad ---< backtrace of Ruby side >----- /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1948:in `__invoke' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1948:in `_invoke' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1498:in `_ip_invoke_core' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1532:in `_tk_call_core' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1556:in `tk_call' /opt/ictools/ruby/lib/ruby/1.8/tk/menu.rb:463:in `initialize' err.rb:17:in `new' err.rb:17 err.rb:9:in `call' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1089:in `eval_cmd' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1089:in `cb_eval' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1040:in `call' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1178:in `callback' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1383:in `mainloop' /opt/ictools/ruby/lib/ruby/1.8/tk.rb:1383:in `mainloop' err.rb:23 ---< backtrace of Tk side >------- invoked from within "rb_out c00001" invoked from within ".w00000 invoke" ("uplevel" body line 1) invoked from within "uplevel #0 [list $w invoke]" (procedure "tk::ButtonUp" line 22) invoked from within "tk::ButtonUp .w00000" (command bound to event)