Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-08-20
17:04 • Closed ticket [3604031fff]: add menubar with .window to multiple toplevels crash... artifact: 97cb68a837 user: dkf
2013-02-10
19:10 • New ticket [3604031fff]. artifact: d3846f3e6f user: eighthave

add menubar with .window to multiple toplevels crashes (OSX)

Closed / Invalid3604031fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 10 years ago
Descriptionplain2013-02-10 19:10:23
on Mac OS X, creating a single menubar with the .menubar.window special menu, then adding it to multiple toplevels causes a crash.  I am using ActiveTcl8.6.0.0.296563-macosx10.5-i386-x86_64-threaded on Mac OS X 10.6.8 on a 3rd gen MacBook Pro.  The crash produces the following backtrace:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   Tk                            0x00000001000cdaa9 TkpConfigureMenuEntry + 1917
1   Tk                            0x0000000100047bac PostProcessEntry + 951
2   Tk                            0x0000000100047cad ConfigureMenuEntry + 194
3   Tk                            0x0000000100048368 ConfigureMenu + 609
4   Tk                            0x0000000100048cdc TkSetWindowMenuBar + 493
5   Tk                            0x00000001000422fc ConfigureFrame + 279
6   Tk                            0x00000001000427e6 FrameWidgetObjCmd + 749
7   Tcl                           0x000000010019c877 TclNREvalObjv + 1705
8   Tcl                           0x000000010019c9ce Tcl_EvalObjv + 38
9   Tcl                           0x000000010019d28d TclEvalEx + 2216
10  Tcl                           0x000000010021ef88 Tcl_FSEvalFileEx + 523
11  Tk                            0x000000010002bf38 Tk_MainEx + 1018
12  Wish                          0x00000001000054b7 main + 56
13  Wish                          0x00000001000053f4 start + 52


Here's the script I used:
---------------------------------------
menu .menubar
menu .menubar.window
.menubar add cascade -label "Window" -menu .menubar.window

toplevel .first

# both together causes a crash.  Comment one out, no crash
. configure -menu .menubar
.first configure -menu .menubar
---------------------------------------
dkfwiki2016-08-20 17:04:13

This would be a Tk issue.

Log in (anonymous is fine) to add a comment.