TgeoManager gdml viewing error

Hi everyone

Im a complete beginner using ROOT so please be patient

Im trying to open a gdml file but I only get errors. Any help would be very much appreciated!


X11 connection rejected because of wrong authentication.
PopupLogo, XOpenDisplay failed

| Welcome to ROOT 6.14/08 |
| © 1995-2018, The ROOT Team |
| Built for linuxx8664gcc |
| From tags/v6-14-08@v6-14-08, Nov 22 2018, 08:48:56 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

root [0] gSystem->Load(“libGeom”)
(int) 0
root [1] TGeoManager *geo=new TGeoManager();
root [2] geo->Import(“example.gdml”)
Info in TGeoManager::Import: Reading geometry from file: example.gdml
Info in TGeoManager::TGeoManager: Geometry GDMLImport, Geometry imported from GDML created
Warning in TGeoMaterial::ctor: Material sTrackerOTPassiveMix defined with fractional Z=7.085650
Info in TGeoManager::SetTopVolume: Top volume is World. Master volume is World
Info in TGeoNavigator::BuildCache: — Maximum geometry depth set to 100
Info in TGeoManager::CheckGeometry: Fixing runtime shapes…
Info in TGeoManager::CheckGeometry: …Nothing to fix
Info in TGeoManager::CloseGeometry: Counting nodes…
Info in TGeoManager::Voxelize: Voxelizing…
Info in TGeoManager::CloseGeometry: Building cache…
Info in TGeoManager::CountLevels: max level = 4, max placements = 36
Info in TGeoManager::CloseGeometry: 1744 nodes/ 21 volume UID’s in Geometry imported from GDML
Info in TGeoManager::CloseGeometry: ----------------modeler ready----------------
(TGeoManager ) 0x2ab38b0
root [3]
root [3]
root [3] TGeoVolume
Test= gGeoManager->GetVolume(“Test”);
root [4] Test->Draw()


#0 0x00007ff186b29a3c in waitpid () from /lib64/
#1 0x00007ff186aa7de2 in do_system () from /lib64/
#2 0x00007ff1876881b4 in TUnixSystem::StackTrace() () from /usr/lib64/root/
#3 0x00007ff182478705 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /usr/lib64/root/
#4 0x00007ff182477c3b in cling_runtime_internal_throwIfInvalidPointer () from /usr/lib64/root/
#5 0x00007ff187dde086 in ?? ()
#6 0x00007ff182477bf0 in ?? () from /usr/lib64/root/
#7 0x0000000000d3c370 in ?? ()
#8 0x0000000002cf8d40 in ?? ()
#9 0x00007fffc3c0c4d0 in ?? ()
#10 0x00007fffc3c0c0b0 in ?? ()
#11 0x00007ff182479b5d in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /usr/lib64/root/
#12 0x00007ff18247a73c in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/lib64/root/
#13 0x00007ff18247a946 in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**, bool) () from /usr/lib64/root/
#14 0x00007ff182513f48 in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /usr/lib64/root/
#15 0x00007ff1823efc5a in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/lib64/root/
#16 0x00007ff182407902 in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/lib64/root/
#17 0x00007ff18754de2a in TApplication::ProcessLine(char const*, bool, int*) () from /usr/lib64/root/
#18 0x00007ff1879b8daf in TRint::ProcessLineNr(char const*, char const*, int*) () from /usr/lib64/root/
#19 0x00007ff1879b914b in TRint::HandleTermInput() () from /usr/lib64/root/
#20 0x00007ff1876894c5 in TUnixSystem::CheckDescriptors() () from /usr/lib64/root/
#21 0x00007ff18768a76a in TUnixSystem::DispatchOneEvent(bool) () from /usr/lib64/root/
#22 0x00007ff1875ae0c6 in TSystem::InnerLoop() () from /usr/lib64/root/
#23 0x00007ff1875aeff0 in TSystem::Run() () from /usr/lib64/root/
#24 0x00007ff18754c2ef in TApplication::Run(bool) () from /usr/lib64/root/
#25 0x00007ff1879ba965 in TRint::Run(bool) () from /usr/lib64/root/
#26 0x00000000004008aa in main ()
Error in : Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
ROOT_prompt_4:1:1: warning: null passed to a callee that requires a non-null argument [-Wnonnull]



You must get rid of the “display” / “X11 authentication” problems (which are unrelated to ROOT).