SegFault while Draw() of TGeoVolume

ROOT Version: 6.22/08
Platform: Ubuntu 20.04
Compiler: gcc 9.4.0

Hello!
I have a root file, which contains detector geometry.
I want to draw this geometry.
For this I do the following steps:

$ root
$ TFile f("myfile.root")
$ TGeoVolume *topvol
$ f.GetObject("TOP;1", topvol)
$ topvol->Draw()

At the first time a window with 3d geometry appeared.
But when I tried scroll mouse it crashed with the following output:

root [6] f.GetObject("TGeoVolumeAssembly", topvol)
root [7] topvol
(TGeoVolume *) nullptr
root [8] f.GetObject("TGeoVolumeAssembly123", topvol)
root [9] topvol
(TGeoVolume *) nullptr
root [10] f.GetObject("TOP;1", topvol)
root [11] topvol
(TGeoVolume *) 0x5557e3f7fa10
root [12] topvol->Draw()
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name Canvas_1
root [13] 
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f4188bd3c6a in wait4 () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4188b42f97 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f41891dcefa in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2117
#3  TUnixSystem::StackTrace (this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2408
#4  0x00007f41891da345 in TUnixSystem::DispatchSignals (this=0x5557e06ce800, sig=kSigSegmentationViolation) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:3646
#5  <signal handler called>
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=246, py=py
entry=245, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=245, px=246, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=246, py=245, prevSelObj=0x5557e1e973b0) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93fa6 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kMouseMotion, px=246, py=245) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1227
#13 0x00007f4172fa75a1 in TRootCanvas::HandleContainerMotion (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1914
#14 0x00007f4172ee10d1 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:531
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================



The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=246, py=py
entry=245, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=245, px=246, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=246, py=245, prevSelObj=0x5557e1e973b0) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93fa6 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kMouseMotion, px=246, py=245) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1227
#13 0x00007f4172fa75a1 in TRootCanvas::HandleContainerMotion (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1914
#14 0x00007f4172ee10d1 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:531
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


Root > 
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f4188bd3c6a in wait4 () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4188b42f97 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f41891dcefa in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2117
#3  TUnixSystem::StackTrace (this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2408
#4  0x00007f41891da345 in TUnixSystem::DispatchSignals (this=0x5557e06ce800, sig=kSigSegmentationViolation) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:3646
#5  <signal handler called>
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=443, py=py
entry=195, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=195, px=443, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=443, py=195, prevSelObj=0x5557e1e973b0) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=443, py=195) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=443, py=py
entry=195, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=195, px=443, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=443, py=195, prevSelObj=0x5557e1e973b0) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=443, py=195) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


Root > 
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f4188bd3c6a in wait4 () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4188b42f97 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f41891dcefa in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2117
#3  TUnixSystem::StackTrace (this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2408
#4  0x00007f41891da345 in TUnixSystem::DispatchSignals (this=0x5557e06ce800, sig=kSigSegmentationViolation) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:3646
#5  <signal handler called>
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=402, py=py
entry=218, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=218, px=402, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=402, py=218, prevSelObj=0x5557e409aa40) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=402, py=218) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=402, py=py
entry=218, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=218, px=402, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=402, py=218, prevSelObj=0x5557e409aa40) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=402, py=218) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


Root > 
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f4188bd3c6a in wait4 () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4188b42f97 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f41891dcefa in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2117
#3  TUnixSystem::StackTrace (this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2408
#4  0x00007f41891da345 in TUnixSystem::DispatchSignals (this=0x5557e06ce800, sig=kSigSegmentationViolation) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:3646
#5  <signal handler called>
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=307, py=py
entry=100, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=100, px=307, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=307, py=100, prevSelObj=0x5557e409aa40) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=307, py=100) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=307, py=py
entry=100, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=100, px=307, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=307, py=100, prevSelObj=0x5557e409aa40) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=307, py=100) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645
#18 0x00007f4172e922db in TGClient::HandleInput (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:700
#19 0x00007f41891dab50 in TUnixSystem::DispatchOneEvent (this=0x5557e06ce800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1064
#20 0x00007f41890fe8c4 in TSystem::InnerLoop (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#21 0x00007f41890fd56f in TSystem::Run (this=0x5557e06ce800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#22 0x00007f41890975b3 in TApplication::Run (this=this
entry=0x5557e0726b90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#23 0x00007f4189459505 in TRint::Run (this=0x5557e0726b90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#24 0x00005557dfd22180 in main (argc=<optimized out>, argv=0x7ffc9a9ff758) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


