Error in TUnixSystem::SetDisplay: Can't figure out DISPLAY, set it manually

As a simple case

TH1F *h = new TH1F("h", "Test Histogram", 100, -4, 4);
h->FillRandom("gaus", 10000);
h->Draw();

The result is:

Error in <TUnixSystem::SetDisplay>: Can't figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========>  ssh -Y
Error in <TUnixSystem::SetDisplay>: Can't figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========>  ssh -Y
Error in <TGClient::TGClient>: can't open display "", switching to batch mode...
 In case you run from a remote ssh session, reconnect with ssh -Y
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

By the way, with “gROOT->IsBatch()”, it returns false
ROOT Version: 6.22/00
Platform: Ubuntu
Compiler: c++


Hi,

This is odd. Sorry to read you are experiencing these issues.
Can you try to connect with “ssh -XY” ?

Cheers,
Danilo

Thank you, I will try this after rebuliding ROOT.

1 Like