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

Main thread doesn't respond to KeyboardInterrupt worker thread without user input #1

Closed
bitsgalore opened this issue Nov 19, 2018 · 3 comments

Comments

@bitsgalore
Copy link
Member

bitsgalore commented Nov 19, 2018

Very odd, posted a question below:

https://stackoverflow.com/questions/53375415/python-3-keyboardinterrupt-in-background-thread-not-detected-by-main-thread-un

For now the effect is that the "Completed processing this tape" dialog doesn't show up until the user either hovers the mouse over the UI, or presses a key.

@bitsgalore
Copy link
Member Author

bitsgalore commented Nov 19, 2018

Quick look at answer to SA question: works, but once we activate the logger it throws a RuntimeError: main thread is not in main loop. Needs more detailed look. Maybe use queue for passing logging messages, see:

https://stackoverflow.com/questions/43909849/tkinter-python-crashes-on-new-thread-trying-to-log-on-main-thread

@bitsgalore
Copy link
Member Author

@bitsgalore
Copy link
Member Author

Works now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant