# New TBrowser won't open a window

**URL:** <https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453>\
**Category:** Newbie\
**Tags:** tree, graphics, root\
**Created:** [November 25, 2020, 6:08pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453 "2020-11-25T18:08:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [November 25, 2020, 6:08pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/1 "2020-11-25T18:08:45Z")

</div>

Hi everyone! I’m definitely a newbie. When I attempt to open a root file in a new TBrowser, I’m getting no new windows (and from what I know about the TBrowser argument, I should be getting the TBrowser in a new window/tab). I’m using a mac with these inputs:

$ root -l step1.root  
…[1] new TBrowser

and then my computer just stares at me. Any advice would be very welcome! I have tried using xquartz for this as well to no avail.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [November 26, 2020, 9:47am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/2 "2020-11-26T09:47:55Z")

</div>

Hey @Taylor_Carnahan, it looks like a problem with graphics.

It will be useful if you will describe your setup (OS, compiler and how did you build or installed ROOT).

I will ping here @linev @bellenot for additional ideas or help. Thanks!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 26, 2020, 11:03am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/3 "2020-11-26T11:03:27Z")

</div>

No idea, but I’m not even a MacOS user (since I guess it’s on MacOS)

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [November 27, 2020, 9:51pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/4 "2020-11-27T21:51:28Z")

</div>

Hey, @oshadura, I’m not sure how to fix a graphics problem to be honest (I’m quite a newbie).

So, my setup is in using a macOS, and I used my terminal application in order to $brew install root. I also have xquartz running, which I thought might fix the issue. I can now open a TBrowser on my local computer (but not while I’m in the LPC); it’s very strange. But, when I do open a new TBrowser on my local computer, it crashes root. So many issues it seems. Thanks for your help!!

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [November 30, 2020, 9:42am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/5 "2020-11-30T09:42:20Z")

</div>

So let me summarize, so you have ROOT installed via Homebrew and TBrowser doesn’t work, while on your local computer it works? Which version of ROOT did you install via Homebrew?

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [December 6, 2020, 11:54pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/6 "2020-12-06T23:54:04Z")

</div>

Exactly @oshadura --the updated patch (we’re current).

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [December 9, 2020, 10:15am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/7 "2020-12-09T10:15:22Z")

</div>

What does `gROOT->IsBatch()` say in your ROOT that doesn’t show the `TBrowser`?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [December 9, 2020, 10:16am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/8 "2020-12-09T10:16:14Z")

</div>

