Ticket #1379 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

MantidPlot crash from "plot spectrum..." right click menu

Reported by: Peter Peterson Owned by: Russell Taylor
Priority: minor Milestone: Iteration 24
Component: Keywords:
Cc: Blocked By:
Blocking: Tester: Janik Zikovsky

Description

This was observed on ubuntu, but I'm suspicious it is universal. LoadRaw Test/Data/Full point detector CRISP dataset/csp79590.raw with Monitors Include. In the workspace list right click on the workspace group csp79590 and plot spectrum... and just click ok to have it crash with an error:

MantidPlot: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = const Mantid::API::MatrixWorkspace]: Assertion `px != 0' failed.
Aborted

Change History

comment:1 Changed 10 years ago by Russell Taylor

Don't have a fix yet, but I know what the problem is.....

We recently changed the workspace display widget (MantidDock class) to only populating the tree when an item is expanded. Hence the bad news if you try to plot without expanding the members of the group (you'll see things are fine if you do).

This is probably easy to fix - I'll take a look tomorrow.

comment:2 Changed 10 years ago by Nick Draper

  • Owner set to Russell Taylor
  • Status changed from new to assigned

comment:3 Changed 10 years ago by Russell Taylor

  • Status changed from assigned to accepted

comment:4 Changed 10 years ago by Russell Taylor

(In [5523]) Fix for potential crash when plotting spectrum from workspace group. Re #1379.

comment:5 Changed 10 years ago by Russell Taylor

  • Status changed from accepted to verify

comment:6 Changed 10 years ago by Nick Draper

  • Resolution set to fixed

fill in missing resolution

comment:7 Changed 10 years ago by Janik Zikovsky

  • Status changed from verify to verifying
  • Tester set to Janik Zikovsky

comment:8 Changed 10 years ago by Janik Zikovsky

  • Status changed from verifying to closed

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2226

Note: See TracTickets for help on using tickets.