Ticket #7004 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

FunctionProperty crashes MantidPlot in Python

Reported by: Gesner Passos Owned by: Martyn Gigg
Priority: blocker Milestone: Release 2.5
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Gesner Passos

Description

Try to run this code:

from mantid.api import FunctionProperty
func = FunctionProperty("TestFunction")

And be prepared to restart mantid.

Verified in Ubuntu 12.4 and Windows 7.

Change History

comment:1 Changed 7 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:2 Changed 7 years ago by Martyn Gigg

Add null pointer check to FunctionProperty::value.

Also updates the unit test to test for this behaviour. Refs #7004

Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978

comment:3 Changed 7 years ago by Martyn Gigg

Add null pointer check to FunctionProperty::value.

Also updates the unit test to test for this behaviour. Refs #7004

Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978

comment:4 Changed 7 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

Branch: bugfix/7004_function_property_crash

Tester: Run the script above in MantidPlot and there should be no crash.

comment:5 Changed 7 years ago by Gesner Passos

  • Status changed from verify to verifying
  • Tester set to Gesner Passos

comment:6 Changed 7 years ago by Martyn Gigg

Add null pointer check to FunctionProperty::value.

Also updates the unit test to test for this behaviour. Refs #7004

Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978

comment:7 Changed 7 years ago by Gesner Passos

  • Status changed from verifying to closed

Problem solved.

comment:8 Changed 7 years ago by Martyn Gigg

Add null pointer check to FunctionProperty::value.

Also updates the unit test to test for this behaviour. Refs #7004

Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7850

Note: See TracTickets for help on using tickets.