Canvases not displaying in lxplus

Hi.
I am trying to draw some simple canvases in lxplus but nothing gets displayed.
I access by ssh -xy and then load a tree in root and use Draw().
I get no error, just nothing displayed.
Thanks for the help.

_ROOT Version: 6.32.04
_Platform: MacOS Sonoma 14.6.1
Compiler: 11.4.1 20231218


Dear @mole.luca ,

Thanks for reaching out to the forum!

The issue you are encountering is most probably due to the fact that the flag -x passed to ssh is actually disabling X11 forwarding as per the ssh manual . I believe what you are looking for is ssh -Y. I just tried from my Mac logging to lxplus that way and I was able to see the graphics output from ROOT.

Cheers,
Vincenzo

Hi @vpadulan.
Thank you for the suggestion.
I tried with -Y, but the result is the same, no display.
Any further insight?
Thank you

Dear @mole.luca ,

I have exactly your same MacOS version, I am doing

$: ssh -Y lxplus
# on lxplus
[vpadulan@lxplus9100 ~]$root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.04                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Aug 14 2024, 00:00:00                 |
  | From heads/master@tags/v6-32-04                                  |
  | With g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)                |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0] TH1D h{"h","h", 10, -5, 5};
root [1] h.FillRandom("gaus");
root [2] h.Draw()
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
root [3]

I can see the image properly displayed, here is a screenshot:

Can you confirm that with the steps above you can see the image?

Cheers,
Vincenzo

I might be wrong, but I believe you need XQuartz installed on your Mac to display X11 graphics from a remote machine. Maybe that’s what you’re missing?

Thank you @couet and @vpadulan.
Indeed I was missing XQuartz. It is working fine now.
Best regards

2 Likes

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