Tk Source Code

Check-in [c9111055]
Login

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

Overview
Comment:Fix [bffa794b1b]: BadAlloc (insufficient resources for operation) in the grid command.

On X11, a widget larger than 32767 pixels, e.g. a label with a long text, crashed the application: X servers refuse to create larger pixmaps, and the protocol truncates sizes larger than 65535. Tk_GetPixmap() now clips the dimensions to 32767. Drawing beyond is lost, but there is no crash.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | x11-pixmap-size-limit
Files: files | file ages | folders
SHA3-256: c91110556fc03392209f97a1c8ebdb58abd1b2ad3d3d6fc3b3164db6c1ff5b45
User & Date: serhiy.storchaka 2026-10-02 18:50:08.591
Context
2026-10-03
14:23
Fix for [bffa794b1b]: "BadAlloc (insufficient resources for operation)" in the grid command. check-in: bc5e8ae5 user: csaba tags: trunk, main
2026-10-02
18:50
Fix [bffa794b1b]: BadAlloc (insufficient resources for operation) in the grid command.

On X11, a widget larger than 32767 pixels, e.g. a label with a long text, crashed the application: X servers refuse to create larger pixmaps, and the protocol truncates sizes larger than 65535. Tk_GetPixmap() now clips the dimensions to 32767. Drawing beyond is lost, but there is no crash. closed check-in: c9111055 user: serhiy.storchaka tags: x11-pixmap-size-limit

16:48
Fix for [3414673fff]: Improper look of ttk::checkbutton -style Toolbutton. check-in: bfa641b9 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/unixButton.test.
Changes to unix/tkUnixXId.c.