Tk Source Code

View Ticket
Login
2006-06-10
09:20 Closed ticket [636358ffff]: File selector unstable plus 6 other changes artifact: 565261be38 user: sf-robot
2006-05-27
04:44 Pending ticket [636358ffff]. artifact: b0e0df4c0f user: hobbs
2004-03-31
06:14 Ticket [636358ffff]: 1 change artifact: 09c839f370 user: dgp
2003-11-04
01:14 Ticket [636358ffff]: 4 changes artifact: 80855a089a user: wolfsuit
2003-11-03
05:03 Ticket [636358ffff]: 4 changes artifact: 7c075ab111 user: davidswelt
2003-10-24
07:24 Ticket [636358ffff]: 4 changes artifact: 7ef7810e82 user: wolfsuit
2003-07-01
18:11 Ticket [636358ffff]: 2 changes artifact: 26dbf6df22 user: davidswelt
2003-06-08
14:42 Ticket [636358ffff]: 4 changes artifact: 1f927b0944 user: davidswelt
2003-03-14
23:16 Ticket [636358ffff]: 4 changes artifact: 966d0bdd05 user: cc_benny
2002-11-11
22:25 Ticket [636358ffff]: 4 changes artifact: a838cd9fd6 user: davidswelt
22:16 Ticket [636358ffff]: 4 changes artifact: a799469550 user: davidswelt
22:16 Add attachment Wish Shell.crash.log to ticket [636358ffff] artifact: 96692acee7 user: davidswelt
04:50 Ticket [636358ffff] File selector unstable status still Open with 4 other changes artifact: 89d754e858 user: wolfsuit
2002-11-10
21:38 New ticket [636358ffff]. artifact: 3729a12e9c user: davidswelt

Ticket UUID: 636358
Title: File selector unstable
Type: Bug Version: obsolete: 8.4.2
Submitter: davidswelt Created on: 2002-11-10 21:38:51
Subsystem: 37. [tk_get*File] Assigned To: wolfsuit
Priority: 6 Severity:
Status: Closed Last Modified: 2006-06-10 09:20:13
Resolution: Out of Date Closed By: sf-robot
    Closed on: 2006-06-10 02:20:13
Description:
The file selector (when called from my client app) often leads to a 
complete crash (using Tcl/Tk Aqua Runtime Jaguar), when 
browsing a directory. Usually happens, when some directory is 
clicked. (Might be coincidence: crash occurred quite often when 
working on a network volume. Very often happens when scrolling 
through a folder with mouse wheel.) 

Error occurrs with RSTTool 3.32 (www.wagsoft.com)
User Comments: sf-robot added on 2006-06-10 09:20:13:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

wolfsuit added on 2003-11-04 01:14:17:
Logged In: YES 
user_id=169107

Humm...  I have had problems with haxies (though not Default 
Folder) a couple of times in the past and debugging these 
problems is pretty difficult.  I think you can tell the APE haxie 
daemon which apps not to try to inject code into, and it might be 
that Wish will have to be one of these...

davidswelt added on 2003-11-03 05:03:00:
Logged In: YES 
user_id=586773

OK, with my current configuration, the error seems to be gone. 
This may be due to my upgrade to Panther.

The other (IMHO more likely) explanation would be related to 
"Default Folder X" - I don't have that any more, but maybe you 
could check it out?
Default Folder is an extension for the file selector.
It has never caused trouble for me, so it's still possible that 
something's weird about the code in Tcl/Tk.

wolfsuit added on 2003-10-24 07:24:34:
Logged In: YES 
user_id=169107

Humm, sorry for not looking at this for a while.  All the crashes 
are under a routine: MyNavEventProc.  From the address of this 
routine, it doesn't look like it comes from the Tk dylib.  This 
routine is around 0x1700000, and Tk is around 0xb000000...

Also, there isn't a MyNavEventProc in Wish.

Do you know where this routine comes from?

davidswelt added on 2003-06-08 14:42:53:
Logged In: YES 
user_id=586773

Can be reproduced even in version 8.4.2 on OS X 10.2.6. It 
crashes when I click on a folder in the file selector. It only 
happens for some folders, though.

