Ticket #9206 (assigned)
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
Change History
Note: See
TracTickets for help on using
tickets.