From: <no...@so...> - 2001-11-28 13:56:28
|
Bugs item #220269, was opened at 2000-10-31 15:01 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=220269&group_id=12997 >Category: 18. [text] >Group: 8.3.4 >Status: Open >Resolution: Remind >Priority: 5 Submitted By: Brent B. Welch (welch) >Assigned to: Jeffrey Hobbs (hobbs) >Summary: Error: can't read "tkPriv(x)": no such element in array Initial Comment: OriginalBugID: 3987 Bug Version: 8.3b1 SubmitDate: '2000-01-07' LastModified: '2000-01-17' Severity: CRIT Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Windows 98 Machine: Micron P2-450, 256MB RAM ClosedDate: '2000-01-17' Name: Brian Schmidt ReproducibleScript: This error message pops up whenever the mouse passes over a toplevel window. I normally get the error after first starting up wish (and not entering ANY commands) and passing the mouse over the console. The below stack trace is from when I got the error on a toplevel window in my application after first starting it up. This error is intermittent and relatively rare. However, the only remedy I can find is to reboot my system. Otherwise the error keep reoccurring even though the Tcl/Tk application or wish is shut down and restarted. The stack trace code isn't in my application and must be in the core distribution. Errorbox message: Error: can't read "tkPriv(x)": no such element in array Thanks! ObservedBehavior: can't read "tkPriv(x)": no such element in array while executing "if {abs(122-$tkPriv(x)) > 2} { set tkPriv(mouseMoved) 1 }" invoked from within "if {!$tk_strictMotif} { if {abs(122-$tkPriv(x)) > 2} { set tkPriv(mouseMoved) 1 } .tCategories.fCategories.fAddDelete.eCategory scan dragto 12..." (command bound to event) The user noted that this really only happens over an entry. I wonder if the user is hitting the problem where they have given the script a name of one of the core widgets (like entry.tcl or button.tcl), which is known to cause an error because the class of the main toplevel will be set to that of one of the widgets. -- 01/10/2000 hobbs Closed due to lack of reproducability (on our side, and on the users side). -- 01/17/2000 hobbs ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2001-11-28 05:56 Message: Logged In: YES user_id=80530 The recent comments are about [text] rather than [entry], so I'm re-opening this one and assigning to the [text] category. ---------------------------------------------------------------------- Comment By: Christian Heide Damm (chdamm) Date: 2001-11-27 23:17 Message: Logged In: YES user_id=274893 Further aid in reproducing the problem: use a program called Hibernate on Windows 2000. 1. Start wish 2. Create a text widget, activate it, and write some text in it 3. Move the mouse cursor outside the text widget 4. Close wish 5. Hibernate Win2000 6. Start Win2000 7. Start wish 8. Create a text widget, activate it, and write some text in it 9. Move the mouse cursor outside the text widget 10. error ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-11-27 14:33 Message: Logged In: YES user_id=80530 This could be a duplicate of Tk Bug 462629 ---------------------------------------------------------------------- Comment By: Christian Heide Damm (chdamm) Date: 2001-07-19 01:47 Message: Logged In: YES user_id=274893 We have experienced this problem with 8.4a2 too (although it fails in a different line): can't read "tkPriv(x)": no such element in array while executing "if {(19 != $tkPriv(x)) || (9 != $tkPriv(y))} { set tkPriv(mouseMoved) 1 }" invoked from within "if {!$tk_strictMotif} { if {(19 != $tkPriv(x)) || (9 != $tkPriv(y))} { set tkPriv(mouseMoved) 1 } if {$tkPriv(mouseMoved)} { .workspace995485562_757.w..." (command bound to event) Where .workspxxx.wxxx is a canvas with a.o. a "bind $canvas <B1-Motion> ..." binding. Our situation, too, involves a "text" widget, which is placed on top of the canvas, and the error occurred when the user moved the mouse cursor out of the text widget and into the canvas. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=220269&group_id=12997 |