Ticket #9206 (assigned)

Opened 7 years ago

Last modified 5 years ago

Segfault when trying to display an instrument without sample set

Reported by: Arturs Bekasovs Owned by:
Priority: minor Milestone: Backlog
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Save the attached file, which is a very minimal custom IDF, and run the following script, setting the right path:

idf = ".../IDF_for_locations_test.xml" # Set to the actual path
ws = CreateWorkspace([1,2,3], [1,2,3])
LoadInstrument(ws, idf)
getInstrumentView("ws")

Adding following lines to the IDF fixes the problem:

  <component type="sample">
    <location/>
  </component>
  <type name="sample" is="samplePos"/>

I don't think it's a major problem, since all the real instruments will have samples set. Seems to be a simple missing null-check somewhere in the InstrumentView code.

Attachments

IDF_for_locations_test.xml (637 bytes) - added by Arturs Bekasovs 7 years ago.

Change History

Changed 7 years ago by Arturs Bekasovs

comment:1 Changed 7 years ago by Owen Arnold

  • Status changed from new to assigned

comment:2 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10049

Note: See TracTickets for help on using tickets.