Closed rozyczko closed 3 years ago
In the beginning, multithreading seems to work, but each subsequent fitting process takes longer and longer, even though the parameters to be fitted are exactly the same (this has never happened before). Also, the GUI stays responsive right after the fitting starts, but freezes after a few seconds, and this freeze time increases with each subsequent fitting run.
Good! I expected some issues with thread close (which is what happens here) because I wasn't scrupulous with the thread lifetimes - just wanted to see if these solve the crashing issue. I'll add the proper thread handling between spawning.
I mistakenly assigned another/same slot to the finish signal, causing the post-fit update to be called increasingly more times. This was causing slow consecutive fits and GUI freeze
This is now ready to merge
We use standard python threads for fitting now, on all platforms. This is a temporary solution.
This draft PR is for testing the installer on macos wrt. threading issues seen with QThreads.
NOT TO BE MERGED IN THE CURRENT STATE