Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [1812048fff] loop race in canvas Enter / Leave bindings status still ... artifact: 8fc93ae04d user: serhiy.storchaka
2026-10-15
11:29 • Closed ticket [1812048fff]. artifact: 7e5dfc9bd9 user: serhiy.storchaka
2014-02-23
16:54 • Pending ticket [1812048fff]. artifact: f13a7c3a60 user: dkf
2014-02-21
19:05 • Ticket [1812048fff]: 1 change artifact: afb040d19a user: jan.nijtmans
2007-10-15
13:22 • Ticket [1812048fff]: 4 changes artifact: 95817905f5 user: stevenaaus
2007-10-12
13:47 • Ticket [1812048fff]: 4 changes artifact: e45235463d user: stevenaaus
13:47 • Add attachment canvas_bindings_bug.tgz to ticket [1812048fffffffff|1812... artifact: 8cbde344bb user: stevenaaus
06:47 • New ticket [1812048fff] loop race in canvas Enter / Leave bindings. artifact: b6d01878a1 user: stevenaaus

loop race in canvas Enter / Leave bindings

Closed / Invalid1812048fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 41 days ago
Descriptionplain2007-10-12 06:47:07
Hope i've submitted this bug to the right place/category.

Hmmm... Seems to me there's definately a bug in tk with the canvas Enter and Leave bindings. I've tested this on wish 8.4.1, 8.4.16 and 8.5b1.

TkHearts-0.86 runs fine, but when i entered these two bindings (patch backs them out) - bound only against players face up cards, tcl just freezes quite unpredictably. Occasionally on startup and in a game, but often after returning from a change of focus between apps, or even from the "about" widget.

I added two lines of debugging code that trace control into doCardUp and doCardDown.  They work fine, but when the game freezes, it became apparent tcl was stuck in a Enter/Leave loop, continuously calling doCardUp and doCardDown (which are bound to Enter and Leave). This behaviour is the same in 8.4.1 8.4.16 and 8.5b1. I run fedora4, xorg-x11-6.8.2-31.

Another data point - I also totally removed the ".c bind player0 <Leave>" command hoping to get around the bug...
leaving just the Enter binding, but i ~still~ managed to get a loop race condition :<

Thanks, Steven Atkinson, [email protected]
stevenaausplain2007-10-12 13:47:09
File Added - 249322: canvas_bindings_bug.tgz
stevenaausplain2007-10-15 13:22:40
Logged In: YES 
user_id=1043388
Originator: YES

Ooops, i just found the Tk bug page and have re-submitted it to them.
Sorry. S.A.
jan.nijtmans Ticket [1812048fff]: 1 change [History diff]2014-02-21 19:05:51
dkf Pending ticket [1812048fff]. [History diff]2014-02-23 16:54:37
serhiy.storchakawiki2026-10-15 11:29:04

Closing: this belongs to the Tk tracker.

serhiy.storchaka Ticket [1812048fff]: 3 changes [History diff]2026-10-22 17:19:26
Log in (anonymous is fine) to add a comment.

Attachments: