Ticket #5964 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Crash when clicking near title on graphs

Reported by: Nick Draper Owned by: Roman Tolchenov
Priority: critical Milestone: Release 2.3
Component: MantidPlot Keywords:
Cc: Blocked By:
Blocking: Tester: Wenduo Zhou

Description

This is a tough one to reproduce, but has haunted some of our users since day one.

Ann Terry, claims she can reproduce the bug, so let's squash it.

Attachments

CrashSpot.png (148.1 KB) - added by Roman Tolchenov 8 years ago.

Change History

comment:1 Changed 8 years ago by Nick Draper

  • Priority changed from major to critical

comment:2 Changed 8 years ago by Roman Tolchenov

  • Status changed from new to accepted

Changed 8 years ago by Roman Tolchenov

comment:3 Changed 8 years ago by Roman Tolchenov

Dereck has become an expert in this crash. To reproduce it:

  • create a 1d plot
  • make it full screen
  • double-click on the spot marked by an X on the attached picture.
  • if unsuccessful try again

comment:4 Changed 8 years ago by Roman Tolchenov

Access violation exception in

void ApplicationWindow::enableTextEditor(Graph *g)

comment:5 Changed 8 years ago by Roman Tolchenov

Re #5964. Clear a pointer after text editor is deleted.

Crash happens because of a dangling pointer left in ApplicationWindow after a Graph is closed with a text editor still open. The editor is open when you edit the title, the axis captions or the legend.

Changeset: 9db18b71c9e9929a856070d79f770d6709fcf962

comment:6 Changed 8 years ago by Roman Tolchenov

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

To test:

  • open a 1d graph
  • double-click the title to open a text editor
  • close the graph with the editor active
  • open another graph
  • click on the title (or anywhere on the graph)

comment:7 Changed 8 years ago by Wenduo Zhou

  • Status changed from verify to verifying
  • Tester set to Wenduo Zhou

comment:8 Changed 8 years ago by Wenduo Zhou

  • Status changed from verifying to closed

comment:9 Changed 8 years ago by Roman Tolchenov

Re #5964. Clear a pointer after text editor is deleted.

Crash happens because of a dangling pointer left in ApplicationWindow after a Graph is closed with a text editor still open. The editor is open when you edit the title, the axis captions or the legend.

Changeset: 9db18b71c9e9929a856070d79f770d6709fcf962

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6810

Note: See TracTickets for help on using tickets.