Bug #2124

Successive call to SimulationResult.data() causes segmentation fault

Added by dmitry about 2 years ago. Updated about 2 years ago.

Status:RejectedStart date:25 Jul 2018
Priority:NormalDue date:
Assignee:dmitry% Done:

0%

Category:-
Target version:Sprint 38

Description

Tested on Kubuntu 18.04.
This code snippet causes segmentation fault:

def plot_result(sim_result):
    sim_axis = sim_result.data().getAxis(0).getBinCenters()
    intensity = sim_result.data().getArray()
    plt.semilogy(sim_axis, intensity)
    plt.show()

However, this works:

def plot_result(sim_result):
    sim_data = sim_result.data()
    plt.semilogy(sim_data.getAxis(0).getBinCenters(), sim_data.getArray())
    plt.show()

sim_result was produced by a SpecularSimulation

History

#1 Updated by dmitry about 2 years ago

  • Assignee set to dmitry

#2 Updated by dmitry about 2 years ago

  • Status changed from Sprint to Rejected

Should be solved together with refactoring SimulationResult accessors. Rejecting for now

Also available in: Atom PDF