> [@Taylor\_Carnahan](#):
>
> I can now open a TBrowser on my local computer (but not while I’m in the LPC)

Is that on the same Macbook - depending on where it is it works or not?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [December 9, 2020, 10:16am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/9 "2020-12-09T10:16:54Z")

</div>

> [@Taylor\_Carnahan](#):
>
> when I do open a new TBrowser on my local computer, it crashes root

Please share all the backtrace / error messages ROOT prints.

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [December 9, 2020, 6:27pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/10 "2020-12-09T18:27:26Z")

</div>

Yes, it’s on the same Macbook

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [December 9, 2020, 6:31pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/11 "2020-12-09T18:31:05Z")

</div>

Before I open a TBrowser in root, I have many errors that say Warning in TClass::Init: no dictionary for class edm/reco/etcetera:: (etcetera). When I open a new TBrowser, and attempt to open a leaf, I get the spinny wheel of death and have to close Root.

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [December 9, 2020, 6:35pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/12 "2020-12-09T18:35:37Z")

</div>

it outputs a:  
“(bool) true”  
root [2]

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [December 14, 2020, 7:40am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/13 "2020-12-14T07:40:40Z")

</div>

Hi,

OK, so `gROOT->IsBatch()` returning `true` means that there is no X11 connection. Try `xterm &` when the `TBrowser` doesn’t show - I bet you also don’t see that. You probably forgot to use `-Y` when logging into the Linux machine with `ssh`?

> I have many errors that say Warning in TClass::Init: no dictionary for class edm/reco/etcetera:: (etcetera)

That is _of course_ super relevant, else we would not print the error messages! Can you _please_ share the exact error messages? Please copy & paste them.

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [December 16, 2020, 10:39pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/14 "2020-12-16T22:39:16Z")

</div>

Here are a few of the errors (there are too many to paste) 😕  
Warning in TClass::Init: no dictionary for class edm::ProcessConfiguration is available  
Warning in TClass::Init: no dictionary for class pair\<edm::Hash\<1\>,edm::ParameterSetBlob\> is available  
Warning in TClass::Init: no dictionary for class \_\_pair\_base\<edm::Hash\<1\>,edm::ParameterSetBlob\> is available  
Warning in TClass::Init: no dictionary for class edm::ParameterSetBlob is available  
Warning in TClass::Init: no dictionary for class edm::ProductRegistry is available  
Warning in TClass::Init: no dictionary for class pairedm::BranchKey,edm::BranchDescription is available  
Warning in TClass::Init: no dictionary for class edm::BranchKey is available  
Warning in TClass::Init: no dictionary for class edm::BranchDescription is available  
Warning in TClass::Init: no dictionary for class edm::BranchID is available  
Warning in TClass::Init: no dictionary for class edm::Parentage is available  
Warning in TClass::Init: no dictionary for class edm::ThinnedAssociationsHelper is available  
Warning in TClass::Init: no dictionary for class edm::BranchChildren is available

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan/32/24087_2.png) [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Post date:** [December 16, 2020, 10:41pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/15 "2020-12-16T22:41:25Z")

</div>

I tried the xterm &; here’s what the output was:

root [3] xterm &  
ROOT\_prompt\_3:2:1: error: expected expression  
;  
^

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [December 17, 2020, 1:49pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/16 "2020-12-17T13:49:41Z")

</div>

> [@Taylor\_Carnahan](#):
>
> root [3] xterm &

That’s not to be tried at the ROOT prompt. It should be tried at the shell prompt. Axel asked you to try this to see if a generic X11 app (ie xterm) is working. So at the shell prompt:

```auto
$ xterm &

```

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan1/32/24336_2.png) [@Taylor\_Carnahan1](https://root-forum.cern.ch/u/Taylor_Carnahan1)\
**Post date:** [April 7, 2021, 6:36pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/17 "2021-04-07T18:36:19Z")

</div>

Sorry, @couet, for my lengthy break in response time! Thank you for your response. Yes, xterm & does indeed give me an xterm window, so it is working!

I’ve been using an scp command to get around this issue, so I can open things directly, but it’s getting cumbersome to say the least…

If I attempt a new TBrowser now in the root prompt, the window freezes and stares at me until giving the error:

Error in TGClient::TGClient: can’t open display “76.30.19.77:0.0”, switching to batch mode…  
In case you run from a remote ssh session, reconnect with ssh -Y  
(TBrowser \*) 0x2c86bf0

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 8, 2021, 6:49am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/18 "2021-04-08T06:49:55Z")

</div>

have you tried to reconnect with `ssh -Y` ?

---

<div class="post-metadata">

**Author:** ![Taylor\_Carnahan1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taylor_carnahan1/32/24336_2.png) [@Taylor\_Carnahan1](https://root-forum.cern.ch/u/Taylor_Carnahan1)\
**Post date:** [April 13, 2021, 4:29pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/19 "2021-04-13T16:29:41Z")

</div>

Oh my word! It worked!! Thank you so much, @couet!! You’re amazing! I’m pretty excited…can’t tell you how much time I’ve been wasting on the roundabout way I’ve been doing this. Why do I need to connect this way? Should I just connect ssh -Y instead of ssh -xy in the future?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 14, 2021, 5:49am UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453/20 "2021-04-14T05:49:46Z")

</div>

`man ssh` tells you:

_-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls._

[Next page](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453.md?page=2)
