Ticket #5599 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Crash when changing colormap on a spectrogram

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: major Milestone: Release 2.2
Component: MantidPlot Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

For me (on RHEL6), performing the following steps crashes MantidPlot:

  • Load a dataset
  • Plot as a color fill plot
  • Double-click inside the plot to bring up the Plot Details dialog
  • Select UserHelperFunction and the Colors tab
  • Select Custom color map and choose a map
  • Click Apply
  • Boom!

Change History

comment:1 Changed 8 years ago by Russell Taylor

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Russell Taylor

Re #5599. Be a bit more general when accessing vector member.

Although the documentation for QwtColorMap::colorTable says that it should return a vector of length 256, in the case of our colormaps it can be shorter, it would seem.

Changeset: 4f37c63a8274d0445a228ce18722d8efd2e2ef1e

comment:3 Changed 8 years ago by Russell Taylor

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

comment:4 Changed 8 years ago by Russell Taylor

Re #5599. Be a bit more general when accessing vector member.

Although the documentation for QwtColorMap::colorTable says that it should return a vector of length 256, in the case of our colormaps it can be shorter, it would seem.

Changeset: 4f37c63a8274d0445a228ce18722d8efd2e2ef1e

comment:5 Changed 8 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:6 Changed 8 years ago by Owen Arnold

  • Status changed from verifying to closed

This doesn't crash RHEL6 any more.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6445

Note: See TracTickets for help on using tickets.