Tk Source Code

View Ticket
Login
Ticket UUID: dfda3ef8f8363cfa1afe603e97ff7ef2cdb3e425
Title: canvas-8.1 failure on Ubuntu 26.4
Type: Bug Version: 9.0, 9.1
Submitter: jan.nijtmans Created on: 2026-08-25 08:26:34
Subsystem: 04. Canvas Basics Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-08-25 08:28:52
Resolution: None Closed By: nobody
    Closed on:
Description:

==== canvas-8.1 canvas arc bbox FAILED
==== Contents of test case:
    .c create arc -100 10 100 210 -start 10 -extent 50 -style arc -tags arc1
    set arcBox [.c bbox arc1]
    .c create arc 100 10 300 210 -start 10 -extent 50 -style chord -tags arc2
    set coordBox [.c bbox arc2]
    .c create arc 300 10 500 210 -start 10 -extent 50 -style pieslice -tags arc3
    set pieBox [.c bbox arc3]
    .c create arc 100 200 300 200 -height [expr {(1-0.5*sqrt(3))*200}] -style arc -tags arc4
    set arcSegBox [.c bbox arc4]
    list $arcBox $coordBox $pieBox $arcSegBox
---- Result was:
{48 21 100 94} {248 21 300 94} {398 21 500 112} {39798 2013 39902 15185}
---- Result should have been (exact matching):
{48 21 100 94} {248 21 300 94} {398 21 500 112} {98 171 302 202}
==== canvas-8.1 FAILED

This strange. The bbox for arc4 result in unreasonable big values. This might be a bug in wayland (since Ubuntu now used Xwayland), it doesn't look like a but in Tk itself.

User Comments: jan.nijtmans added on 2026-08-25 08:28:52:

For now I added the failsOnCILinux constraint to this testcase, but if anyone has an idea...... (I don't)