|
2011-07-19
| ||
| 21:55 | • Ticket [3371315fff] Crash with Ttk on Win7-64bit status still Closed with 4 ... artifact: dd95ad9320 user: patthoyts | |
| 21:51 | • Ticket [3371315fff]: 4 changes artifact: 6a3a55d8b3 user: patthoyts | |
| 21:13 | • Closed ticket [3371315fff]. artifact: 94c9cdb5e1 user: jmcuaz | |
| 20:47 | • Pending ticket [3371315fff]. artifact: 73c5c2feca user: dkf | |
| 20:27 | • Ticket [3371315fff]: 4 changes artifact: 4672dc233b user: jmcuaz | |
| 20:27 | • Add attachment CrashTtk_Win7_64bit.tcl to ticket [3371315fffffffff|3371... artifact: 11bab6c42b user: jmcuaz | |
| 13:27 | • New ticket [3371315fff] Crash with Ttk on Win7-64bit. artifact: fa01fe047d user: jmcuaz | |
Crash with Ttk on Win7-64bit
Closed / Invalid3371315fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-07-19 13:27:37
Hello, I have just installed the latest 8.5.10 -Win64bit- Tcl distribution from Active State on a new Win7-64bit PC and I am experimenting crashes with the GUI (Tk/Ttk) of an application running without pb on WinXP. Narrowing the source of the crash on Win7 seems to point to Ttk being involved. I attach a small script wich reproduce the crash on my machine : execute it, then click on the button -> crash (I need to wait 2-3 seconds to see the crash icon in the Win7 task bar...) Thanks Jean-Marie
jmcuazplain2011-07-19 20:27:39
File Added - 418642: CrashTtk_Win7_64bit.tcl
dkfplain2011-07-19 20:47:51
Please file against Tk.
jmcuazplain2011-07-19 21:13:08
allow_comments - 1 Closing the item here and re-openning on Tk Toolkit project
patthoytsplain2011-07-19 21:51:43
The most obvious response is 'dont do that'. You are deleting a widget while still processing it's event handler. For something like this you should disconnect the button event from its consequences using a construction like: ttk::button .b -text MAJ -command [list after idle proc_Btn] It shouldn't crash - so presumably we are missing a place where there should be a TkWindow pointer and its now been deleted and we will need to add a guard against this. But don't do it like this - use after.
patthoytsplain2011-07-19 21:55:52
In fact I think this was the subject of the post-release patch: 3341056 Correct segfault due to flaw in the 2011-06-17 commit. a current 8-5-branch build doesn't crash with the provided script.
Log in (anonymous is fine) to add a comment.
Attachments:
- CrashTtk_Win7_64bit.tcl [download] added by jmcuaz on 2011-07-19 20:27:38. [details]