Bug #2305

Premature deletion of OutputData<double> in python

Added by dmitry over 1 year ago. Updated over 1 year ago.

Status:RejectedStart date:19 Feb 2019
Priority:NormalDue date:
Assignee:dmitry% Done:


Target version:Sprint 40


The following line will cause SEGFAULT:

axis = result.data().getAxis(0).getBinCenters()

Here result is SimulationResult object.
It is caused by premature deletion of OutputData<double> object returned by data() method in python.
A minor, but irritating issue


#1 Updated by dmitry over 1 year ago

  • Assignee set to dmitry

#2 Updated by dmitry over 1 year ago

  • Status changed from Sprint to Rejected

#3 Updated by dmitry over 1 year ago

A simpler method SimulationResult::axis was implemented to alleviate the necessity to use such constructs.

Also available in: Atom PDF