Root > 
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f4188bd3c6a in wait4 () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f4188b42f97 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f41891dcefa in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2117
#3  TUnixSystem::StackTrace (this=0x5557e06ce800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2408
#4  0x00007f41891da345 in TUnixSystem::DispatchSignals (this=0x5557e06ce800, sig=kSigSegmentationViolation) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:3646
#5  <signal handler called>
#6  0x00007f417415a601 in TGeoNavigator::PopPath (this=0x0) at <path_to_root_source>/geom/geom/inc/TGeoNavigator.h:197
#7  0x00007f4171e89d14 in TGeoManager::PopPath (this=<optimized out>) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:584
#8  TGeoPainter::DistanceToPrimitiveVol (this=0x5557e435f600, volume=<optimized out>, px=<optimized out>, py=<optimized out>) at <path_to_root_source>/geom/geompainter/src/TGeoPainter.cxx:493
#9  0x00007f4173caff4c in TPad::Pick (this=this
entry=0x5557e3de9cb0, px=px
entry=350, py=py
entry=63, pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>) at <path_to_root_source>/graf2d/gpad/src/TPad.cxx:4569
#10 0x00007f4173c95b78 in TCanvas::Pick (pickobj=
0x7ffc9a9fd1f0: 0x7f4173d11580 <TPad::Pick(int, int, TObjLink*&)::dummyLink>, py=63, px=350, this=0x5557e3de9cb0) at <path_to_root_source>/graf2d/gpad/inc/TCanvas.h:184
#11 TCanvas::Pick (this=0x5557e3de9cb0, px=350, py=63, prevSelObj=0x5557e3d82d70) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1531
#12 0x00007f4173c93c76 in TCanvas::HandleInput (this=0x5557e3de9cb0, event=kButton1Down, px=350, py=63) at <path_to_root_source>/graf2d/gpad/src/TCanvas.cxx:1269
#13 0x00007f4172fa726f in TRootCanvas::HandleContainerButton (this=0x5557e43a9260, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TRootCanvas.cxx:1737
#14 0x00007f4172ee1460 in TGFrame::HandleEvent (this=0x5557e4407080, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGFrame.cxx:502
#15 0x00007f4172e91c3e in TGClient::HandleEvent (this=0x5557e21ed4b0, event=0x7ffc9a9fd3b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:843
#16 0x00007f4172e92275 in TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:653
#17 TGClient::ProcessOneEvent (this=0x5557e21ed4b0) at <path_to_root_source>/gui/gui/src/TGClient.cxx:645

and other lines, they did not fit into the log, because there is a limit on the number of characters

f.ls();

root [1] f.ls()
TFile**		../../geometry/tof_v8_3.root	
 TFile*		../../geometry/tof_v8_3.root	
  KEY: TGeoVolumeAssembly	TOP;1	Top volume

Try with:

TGeoVolumeAssembly *topvol;
f.GetObject("TOP", topvol);

I tried it. Segmentation fault again. I’ll try maybe reinstalling root.

