Tk Source Code

View Ticket
Login
Ticket UUID: 9427fb312da9c5c3005b74b85139996e0c5340bc
Title: textDisp.test aborts the test run with an X error on a small screen (main CI)
Type: Bug Version: 9.1.1
Submitter: serhiy.storchaka Created on: 2026-11-05 20:13:42
Subsystem: 86. Test Tools Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2026-11-05 20:43:05
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2026-11-05 20:43:05
Description:

Since 2026-11-03 the Linux CI of main stops in textDisp.test with:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
textDisp-42.2 to 42.9 pack their text widget .t1 into "." next to the widgets of earlier tests, which leave "." 1500 pixels wide. On the 640x480 screen of xvfb-run, .t1 is then beyond the right edge of the screen. testpixel reads pixels with XGetImage, which fails with BadMatch for an area which is not on the screen, and without an error handler the X error terminates the whole test run.

It can be reproduced with Xvfb -screen 0 640x480x24 and running textDisp.test.

User Comments: jan.nijtmans added on 2026-11-05 20:43:05:

Many thanks!

Fixed in [60c0ae12|trunk] and core-9-0-branch


serhiy.storchaka added on 2026-11-05 20:16:10:

Proposed fixes in two branches:

  • tests-textdisp-offscreen (main only): textDisp-42.2 to 42.9 put their text widget into a toplevel of their own at +0+0.
  • testpixel-x-error: testpixel reports a pixel which is not on the screen as a Tcl error instead of letting the X error abort the test run. It can be backported.