Ticket #5206 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

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:1 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

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

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6052

Note: See TracTickets for help on using tickets.