Positive examples: (crash when going through Wish/Select 
Source)

Source/
bash-2.05a$ ls -la
total 408
drwxr-xr-x  27 dr  staff    918 Jun  8 08:39 .
drwxr-xr-x  15 dr  staff    510 Jun  8 08:39 ..
-rwxr-xr-x   1 dr  staff   8309 Sep  6  2002 Draw.tcl
-rwxr-xr-x   1 dr  staff  13522 Apr 24  2002 Editrels.tcl
-rwxr-xr-x   1 dr  staff   3063 Mar 20  2000 Enter.tcl
-rwxr-xr-x   1 dr  staff    881 Oct  9  2001 Globals.tcl
-rwxr-xr-x   1 dr  staff   2533 Oct 10  2001 Interface.tcl
-rwxr-xr-x   1 dr  staff   6165 Jul 29  2002 Layout.tcl
drwxr-xr-x  26 dr  staff    884 Sep 15  2002 Library
-rwxr-xr-x   1 dr  staff  10094 Jul 29  2002 Load.tcl
-rwxr-xr-x   1 dr  staff   4085 Jul 29  2002 LoadLisp.tcl
-rwxr-xr-x   1 dr  staff   4770 Sep 11  2002 Menus.tcl
-rwxr-xr-x   1 dr  staff   4483 Apr 25  2002 Menus.tcl~
-rwxr-xr-x   1 dr  staff  14271 Mar 28  2002 Nodes.tcl
-rwxr-xr-x   1 dr  staff   2579 Apr  7  2001 OldFormat.tcl
-rwxr-xr-x   1 dr  staff  10687 May 15  2002 Options.tcl
-rwxr-xr-x   1 dr  staff   4183 Oct  9  2001 Print.tcl
-rwxr-xr-x   1 dr  staff   5439 Apr 22  2002 Relations.tcl
-rwxr-xr-x   1 dr  staff   3692 Oct  8  2001 RelationsFiles.tcl
-rwxr-xr-x   1 dr  staff   5887 May  9  2001 SSA.tcl
-rwxr-xr-x   1 dr  staff   8873 Jan 14  2002 Save.tcl
-rwxr-xr-x   1 dr  staff   2503 Oct  8  2001 Save3.tcl
drwxr-xr-x  12 dr  staff    408 Sep 15  2002 Shared
-rwxr-xr-x   1 dr  staff   8689 Oct  9  2001 Stats.tcl
-rwxr-xr-x   1 dr  staff   7758 Feb 25  2002 StructWin.tcl
-rwxr-xr-x   1 dr  staff  18172 Mar 28  2002 Structurer.tcl
-rwxr-xr-x   1 dr  staff   5209 Mar 28  2002 Undo.tcl

and also

bash-2.05a$ cd Picts/
bash-2.05a$ ls -la
total 80
drwxr-xr-x   4 dr  staff    136 Sep 15  2002 .
drwxr-xr-x  15 dr  staff    510 Jun  8 08:39 ..
-rwxr-xr-x   1 dr  staff  35011 Mar 22  2001 rsttool1.gif
-rwxr-xr-x   1 dr  staff    157 Mar 28  1999 sep.bmp

So looks like the folder contents are not any different from 
others.

cc_benny added on 2003-03-14 23:16:50:
Logged In: YES 
user_id=143885

There has been a bug fix in that routine for 8.4.2, which may be
related.  Can you try if it is fixed in the latest version?
Binaries
are at http://rutherglen.ics.mq.edu.au/~steffen/tcltk/.

davidswelt added on 2002-11-11 22:25:26:
Logged In: YES 
user_id=586773

It even happens in the file browser used in the Wish Shell to select a 
source file. It consistently happens when I try to access /Volumes/dr 
(which is displayed in the file browser as /DR). This is an smb volume 
on another machine (running Jaguar as well).  mount says "//
dr@NADJA/DR on /Volumes/dr (nodev, nosuid, mounted by dr)". the 
contents of this drive are shown below. It's enough to click on "DR" to 
cause Wish (or Tcl or Tk) to crash.

