Frozen GL view

With ROOT 5.27/04 (on linuxx8664gcc) I can Import some GDML file
[size=85]root [0] TGeoManager::Import(“test.gdml”);[/size]
and visualize it without problem.
[size=85]root [1] gGeoManager->GetTopVolume()->Draw(“ogl”);
TCanvas::MakeDefCanvas: created default TCanvas with name c1[/size]

[b]But with “pyroot” the visualisation window is frozen:

[ul]* Menu button “Clipping/Plane/Apply” have no effect,

  • Interactive manipulation of the object don’t work
  • File/Quit ROOT don’t work[/ul]
    [/b]

[size=85]$ python
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
gGeoManager=ROOT.TGeoManager(“LMJ”,“GDML file from ProE”)
Info in TGeoManager::TGeoManager: Geometry LMJ, GDML file from ProE created
mygeo = gGeoManager.Import(“test.gdml”)
Info in TGeoManager::Import: Reading geometry from file: test.gdml
Info in TGeoManager::TGeoManager: Geometry GDMLImport, Geometry imported from GDML created
Info in TGeoManager::SetTopVolume: Top volume is World. Master volume is World
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 TGeoNavigator::BuildCache: — Maximum geometry depth set to 100
Info in TGeoManager::CloseGeometry: 2 nodes/ 2 volume UID’s in Geometry imported from GDML
Info in TGeoManager::CloseGeometry: ----------------modeler ready----------------
mygeo.GetTopVolume().Draw(“ogl”)
TCanvas::MakeDefCanvas: created default TCanvas with name c1
[/size]

PS: When I upload the attached a file I’ve the message “The extension is not allowed.”

Hi,

has to do with thread creation order, and I’ve never figured it out completely. See also this topic: [url]Pyroot and openGl mode trouble

Cheers,
Wim

[quote=“wlav”]Hi,

has to do with thread creation order, and I’ve never figured it out completely. See also this topic: [url]Pyroot and openGl mode trouble

Cheers,
Wim[/quote]

Is there some work done to solve this “bug” ?
I’ve to use cint interface instead of python ? :astonished:

Hi,

no, sorry, I haven’t looked into it recently. The problem in finding a solution is the chicken-and-egg situation of it, with the code unable to know if the user script (or worse, interactive prompt) will fire up OpenGL with a new thread in the future.

Cheers,
Wim