Event display error

Hello, I’m using root_v6.26.10. It compiled on the Linux server without problem. When I remotely access the server using ssh via my PC (macOS Monterey 12.2) and test the event display, I get the following error, and the display is empty.

cd root/tutorials/eve
root -l arrow.C
root [0]
Processing arrow.C…
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error in : GLXBadContext (TGLWidget XID: 6292238, XREQ: 149)
TGLWidget: 6292238
TGVerticalFrame: 6292233
TGLSAFrame: 6292222
TGCompositeFrame: 6292221

Another test with alice_esd.C also gives empty display.

~/Downloads/root/tutorials/eve$ root -l alice_esd.C
root [0]
Processing alice_esd.C…
[TFile::Cp] Total 0.83 MB |====================| 100.00 % [4.2 MB/s]
Info in TFile::OpenFromCache: using local cache copy of http://root.cern.ch/files/alice_ESDs.root [./files/alice_ESDs.root]
Warning in TClass::Init: no dictionary for class AliFMDMap is available
Warning in TClass::Init: no dictionary for class AliESDRun is available
Warning in TClass::Init: no dictionary for class AliESDHeader is available
Warning in TClass::Init: no dictionary for class AliESDZDC is available
Warning in TClass::Init: no dictionary for class AliESDFMD is available
Warning in TClass::Init: no dictionary for class AliFMDFloatMap is available
Warning in TClass::Init: no dictionary for class AliESDVZERO is available
Warning in TClass::Init: no dictionary for class AliESDTZERO is available
Warning in TClass::Init: no dictionary for class AliESDVertex is available
Warning in TClass::Init: no dictionary for class AliVertex is available
Warning in TClass::Init: no dictionary for class AliMultiplicity is available
Warning in TClass::Init: no dictionary for class AliESDCaloTrigger is available
Warning in TClass::Init: no dictionary for class AliESDtrack is available
Warning in TClass::Init: no dictionary for class AliExternalTrackParam is available
Warning in TClass::Init: no dictionary for class AliESDMuonTrack is available
Warning in TClass::Init: no dictionary for class AliESDPmdTrack is available
Warning in TClass::Init: no dictionary for class AliESDTrdTrack is available
Warning in TClass::Init: no dictionary for class AliESDv0 is available
Warning in TClass::Init: no dictionary for class AliESDcascade is available
Warning in TClass::Init: no dictionary for class AliESDkink is available
Warning in TClass::Init: no dictionary for class AliESDCaloCluster is available
Warning in TClass::Init: no dictionary for class AliRawDataErrorLog is available
Warning in TClass::Init: no dictionary for class AliESDfriend is available
Warning in TClass::Init: no dictionary for class AliESDfriendTrack is available
Warning in TClass::Init: no dictionary for class AliTrackPointArray is available
Warning in TClass::Init: no dictionary for class AliESDEvent is available
Error in TBufferFile::ReadObject: trying to read an emulated class (AliESDEvent) to store in a compiled pointer (TObject)
MakeProject has generated 26 classes in aliesd
aliesd/MAKEP file has been generated
Shared lib aliesd/aliesd.so has been generated
Shared lib aliesd/aliesd.so has been dynamically linked
*** Opening ESD ***
Info in TFile::OpenFromCache: using local cache copy of http://root.cern.ch/files/alice_ESDs.root [./files/alice_ESDs.root]
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error in : GLXBadContext (TGLWidget XID: 6292268, XREQ: 149)
TGLWidget: 6292268
TGVerticalFrame: 6292263
TGLSAFrame: 6292252
TGCompositeFrame: 6292251

It looks like a ssh & OpenGL issue. Does glxgears work in your ssh session?

Thanks! glxgears works in my pc, but does not work when I ssh login to the server.
$ glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 31
Current serial number in output stream: 33

Try: ssh -X -Y ...
On the remote machine: export LIBGL_ALWAYS_INDIRECT=1

If it doesn’t help, see: CMSPublic → OpenGL and X11 problems

1 Like