# TBrowser on lxplus runs slowly, perhaps due to font?

**URL:** <https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355>\
**Category:** Newbie\
**Created:** [September 9, 2020, 1:19pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355 "2020-09-09T13:19:26Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [September 9, 2020, 1:19pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/1 "2020-09-09T13:19:26Z")

</div>

ROOT Version: 6.16  
Platform: Ubuntu 18.04

Hi,

I have recently had to do a factory reset on my laptop, and have run into some problems when trying to use ROOT on lxplus. My laptop runs Ubuntu 18.04, and in the past I had this problem, but managed to fix it although i now don’t remember how.

When I run a TBrowser on lxplus, it takes a few minutes to open, where before it would open much faster, and in general there is a sort of input lag present while i navigate the TBrowser. Once I have opened my decay tree in my root file, it works faster, but still slowly overall. When I try this from a windows PC on the same wifi, this problem is non-existent, the TBrowser opens fast and is responsive, so I do not think it is caused by a bad wifi connection.

I seem to remember that the last time i ran into this problem, it was due to the font of the tbrowser. It seemed as though the TBrowser was trying to display in the incorrect font (or a font that my laptop did not have possibly?) and this was causing the lag, as it had to look in other places to find this font. But ultimately, I am unsure what may be causing this and am not sure how to fix it, so any advice would be much appreciated, Thanks.

---

<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:** [September 9, 2020, 1:47pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/2 "2020-09-09T13:47:16Z")

</div>

Hard to tell - and our GUI expert is on leave until the end of the month. I’ve asked @couet for help; maybe he has an idea, or an idea how to debug this.

Do the system logs show anything? Your `~/.xsession-...` whatever it’s called?

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [September 9, 2020, 1:51pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/3 "2020-09-09T13:51:55Z")

</div>

Thanks for the quick reply. I don’t see a file like this anywhere in my directory, i’m unsure if it maybe has a different name, but nothing sticks out to me. Sorry for not being more helpful.

---

<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:** [September 9, 2020, 1:52pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/4 "2020-09-09T13:52:19Z")

</div>

May be this can help:

> [@Font problem in TBrowser. Ubuntu 12.04](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266):
>
> Hi, I’ve installed latest 5.32.03 version on Ubuntu 12.04, x86\_64 version. Prior to compilation I installed a bunch of fonts mentioned in this topic: [Adobe helvetica on ubuntu 11.04](https://root-forum.cern.ch/t/adobe-helvetica-on-ubuntu-11-04/12319/1) I used the folloing to configure: ./configure linuxx8664gcc --enable-python --prefix=/usr/local Installation went well, except that in TBrowser the font of directoris is small and unreadable. Is it possbible to adjust this in some config file of root? Thanks, Andrey

In particular the The Xft stuff at the end.  
If not @bellenot will know when he will be back.

---

<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:** [September 9, 2020, 1:54pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/5 "2020-09-09T13:54:27Z")

</div>

I was referring to a file called `.xsession-errors` in your `$HOME` directory. But yes, @couet probably has the solution for you 🙂

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [September 9, 2020, 2:18pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/6 "2020-09-09T14:18:51Z")

</div>

I have been trying the solutions posted in this thread before, i.e. making a .rootrc file as well as looking at the font root is using. Adding a .rootrc file had no effect, and the fonts that are listed are the same as in the thread, but I can’t change this as i dont have write permissions for the system.rootrc file since its lxplus.

My xft settings seem to be correct, although when i type ‘root-config --features’ the output doesn’t have xft mentioned anywhere, and again, i am not sure how to change this…

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [October 8, 2020, 11:58am UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/7 "2020-10-08T11:58:20Z")

</div>

Hi All,

Are there any other suggestions on things I can try? They would be much appreciated 😀

---

<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:** [October 8, 2020, 12:02pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/8 "2020-10-08T12:02:04Z")

</div>

> [@GaryR](#):
>
> Adding a .rootrc file had no effect, and the fonts that are listed are the same as in the thread, but I can’t change this as i dont have write permissions for the system.rootrc file since its lxplus.

copy `system.rootrc` as `${HOME}/.rootrc` and try to change `X11.UseXft: yes` by `X11.UseXft: no`

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [October 8, 2020, 12:58pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/9 "2020-10-08T12:58:44Z")

</div>

I tried this, but no luck unfortunately…

---

<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:** [October 8, 2020, 12:59pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/10 "2020-10-08T12:59:17Z")

</div>

Then I’m afraid I’m out of suggestions…

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [October 8, 2020, 1:08pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/11 "2020-10-08T13:08:06Z")

</div>

One thing I have noticed that may be causing some of the problems is that in the previously linked solution, it says

> Check that “UseTTFonts” is set to “true” and that the “TTFontPath” exists and contains something like 33 “.ttf” files.

I have checked this and while UseTTFonts is indeed set to true and the TTFontPath exists, it doesn’t have any .ttf files listed, only 13 .otf files. Could this be causing an issue?

---

<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:** [October 8, 2020, 1:21pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/12 "2020-10-08T13:21:44Z")

</div>

That’s for graphics, not for the GUI…

---

<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:** [October 8, 2020, 1:37pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/13 "2020-10-08T13:37:17Z")

</div>

The root fonts (`.ttf` files) are in `$ROOTSYS/fonts`.

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [October 8, 2020, 4:31pm UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/14 "2020-10-08T16:31:47Z")

</div>

When I type echo `$ROOTSYS`, I get a blank line in return, is this correct?

---

<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:** [October 9, 2020, 7:09am UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/15 "2020-10-09T07:09:24Z")

</div>

No, it is not, it should point to your ROOT installation.

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [October 9, 2020, 10:03am UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/16 "2020-10-09T10:03:18Z")

</div>

even on lxplus?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [October 9, 2020, 10:27am UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/17 "2020-10-09T10:27:14Z")

</div>

If you `source` ROOT from LCG, yes. If you just use the system ROOT installation on an lxplus node (i.e. if `which root` is `/usr/bin/root`), then no.

---

<div class="post-metadata">

**Author:** ![GaryR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/bcef8e/32.png) [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Post date:** [October 26, 2020, 11:50am UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355/18 "2020-10-26T11:50:21Z")

</div>

A small update: I haven’t managed to fix this problem yet, however I tried accessing a TBrowser from lxplus on a different machine running ubuntu 20, and had the same issue, which makes me think it is related to ubuntu. I have also tried in the past from windows machines which all work fine.
