JSROOT hangs with TTree::Draw 0%

I am a big fan of JSROOT and in particular how it can be used to inspect ROOT data/histograms inside
Visual-Studio Code!

Generally, JSROOT works really well when trying to visualize small datasets. However, it seems that it has problems to treat even moderately large ROOT files or TTrees (say some 10MB compressed). Trying to draw a histogram from such files often leads to a hang with a TTree draw 0% message where no progress is visible/made for hours.

Is this something to be expected? Are there any hard limits or could the user do some tuning here?

ROOT Version: 6.28.02
JSROOT: version 7.2.0
Platform: Ubuntu 22.04

Can you provide ROOT file?

Most probably, problem with decoding of data in JSROOT.

Thanks @linev ! I have sent you a link to example files per email.

I did some more experimentation also with the JSRoot plugin in Cernbox. The problem seems to be browser dependent. I find that it

a) doesn’t work on Chrome Version or Chromium (and hence VisualStudio Code which is probably chromium based) - neither on Mac nor on Ubuntu; Mac version is 113.0.5672.126 (Official Build) (arm64)

b) doesn’t work on Safari (Mac)

c) WORKS ok on Firefox 113.0.2 (Mac and Ubuntu)

Problem is fixed by this commit:

It will appear soon in jsroot 7.3.2 release

1 Like

After 7.3.2 release also cernbox is now working properly

See my reply in other thread:

Because of current cernbox limitations it is very inefficient to use it for large files.
As it is now, any ROOT file need to be completelty download by JSROOT before it can be used.

Well, you write “any ROOT file need to be completelty download”, so it is not specific to CERNBox (i.e., using any server will behave the same way, or do I get it wrong).

Yes, any server which does not accept or hide Ranges from http requests - will behave that way.
Therefore I put workaround in JSROOT - I saw such problem before several times.