Unable to get out of batch mode in ROOT Version 6.30

Hello all,
I just recently upgraded to Ubuntu 24.01 system, and installed root-framework via snap , but have been facing issues trying to open the TBrowser in ROOT.

Setup

ROOT v6.30/04
Built for linuxx8664gcc on Feb 03 2024, 23:12:12
From tags/v6-30-04@v6-30-04
With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Binary directory: /snap/root-framework/931/usr/local/bin

Issue

root ~/Desktop/ECN3_2023_SCv6_noSBT.root --web=off 
   ------------------------------------------------------------------
  | Welcome to ROOT 6.30/04                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Feb 03 2024, 23:12:12                 |
  | From tags/v6-30-04@v6-30-04                                      |
  | With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0                   |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0] 
Attaching file /home/irongiant/Desktop/ECN3_2023_SCv6_noSBT.root as _file0...
(TFile *) 0x59072ccc7dd0
root [1] new TBrowser
Authorization required, but no authorization protocol specified
Warning in <TBrowser::TBrowser>: The ROOT browser cannot run in batch mode
(TBrowser *) 0x59072ba47d90
root [2] gROOT->IsBatch()
(bool) true

Is there a way I can solve this issue? Setting the batchmode to false manually (gROOT->SetBatch(0)) gives me segmentation faults. Any help would be appreciated!

Hello Praha,

Is this your physical machine/laptop? Can you exclude you do not have any custom rootlogon.C script which is executed at startup?

Best,
D

Hi, yes this is my physical machine and there is no rootlogon.C file I can find anywhere( find -name rootlogon.C returns nothing) .

Hello Praha,

I think this post can be informative: Reddit - Dive into anything

Have you tried to use ROOT as a normal user, i.e. not root? It is also in general not a good idea to do so as one can read from the thread linked above.

Cheers,
D

Hi, no luck unfortunately. I cannot access the TBrowser :confused:

1 Like

Have you read through the links at the page linked above? Your issue seems related - it does not look like an issue with ROOT (of course, happy to be proven wrong!).

Cheers,
D

Hi, yes. xhost + in the terminal seemed to solve the problem! Thank you :slight_smile:

1 Like

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