Skip to content
Prev 26330 / 63424 Next

misbehaviour of some tk windows, R 2.6.0 on SUSE 10.1?

David Firth wrote:
Looks a bit nasty. I see it on SUSE 10.2 as well. Increasing the
repeatinterval setting for the scrollbar helps, but even at a setting of
50, I still see the effect. It is usually stoppable with the middle
button over the trough.
The error message is what you'd expect from killing a window while
something is trying to talk to widgets inside of it. The details of the
popup dialog is a little more informative:

    while executing
"$w cget -repeatinterval"
    (procedure "tk::ScrollSelect" line 12)
    invoked from within
"tk::ScrollSelect .3.2 arrow2 again"
    ("after" script)

I think there's a clue in there. It has the hallmarks of a race
condition: As I understand it the autorepeat feature runs an "after"
script which effectively presses the arrow again 5 ms later, invoking
another "after" script, etc. A button release is supposed to kill the
after script, but it might not do so in time, in which case it may try
to kill something that already died, etc.

Can't offhand see that we did anything to the event loop that could
cause this, though.