Crash in geometry drawing

Please provide the following information:


ROOT Version (e.g. 6.12/02): v6-12-!04-2
Platform, compiler (e.g. CentOS 7.3, gcc6.2): kubuntu 14.04 LTS


Hello,
I’ve got a crash while trying to draw the geometry in aliceO2 using the following lines:

TGeoManager::Import("geofile_mft.root");
TGeoVolume *t = gGeoManager->GetVolume("MFT");
gGeoManager->SetVisLevel(10);
t->Draw("ogl");

Here are the error messages if any has an idea of what is the issue?
Thanks by advance.
F. Manso

root [0] .x drawGeometry.C
Info in <TGeoManager::Import>: Reading geometry from file: geofile_mft.root
Info in <TGeoManager::CloseGeometry>: Geometry loaded from file...
Info in <TGeoManager::SetTopVolume>: Top volume is cave. Master volume is cave
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CountLevels>: max level = 7, max placements = 105
Info in <TGeoManager::CloseGeometry>: 48180 nodes/ 23157 volume UID's in FAIR geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
Info in <TGeoManager::SetVisLevel>: Automatic visible depth disabled
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f411c723a0c in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f411c6a9232 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f411d7fbf92 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x24ff570) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/core/unix/src/TUnixSystem.cxx:2118
#3  TUnixSystem::StackTrace (this=0x24ff570) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/core/unix/src/TUnixSystem.cxx:2412
#4  0x00007f411d7fe48c in TUnixSystem::DispatchSignals (this=0x24ff570, sig=kSigSegmentationViolation) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/core/unix/src/TUnixSystem.cxx:3643
#5  <signal handler called>
#6  0x00007f411ca21998 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f410a1ff724 in TGCompositeFrame::MapSubwindows (this=<optimized out>) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/gui/gui/src/TGFrame.cxx:1162
#8  0x00007f40f626ca10 in TGLSAViewer::CreateFrames (this=0x16ef62b0) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/graf3d/gl/src/TGLSAViewer.cxx:461
#9  0x00007f40f626cdcd in TGLSAViewer::TGLSAViewer (this=0x16ef62b0, pad=<optimized out>, format=<optimized out>) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/graf3d/gl/src/TGLSAViewer.cxx:231
#10 0x00007f410163306b in ?? ()
#11 0x0000000016c3f1f0 in ?? ()
#12 0x00007f411873d4dd in std::_Function_handler<llvm::Expected<unsigned long> (), llvm::orc::RTDyldObjectLinkingLayer::ConcreteLinkedObject<std::shared_ptr<llvm::RuntimeDyld::MemoryManager>, std::shared_ptr<llvm::JITSymbolResolver>, llvm::orc::RTDyldObjectLinkingLayer::addObject(std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> >, std::shared_ptr<llvm::JITSymbolResolver>)::{lambda(std::_List_iterator<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject, std::default_delete<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> > >, llvm::RuntimeDyld&, std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () from /home/manso/aliceO2/sw/ubuntu1404_x86-64/ROOT/v6-12-04-2/lib/libCling.so
#13 0x00007f4118747d02 in llvm::orc::LazyEmittingLayer<llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler> >::EmissionDeferredModule::find(llvm::StringRef, bool, llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler>&)::{lambda()#1}::operator()() const () from /home/manso/aliceO2/sw/ubuntu1404_x86-64/ROOT/v6-12-04-2/lib/libCling.so
#14 0x000000000257ace0 in ?? ()
#15 0x0000000016c59728 in ?? ()
#16 0x00007f411873ea76 in cling::IncrementalExecutor::getPointerToGlobalFromJIT(llvm::GlobalValue const&) () from /home/manso/aliceO2/sw/ubuntu1404_x86-64/ROOT/v6-12-04-2/lib/libCling.so
#17 0x0000000000000000 in ?? ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://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  0x00007f411ca21998 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f410a1ff724 in TGCompositeFrame::MapSubwindows (this=<optimized out>) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/gui/gui/src/TGFrame.cxx:1162
#8  0x00007f40f626ca10 in TGLSAViewer::CreateFrames (this=0x16ef62b0) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/graf3d/gl/src/TGLSAViewer.cxx:461
#9  0x00007f40f626cdcd in TGLSAViewer::TGLSAViewer (this=0x16ef62b0, pad=<optimized out>, format=<optimized out>) at /home/manso/aliceO2/sw/SOURCES/ROOT/v6-12-04/v6-12-04/graf3d/gl/src/TGLSAViewer.cxx:231
#10 0x00007f410163306b in ?? ()
#11 0x0000000016c3f1f0 in ?? ()
#12 0x00007f411873d4dd in std::_Function_handler<llvm::Expected<unsigned long> (), llvm::orc::RTDyldObjectLinkingLayer::ConcreteLinkedObject<std::shared_ptr<llvm::RuntimeDyld::MemoryManager>, std::shared_ptr<llvm::JITSymbolResolver>, llvm::orc::RTDyldObjectLinkingLayer::addObject(std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> >, std::shared_ptr<llvm::JITSymbolResolver>)::{lambda(std::_List_iterator<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject, std::default_delete<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> > >, llvm::RuntimeDyld&, std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () from /home/manso/aliceO2/sw/ubuntu1404_x86-64/ROOT/v6-12-04-2/lib/libCling.so
#13 0x00007f4118747d02 in llvm::orc::LazyEmittingLayer<llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler> >::EmissionDeferredModule::find(llvm::StringRef, bool, llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer, llvm::orc::SimpleCompiler>&)::{lambda()#1}::operator()() const () from /home/manso/aliceO2/sw/ubuntu1404_x86-64/ROOT/v6-12-04-2/lib/libCling.so
#14 0x000000000257ace0 in ?? ()
#15 0x0000000016c59728 in ?? ()
#16 0x00007f411873ea76 in cling::IncrementalExecutor::getPointerToGlobalFromJIT(llvm::GlobalValue const&) () from /home/manso/aliceO2/sw/ubuntu1404_x86-64/ROOT/v6-12-04-2/lib/libCling.so
#17 0x0000000000000000 in ?? ()
===========================================================

@agheata can help your with this. Note that I edited your post which was very hard to read because of a wrong formatting. Next time follow the recipe described here:
https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292/2

Thanks a lot for your help.

The issue is solved, the opengl bug was induced by the root v6-12-04 release that is used in aliceO2 software. Solved thanks to v6-12-06 release.

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