root [4] topvol->Draw()

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f3440a80c6a in wait4 () from /usr/lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f34409eff97 in ?? () from /usr/lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f3441089efa in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x558498b3b800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2117
#3  TUnixSystem::StackTrace (this=0x558498b3b800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:2408
#4  0x00007f3441087345 in TUnixSystem::DispatchSignals (this=0x558498b3b800, sig=kSigSegmentationViolation) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:3646
#5  <signal handler called>
#6  TGeoManager::SetUserPaintVolume (this=0x0, vol=0x55849a7af4e0) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:236
#7  TGeoVolume::Draw (this=0x55849a7af4e0, option=0x7f343ae00000 "") at <path_to_root_source>/geom/geom/src/TGeoVolume.cxx:1148
#8  0x00007f343ae010b5 in ?? ()
#9  0x0000000000000002 in ?? ()
#10 0x00007f343cad3d40 in ?? () from <PATH_TO_libcling.so>/libCling.so
#11 0x0000558498b3d1d0 in ?? ()
#12 0x000055849bb3ab70 in ?? ()
#13 0x00007f343cb93f00 in ?? () from <PATH_TO_libcling.so>/libCling.so
#14 0x00007ffdd23e0020 in ?? ()
#15 0x0000558498bbcc60 in ?? ()
#16 0x00007f343cb63169 in cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const () from <PATH_TO_libcling.so>/libCling.so
#17 0x00007f343cad61b1 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from <PATH_TO_libcling.so>/libCling.so
#18 0x00007f343cad78c9 in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from <PATH_TO_libcling.so>/libCling.so
#19 0x00007f343cad7af9 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from <PATH_TO_libcling.so>/libCling.so
#20 0x00007f343cbc6f8d in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from <PATH_TO_libcling.so>/libCling.so
#21 0x00007f343ca3623c in HandleInterpreterException (metaProcessor=0x5584994e8130, input_line=0x55849bb50b50 "#line 1 \"ROOT_prompt_4\"\ntopvol->Draw()", compRes=
0x7ffdd23e000c: cling::Interpreter::kSuccess, result=0x7ffdd23e0020) at <path_to_root_source>/interpreter/llvm/src/include/llvm/ADT/StringRef.h:85
#22 0x00007f343ca490e2 in TCling::ProcessLine (this=0x558498bb0a30, line=<optimized out>, error=0x7ffdd23e050c) at /usr/include/c++/9/bits/unique_ptr.h:360
#23 0x00007f3440f4764b in TApplication::ProcessLine (this=this
entry=0x558498b93a90, line=<optimized out>, sync=sync
entry=false, err=err
entry=0x7ffdd23e050c) at <path_to_root_source>/core/base/src/TApplication.cxx:1470
#24 0x00007f3441304dba in TRint::ProcessLineNr (this=0x558498b93a90, filestem=<optimized out>, line=0x55849b7378e0 "topvol->Draw()", error=0x7ffdd23e050c) at <path_to_root_source>/core/base/inc/TString.h:295
#25 0x00007f344130513a in TRint::HandleTermInput (this=0x558498b93a90) at <path_to_root_source>/core/base/inc/TString.h:239
#26 0x00007f3441086582 in TUnixSystem::CheckDescriptors (this=this
entry=0x558498b3b800) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1319
#27 0x00007f3441088078 in TUnixSystem::DispatchOneEvent (this=0x558498b3b800, pendingOnly=<optimized out>) at <path_to_root_source>/core/unix/src/TUnixSystem.cxx:1074
#28 0x00007f3440fab8c4 in TSystem::InnerLoop (this=0x558498b3b800) at <path_to_root_source>/core/base/src/TSystem.cxx:402
#29 0x00007f3440faa56f in TSystem::Run (this=0x558498b3b800) at <path_to_root_source>/core/base/src/TSystem.cxx:351
#30 0x00007f3440f445b3 in TApplication::Run (this=this
entry=0x558498b93a90, retrn=retrn
entry=false) at <path_to_root_source>/core/base/src/TApplication.cxx:1622
#31 0x00007f3441306505 in TRint::Run (this=0x558498b93a90, retrn=<optimized out>) at <path_to_root_source>/core/rint/src/TRint.cxx:462
#32 0x00005584978be180 in main (argc=<optimized out>, argv=0x7ffdd23e2968) at <path_to_root_source>/main/src/rmain.cxx:30
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  TGeoManager::SetUserPaintVolume (this=0x0, vol=0x55849a7af4e0) at <path_to_root_source>/geom/geom/inc/TGeoManager.h:236
#7  TGeoVolume::Draw (this=0x55849a7af4e0, option=0x7f343ae00000 "") at <path_to_root_source>/geom/geom/src/TGeoVolume.cxx:1148
#8  0x00007f343ae010b5 in ?? ()
#9  0x0000000000000002 in ?? ()
#10 0x00007f343cad3d40 in ?? () from <PATH_TO_libcling.so>/libCling.so
#11 0x0000558498b3d1d0 in ?? ()
#12 0x000055849bb3ab70 in ?? ()
#13 0x00007f343cb93f00 in ?? () from <PATH_TO_libcling.so>/libCling.so
#14 0x00007ffdd23e0020 in ?? ()
#15 0x0000558498bbcc60 in ?? ()
#16 0x00007f343cb63169 in cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const () from <PATH_TO_libcling.so>/libCling.so
#17 0x00007f343cad61b1 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from <PATH_TO_libcling.so>/libCling.so
#18 0x00007f343cad78c9 in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from <PATH_TO_libcling.so>/libCling.so
#19 0x00007f343cad7af9 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from <PATH_TO_libcling.so>/libCling.so
#20 0x00007f343cbc6f8d in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from <PATH_TO_libcling.so>/libCling.so
#21 0x00007f343ca3623c in HandleInterpreterException (metaProcessor=0x5584994e8130, input_line=0x55849bb50b50 "#line 1 "ROOT_prompt_4"ntopvol->Draw()", compRes=
0x7ffdd23e000c: cling::Interpreter::kSuccess, result=0x7ffdd23e0020) at <path_to_root_source>/interpreter/llvm/src/include/llvm/ADT/StringRef.h:85
===========================================================

Maybe @agheata can help.

Hi, geometry cannot be drawn without a valid TGeoManager, i.e. having a top volume defined and being closed. Volumes that are exported to a file should be connected to an existing geometry manager. Try something like:

auto geom = new TGeoManager("", "");
TFile *f = TFile::Open("myfile.root");
TGeoVolume *topvol;
gFile->GetObject("ROOT", topvol);
geom->SetTopVolume(topvol);
geom->CloseGeometry();
topvol->Draw()

Thanks a lot!
It works!

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