root-project / jsroot

JavaScript ROOT
MIT License
187 stars 79 forks source link

Display of VGM geometry file fails #204

Closed f9daq closed 3 years ago

f9daq commented 4 years ago

When trying to display the Geant4 VGM coverted geometry, an error is raised (it works in ROOT without any problems).

https://root.cern.ch/js/latest/?gui&file=https://belle2.ijs.si/geom/Belle2Geo.root&item=VGM%20Root%20geometry;1

JSRootIOEvolution.min.js:17 Uncaught RangeError: Offset is outside the bounds of the DataView at DataView.getInt16 () at k.ntoi2 (JSRootIOEvolution.min.js:17) at Object.d.IO.ReadMapElement [as readelem] (JSRootIOEvolution.min.js:100) at JSRootIOEvolution.min.js:68 at k.ReadNdimArray (JSRootIOEvolution.min.js:22) at Object.a.readelem.c.$fictional.a.func (JSRootIOEvolution.min.js:68) at k.ClassStreamer (JSRootIOEvolution.min.js:27) at JSRootIOEvolution.min.js:39 at JSRootIOEvolution.min.js:38 at XMLHttpRequest.l (JSRootIOEvolution.min.js:32)

Cheers, Rok

linev commented 4 years ago

Hi Rok,

Seems to be, it is problem in I/O implementation for std::map<>, which is used inside TGeoManager. I will investigating it.

linev commented 4 years ago

I fix problem in master and 5.9 branch. Now it mostly work:

https://jsroot.gsi.de/dev/?file=https://belle2.ijs.si/geom/Belle2Geo.root&item=VGM%20Root%20geometry;1

linev commented 3 years ago

I closing issue, it fixed in latest released version

linev commented 3 years ago

Sorry, 5.9.1 is not yet released, but 6.0.0 coming very soon

f9daq commented 3 years ago

Thank you, I confirm that it is working now.