Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instances of AxesDialog aren't being disposed of efficently #8880

Closed
1 task done
mantid-builder opened this issue Sep 26, 2013 · 1 comment
Closed
1 task done

Instances of AxesDialog aren't being disposed of efficently #8880

mantid-builder opened this issue Sep 26, 2013 · 1 comment
Labels
Low Priority Things that you don't ever want to be done. Maintenance Unassigned issues to be addressed in the next maintenance period.
Projects

Comments

@mantid-builder
Copy link
Collaborator

This issue was originally TRAC 8035

Original Reporter: Keith Brown

This ticket is blocked by :

During ticket http://trac.mantidproject.org/mantid/ticket/7865 the memory usage of AxesDialog increased, but it was assumed that this would be OK as the memory would be freed up once the dialog is closed. This is not the case.

What seems to be happening is that the instances of AxesDialog are being parented by the graph and are still hanging about in memory until the graph window is closed, when they really should be deleted once the dialog is closed.

An example of one areas that need improvement:

QDialog* ApplicationWindow::showScaleDialog()
{
  MdiSubWindow *w = activeWindow();
  if (!w)
    return 0;

  if (w->isA("MultiLayer")){
    if (dynamic_cast`<MultiLayer*>`(w)->isEmpty())
      return 0;

    Graph* g = dynamic_cast`<MultiLayer*>`(w)->activeGraph();
    if (g->isPiePlot()){
      QMessageBox::warning(this, tr("MantidPlot - Warning"), tr("This functionality is not available for pie plots!"));//Mantid
      return 0;
    }

    AxesDialog* ad = new AxesDialog(this,g);
    ad->exec();
    return ad;
  } else if (w->isA("Graph3D"))
    return showPlot3dDialog();

  return 0;
}

At the time of writing, http://trac.mantidproject.org/mantid/ticket/7865 is still in progress so it might be wise to leave this until the improvements have been made.


Keywords: Maintenance

@mantid-builder
Copy link
Collaborator Author

@NickDraper (2014-02-14T11:07:58):
bulk move to assigned at the into of the triage step


Keith Brown (2014-06-26T13:07:08):
not going to get this done before i leave, leaving to anyone

@mantid-builder mantid-builder added Low Priority Things that you don't ever want to be done. GUI Maintenance Unassigned issues to be addressed in the next maintenance period. labels Jun 3, 2015
@NickDraper NickDraper added this to the Release 3.6 milestone Oct 2, 2015
@NickDraper NickDraper modified the milestones: Release 3.6, Release 3.7 Jan 22, 2016
@NickDraper NickDraper modified the milestone: Release 3.7 May 20, 2016
@peterfpeterson peterfpeterson added this to To do in Maintenance Nov 20, 2018
Maintenance automation moved this from To do to Done Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority Things that you don't ever want to be done. Maintenance Unassigned issues to be addressed in the next maintenance period.
Projects
Development

No branches or pull requests

3 participants