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

H5 worker thread cannot be terminated at will #60

Open
leofang opened this issue Aug 5, 2019 · 4 comments
Open

H5 worker thread cannot be terminated at will #60

leofang opened this issue Aug 5, 2019 · 4 comments

Comments

@leofang
Copy link
Contributor

leofang commented Aug 5, 2019

This is a follow-up of #26. The following code snippet was commented out because it would freeze the whole window:
https://github.com/NSLS-II/ptycho_gui/blob/211041eed91a5e4d0bb64a12d8f6a0bc5599daa0/nsls2ptycho/ptycho_gui.py#L973-L975
The offending call is thread.terminate(). As a result, currently during batch processing if one clicks "Stop", the H5 worker will still finish up the work in the background. Only the whole processing queue is killed.

If a more recent Qt/PyQt5 is available (at least 5.10) we should revisit this problem. I suspect it's the underlying implementation causing the problem.

@leofang
Copy link
Contributor Author

leofang commented Aug 5, 2019

Need to ask Anaconda folks to update Qt/PyQt: ContinuumIO/anaconda-issues#9124

@leofang
Copy link
Contributor Author

leofang commented Aug 12, 2019

If a more recent Qt/PyQt5 is available (at least 5.10) we should revisit this problem. I suspect it's the underlying implementation causing the problem.

It's probably not this reason. Tried building PyQt 5.12.3 (conda-forge/pyqt-feedstock#61) on top of condo-forge's new Qt 5.12.1 (conda-forge/qt-feedstock#110). Still hangs. I probably used thread.terminate() wrong, but I still can't figure out why...

@tacaswell
Copy link

What is the type of HardWorker?

@leofang
Copy link
Contributor Author

leofang commented Aug 12, 2019

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

2 participants