bash-2.05a$ ls -la /Volumes/dr
total 34629
drwxr-xr-x  1 dr    wheel     16384 Nov 10 21:27 .
drwxrwxrwt  6 root  wheel       204 Nov 10 20:07 ..
-rwxr-xr-x  1 dr    wheel         3 Aug 30 20:18 .CFUserTextEncoding
-rwxr-xr-x  1 dr    wheel     12292 Nov 10 21:16 .DS_Store
-rwxr-xr-x  1 dr    wheel  17330176 Aug 27 12:49 .FBCIndex
drwxr-xr-x  1 dr    wheel     16384 Aug 27 12:49 .FBCLockFolder
drwxr-xr-x  1 dr    wheel     16384 Nov 10 19:58 .Trash
-rwxr-xr-x  1 dr    wheel        82 Nov 10 21:21 ._.FBCIndex
-rwxr-xr-x  1 dr    wheel      9033 Nov 11 10:08 .bash_history
-rwxr-xr-x  1 dr    wheel        59 Sep 26 15:23 .cvspass
-rwxr-xr-x  1 dr    wheel       224 Aug 26 21:42 .dvi
drwxr-xr-x  1 dr    wheel     16384 Oct 18 18:16 .emacs.d
drwxr-xr-x  1 dr    wheel     16384 Oct 18 16:42 .gnupg
-rwxr-xr-x  1 dr    wheel       354 Aug 26 21:42 .log
-rwxr-xr-x  1 dr    wheel        21 Nov  4 15:15 .lpoptions
drwxr-xr-x  1 dr    wheel     16384 Nov  9 20:50 .mplayer
drwxr-xr-x  1 dr    wheel     16384 Aug 19 12:30 .sitecopy
-rwxr-xr-x  1 dr    wheel      1518 Aug 28 16:12 .sitecopyrc
-rwxr-xr-x  1 dr    wheel      1503 Aug 19 12:33 .sitecopyrc~
drwxr-xr-x  1 dr    wheel     16384 Oct  9 16:37 .ssh
-rwxr-xr-x  1 dr    wheel       173 Aug 26 16:25 .tcsh_history
drwxr-xr-x  1 dr    wheel     16384 Oct 30 17:36 Applications
drwxr-xr-x  1 dr    wheel     16384 Nov 10 00:25 Desktop
drwxr-xr-x  1 dr    wheel     16384 Nov 10 11:28 Documents
drwxr-xr-x  1 dr    wheel     16384 Nov  9 20:37 Downloads
drwxr-xr-x  1 dr    wheel     16384 Nov 11 13:22 Incomplete
drwxr-xr-x  1 dr    wheel     16384 Oct 22 18:41 Library
drwxr-xr-x  1 dr    wheel     16384 Nov  9 21:43 Music
drwxr-xr-x  1 dr    wheel     16384 Aug 27 12:44 Pictures
drwxr-xr-x  1 dr    wheel     16384 Nov  4 15:30 Prog
drwxr-xr-x  1 dr    wheel     16384 Nov  4 14:32 Public
drwxr-xr-x  1 dr    wheel     16384 Aug  7 09:13 Settings
drwxr-xr-x  1 dr    wheel     16384 Nov 11 13:22 Shared
drwxr-xr-x  1 dr    wheel     16384 Sep  1  2001 Sites
drwxr-xr-x  1 dr    wheel     16384 Nov  7 11:36 Temporary Items
drwxr-xr-x  1 dr    wheel     16384 Nov  4 15:26 Web
-rwxr-xr-x  1 dr    wheel        20 Oct 29 08:32 spindown

davidswelt added on 2002-11-11 22:16:12:

File Added - 35119: Wish Shell.crash.log

wolfsuit added on 2002-11-11 04:50:11:
Logged In: YES 
user_id=169107

I can't make this happen myself.  Can you send me a CrashReporter 
log?  To do this, open Console.app, and in the Crashes tab of the 
Preferences check Enable crash reporting.  Then when Tk crashes, it 
will dump a log file in ~/Library/Logs/CrashReporter/Wish Shell.crash.log

Add that to the bug.  Also, if you could send the path to the directories 
you are browsing (maybe there is some Unicode character or 
whatever...)

Thanks.

Attachments: