| Ticket UUID: | 2028703 | |||
| Title: | Crash packing children into unmapped toplevel | |||
| Type: | Bug | Version: | obsolete: 8.5.3 | |
| Submitter: | patthoyts | Created on: | 2008-07-26 13:10:30 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | hobbs | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2008-08-02 02:40:47 | |
| Resolution: | Fixed | Closed By: | patthoyts | |
| Closed on: | 2008-08-01 19:40:47 | |||
| Description: |
Bug 2009788 had Tk crashing when calling RemapWindows on an unmapped toplevel. Fixing that and adding further tests shows that packing a child widget into the unmapped/unmanaged toplevel will crash. This time its in TopLevelRequestProc called from Tk_GeometryRequest in the idle loop. The following test crashes on Windows with Tk HEAD and in 8.5.3.
test wm-forget-1.4 "pack into unmapped toplevel causes crash" -body {
toplevel .parent
toplevel .parent.child
wm forget .parent.child
pack [button .parent.child.button -text Hello]
after 250 {destroy .parent}
tkwait window .parent
} -cleanup {
deleteWindows
} -result {}
| |||
| User Comments: |
patthoyts added on 2008-08-02 02:40:47:
Logged In: YES user_id=202636 Originator: YES Added a check for wmPtr being non-NULL in TopLevelReqProc and this seems to avoid the crash. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki