Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling and hitting Q at the same time in textual.app hung the script entirely #13

Closed
simonw opened this issue Jun 19, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Contributor

simonw commented Jun 19, 2021

See attached video - if I hit Q while scrolling up and down with the trackpad I've occasionally managed to cause the terminal app to hang - such that it no longer responds to keyboard commands or scrolling, plus hitting Ctrl+C or even Ctrl+Z fails to exit it.

I recorded a video here with software that shows the keys I'm pressing:

textual-bug.mov
@simonw
Copy link
Contributor Author

simonw commented Jun 19, 2021

(This is very much a stress-test-induced bug, but I thought you may find it interesting)

@simonw
Copy link
Contributor Author

simonw commented Jun 19, 2021

Here's the richtui.log from one of my successful attempts to get this to happen. Note that the clock keeps on ticking, but everything else is unresponsive. https://gist.github.com/simonw/49f10e10ec0f2fc6261a48d8a4ff68d4

@willmcgugan
Copy link
Collaborator

Thanks for doing the investigation! It seems to occur when there are lots of queued messages, but frustratingly there are no exceptions logged.

One of the pain points of this is that I can't just let exceptions propagate, because it can leave the terminal in an unusable stage.

BTW what screen capture app do you use? I like the key press overlays.

@simonw
Copy link
Contributor Author

simonw commented Jun 19, 2021

I recorded it with QuickTime Player, but the screen overlays are https://github.com/keycastr/keycastr (just found it today)

@willmcgugan willmcgugan added the bug Something isn't working label Jun 21, 2021
@willmcgugan
Copy link
Collaborator

Fixed a deadlock in v0.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants