Ticket #5206 (closed: fixed)
Python - RunPythonScript sometimes crashes
Reported by: | Peter Parker | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Release 2.1 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Janik Zikovsky |
Description
Run the following in a Python window:
import mantidplot mantidplot.runPythonScript(code="print 'test'", async=True)
Every now and then Mantid crashes.
Change History
comment:2 Changed 8 years ago by Martyn Gigg
Fix threading issue with runPythonScript. Refs #5206
It printed directly to the console to the method needs to be called from the main thread.
Changeset: cc80ef78f2cbacbe9732431a44727f92991607e6
comment:3 Changed 8 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 8 years ago by Janik Zikovsky
- Status changed from verify to verifying
- Tester set to Janik Zikovsky
comment:5 Changed 8 years ago by Janik Zikovsky
- Status changed from verifying to closed
I ran a script that printed out 100 times with a small delay each time.
It doesn't seem to actually be running asynchronously (the GUI freezes until all the scripts have finished executing), but there was no crash at all.
comment:6 Changed 8 years ago by Martyn Gigg
Fix threading issue with runPythonScript. Refs #5206
It printed directly to the console to the method needs to be called from the main thread.
Changeset: cc80ef78f2cbacbe9732431a44727f92991607e6