Tk Source Code

Check-in [009b2c8f]
Login

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

Overview
Comment:Fix [1348333fff]: with many text widgets, the asynchronous line metrics update polled with 1 ms timers while a redisplay was pending, which starved the idle handlers, including the redisplay itself. Now the update waits without a timer, and DisplayText() restarts it when the redisplay is no longer pending. Unlike the backed-out [4b3b840a41], which waited in a when-idle handler, a nested [update] during the redisplay (as in textWind-17.10) cannot loop. Test textDisp-41.1.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | text-metrics-after-redraw
Files: files | file ages | folders
SHA3-256: 009b2c8f09400d458dbb62ad5eada458cec00518969281978312ddfd39d383d8
User & Date: serhiy.storchaka 2026-10-23 13:39:09.845
References
2026-10-23
13:44 • Ticket [1348333f] 8.5 text widget creates to many timers status still Open with 3 other changes artifact: 8fed35d2 user: serhiy.storchaka
Context
2026-10-24
08:50
textDisp-41.1: wait up to 10 seconds for the line metrics update instead of one, since it did not complete in time on the slower Windows and macOS CI machines. Without the fix, no widget gets synchronized at all. check-in: 1f9685c9 user: serhiy.storchaka tags: text-metrics-after-redraw
2026-10-23
13:39
Fix [1348333fff]: with many text widgets, the asynchronous line metrics update polled with 1 ms timers while a redisplay was pending, which starved the idle handlers, including the redisplay itself. Now the update waits without a timer, and DisplayText() restarts it when the redisplay is no longer pending. Unlike the backed-out [4b3b840a41], which waited in a when-idle handler, a nested [update] during the redisplay (as in textWind-17.10) cannot loop. Test textDisp-41.1. check-in: 009b2c8f user: serhiy.storchaka tags: text-metrics-after-redraw
12:47
Backout [4b3b840a41], Because it creates a hang in textWind-17.10. See: [1348333] check-in: 00ba90d1 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkTextDisp.c.
Changes to tests/textDisp.test.