Tk Source Code

Check-in [dd18288b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [4a25f3]: Embedded application exits with BadDrawable when its container is destroyed
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: dd18288b38855f195f9076e78b7e5cd9815fd5ec8a46d44a096398703c75bb69
User & Date: jan.nijtmans 2026-10-07 13:48:36.830
References
2026-10-09
14:40
Temporary backout [dd18288b] due to [5f7ba8c5a38b13d6]. Can be put back when the leakage is fixed check-in: a5c8d8db user: jan.nijtmans tags: core-8-6-branch
14:38
Temporary backout [dd18288b] due to [5f7ba8c5a38b13d6]. Can be put back when the leakage is fixed check-in: 9be64113 user: jan.nijtmans tags: core-9-0-branch
14:03
Temporary backout [dd18288b] due to [5f7ba8c5a38b13d6]. Can be put back when the leakage is fixed check-in: 37a1d23b user: jan.nijtmans tags: trunk, main
13:56 • Ticket [5f7ba8c5] Leakage in trunk, with --disable-xft build status still Open with 3 other changes artifact: e4080754 user: jan.nijtmans
2026-10-07
16:33 • Closed ticket [4a25f316]: Embedded application exits with BadDrawable when its container is destroyed plus 8 other changes artifact: 289f3411 user: jan.nijtmans
Context
2026-10-09
14:03
Temporary backout [dd18288b] due to [5f7ba8c5a38b13d6]. Can be put back when the leakage is fixed check-in: 37a1d23b user: jan.nijtmans tags: trunk, main
2026-10-07
18:06
Fix [6f054bf319]: X11 with bidi: a string consisting only of U+FFFD hung text layout.

The X11 shaper dropped U+FFFD REPLACEMENT CHARACTER like the C0 and C1 control characters, so such a string produced no glyphs. Tk_MeasureChars() then measured nothing, and Tk_ComputeTextLayout() and the text widget looped forever, or used the width of a previously shaped string. U+FFFD is a normal printable character; invalid UTF-8 is already skipped before. Tests font-9.9 and font-24.16. closed check-in: 2716fc1b user: serhiy.storchaka tags: x11-shaper-replacement-char

17:49
Fix for [897f6672f7]: Windows: wm deiconify restores a maximized window as normal. check-in: eec7513d user: csaba tags: trunk, main
14:36
Fix [4a25f3]: Embedded application exits with BadDrawable when its container is destroyed check-in: be8493a6 user: jan.nijtmans tags: core-9-0-branch
13:48
Fix [4a25f3]: Embedded application exits with BadDrawable when its container is destroyed check-in: dd18288b user: jan.nijtmans tags: trunk, main
13:19
Add test from ticket [2225507] from commit [6339b68a]. The ticket was fixed by commit [ee3cc6ac] of ticket [2128087] check-in: f72af578 user: oehhar tags: trunk, main
2026-09-26
20:12
Fix [4a25f316f7]: an embedded application exited with BadDrawable when its container was destroyed while it had pending drawing. ErrorProc() now ignores BadDrawable errors like BadWindow errors, also for windows deleted after the failed request (this check was lost in 8.6 together with the XID management). Recently deleted windows are recorded in the new field deletedWinTable at the end of TkDisplay. New test unixEmbed-9.3. closed check-in: d6f016b5 user: serhiy.storchaka tags: embed-container-destroyed
Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to generic/tkError.c.
Changes to generic/tkInt.h.
Changes to generic/tkWindow.c.
Changes to tests/unixEmbed.test.