Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b6d01878a1c5987ef1eee987f5c6acbffe9115dc
Ticket: 1812048fffffffffffffffffffffffffffffffff
loop race in canvas Enter / Leave bindings
User & Date: stevenaaus on 2007-10-12 06:47:07
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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]
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "stevenaaus"
  10. subsystem changed to: "02. Event Loops"
  11. title changed to: "loop race in canvas Enter / Leave bindings"
  12. type changed to: "Bug"