Can not view geometry through TCanvas

Hi, yes it is normal that it segfaults in the current implementation of the geometry drawing package, which relies upon a valid geometry manager. When you load the canvas from the file, it deserializes the TGeoVolume object that was drawn, but the original geometry manager the volume belonged to is replaced by a dummy geometry manager (created by the volume constructor). So if you draw the canvas read from the file the volume gets drawn, but as soon as you try to interact with the pad you get a segfault because the painting process needs to talk to a valid (closed) geometry manager.

Long story short, do not expect this to work properly. A solution would be to rewrite and completely decouple the volume painting procedure from the geometry manager, but this won’t happen in a foreseeable future.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.