Error in <TGeoManager::GetGeomPainter>: not found plugin root for geo_painter in lxplus

Hi,
I’m trying to use the TGeomPainter in ROOT, but it crash with a segmentation violation. I copy below some lines to reproduce the error. I find the same error in all lxplus machines I tried.
Any idea what is happening?
Thank you and best regards,
José

root [0] gSystem->Load(“libGeom”);
root [1] TGeoMaterial *mat = new TGeoMaterial(“Vacuum”,0,0,0);
Info in TGeoManager::TGeoManager: Geometry Geometry, default geometry created
root [2] TGeoMedium *med = new TGeoMedium(“Vacuum”,1,mat);
root [3] TGeoVolume *top=gGeoManager->MakeBox(“Top”,med,10.,10.,10.);
root [4] gGeoManager->SetTopVolume(top);
Info in TGeoManager::SetTopVolume: Top volume is Top. Master volume is Top
Info in TGeoNavigator::BuildCache: — Maximum geometry depth set to 100
root [5] gGeoManager->CloseGeometry();
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 = 1, max placements = 0
Info in TGeoManager::CloseGeometry: 1 nodes/ 1 volume UID’s in default geometry
Info in TGeoManager::CloseGeometry: ----------------modeler ready----------------
root [6] top->SetLineColor(kMagenta);
root [7] gGeoManager->SetTopVisible();
Error in TGeoManager::GetGeomPainter: not found plugin root for geo_painter

*** Break *** segmentation violation

ROOT Version: 6.32.06
Built for linuxx8664gcc on Sep 23 2024, 00:00:00
From tags/6-32-06@6-32-06

Hi José ,

Can you check that is return value of TROOT::GetEtcDir()?
In this directory should be TVirtualGeoPainter sub-directory with correspondent plugins.

For me ROOT 6.32 works fine with your simple macro.
Here it is again with better formatting:

   gSystem->Load("libGeom");
   TGeoMaterial *mat = new TGeoMaterial("Vacuum",0,0,0);
   TGeoMedium *med = new TGeoMedium("Vacuum",1,mat);
   TGeoVolume *top=gGeoManager->MakeBox("Top",med,10.,10.,10.);
   gGeoManager->SetTopVolume(top);
   gGeoManager->CloseGeometry();
   top->SetLineColor(kMagenta);
   gGeoManager->SetTopVisible();
   top->Draw("ogl");

Regards,
Sergey

Thanks Sergey for checking this. I get (const TString &) "/usr/share/root"[15] when running GetEtcDir():

jsotooto@lxplus914 newtest]$ root -l
root [0] TROOT::GetEtcDir()
(const TString &) "/usr/share/root"[15]
root [1]    gSystem->Load("libGeom");
root [2]    TGeoMaterial *mat = new TGeoMaterial("Vacuum",0,0,0);
Info in <TGeoManager::TGeoManager>: Geometry Geometry, default geometry created
root [3]    TGeoMedium *med = new TGeoMedium("Vacuum",1,mat);
root [4]    TGeoVolume *top=gGeoManager->MakeBox("Top",med,10.,10.,10.);
root [5]    gGeoManager->SetTopVolume(top);
Info in <TGeoManager::SetTopVolume>: Top volume is Top. Master volume is Top
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
root [6]    gGeoManager->CloseGeometry();
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 = 1, max placements = 0
Info in <TGeoManager::CloseGeometry>: 1 nodes/ 1 volume UID's in default geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
root [7]    top->SetLineColor(kMagenta);
root [8]    gGeoManager->SetTopVisible();
Error in <TGeoManager::GetGeomPainter>: not found plugin root for geo_painter

I’m using a VNC server, might be related to that? However I can open the TBrowser without problems.

Best regards,
José

How you install ROOT?

Do you have “plugin/TVirtualGeoPainter” directory in "/usr/share/root"?

Maybe you missing some extra packages?

I do have it, but it is empty. Is this something I should install? I’m running at CERN lxplus, it usually works straight away…

Full directory name is /usr/share/root/plugins/TVirtualGeoPainter.

But it is empty. Really strange.

Maybe @bellenot or @Danilo have idea why it is so on lxplus.

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