Ticket #7117 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Crashes when working with qtiplot objects

Reported by: Roman Tolchenov Owned by: Roman Tolchenov
Priority: critical Milestone: Release 2.6
Component: MantidPlot Keywords:
Cc: Blocked By:
Blocking: Tester: Alex Buts

Description

  1. The three projects attached all cause a crash for me when loading them.

  1. Create a function plot from file>new>new function plot double click on the graph, right click on the function (F1) and edit it click ok in the edit function window and then ok again in the plot details window and mantid will crash.

Attachments

Delta.mantid (5.6 KB) - added by Roman Tolchenov 7 years ago.
DeltaSimpson.mantid (3.2 KB) - added by Roman Tolchenov 7 years ago.
wavelength polarisation transmission plots.mantid (2.9 KB) - added by Roman Tolchenov 7 years ago.

Change History

Changed 7 years ago by Roman Tolchenov

Changed 7 years ago by Roman Tolchenov

Changed 7 years ago by Roman Tolchenov

comment:1 Changed 7 years ago by Roman Tolchenov

  • Status changed from new to accepted

comment:2 Changed 7 years ago by Roman Tolchenov

This stops crash when loading projects but doesn't fix the issue.

Re #7117

Changeset: e136f2ce948c55e9483bf2488fc1e34c450df5a6

comment:3 Changed 7 years ago by Roman Tolchenov

Renamed UserFunction class in MantidPlot. Re #7117

Changeset: 511ff9fd0bdc89d12474c2ffae18c313544f4a6b

comment:4 Changed 7 years ago by Roman Tolchenov

Changes to qtiplot UserFunction to make it work better with Mantid.

Re #7117

Changeset: 05fedbf8dab2fdd493e4a461f143368943e062f2

comment:5 Changed 7 years ago by Roman Tolchenov

Trying to guard some pointers. Re #7117.

MantidPlot crashes when a MantidMatrix and a 3D graph are shown and you delete the underlying workspace in the dock widget. I am trying to find its cause.

Changeset: dfadf91989c0f00917344f0d163fc7fe555abdc0

comment:6 Changed 7 years ago by Roman Tolchenov

Dettached MantidMatrixFunction from MantidMatrix.

Removed some deletes. Re #7117

Changeset: d6c0b7ac76fb4ebf65c8e0b9ce792d3f959181e0

comment:7 Changed 7 years ago by Roman Tolchenov

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

To tester:

Please also test that projects containing 3D graphs can be saved, loaded and replaced with other projects.

comment:8 Changed 7 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester set to Nick Draper

comment:9 Changed 7 years ago by Nick Draper

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Managed to find an issue:

  1. Create a qtiplot matrix
  2. fill it with values - I used Matrix->SetValue with sin(i/10)+sin(j/10) from 1-300 for both axes
  3. Plot the matrix as a 3D graph
  4. I also had a workspace and workspace based 3D graph (not sure if this is required)
  5. Save the project
  6. restart Mantid
  7. Load the project
  8. The qtiplot matrix 3D graph had lost it's colour and was all black. The Mantid based 3D graph was OK.

comment:10 Changed 7 years ago by Roman Tolchenov

  • Status changed from reopened to accepted

comment:11 Changed 7 years ago by Roman Tolchenov

Corrected 3d plot style setting when openning project.

Re #7117.

Changeset: 8e7ffc0a7ac88f6e79600d822714cc70745af5cd

comment:12 Changed 7 years ago by Roman Tolchenov

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

To tester:

The matrix must be large and the 3d plot must be "3D Polygons".

The problem was that the plot open from the project file becomes a "3D Wired Surface". The density of the wire lines is so high that they hide the coloured surface.

comment:13 Changed 7 years ago by Alex Buts

  • Status changed from verify to verifying
  • Tester changed from Nick Draper to Alex Buts

comment:14 Changed 7 years ago by Alex Buts

  • Status changed from verifying to closed

No crashes observed, though the crash which is similar to the one fixed here is described by ticket #7133

Save/load projects does not save/restore custom functions i.e. if you plot custom function, saved the project and then restored it the plot windows remains but function disappears. Its not a crash, so may be a issue for other ticket.

comment:15 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7963

Note: See TracTickets for help on using tickets.