CaveView.js icon indicating copy to clipboard operation
CaveView.js copied to clipboard

Cannot read property 'addById' of undefined and Invalid typed array length: -1

Open ariaveta opened this issue 6 years ago • 1 comments

Hello, I updated to the 1.12 release and I got the following error:

CaveView.js:41742 Uncaught TypeError: Cannot read property 'addById' of undefined at readSurvey (CaveView.js:41742) at readChunkHdr (CaveView.js:41695) at loxHandler.parse (CaveView.js:41625) at CaveLoader.callHandler (CaveView.js:42465) at Object._dataLoaded [as onLoad] (CaveView.js:42349) at XMLHttpRequest. (CaveView.js:27393)

The model was working with previous releases. My URL is:

http://www.speleotoscana.it/orco-3d/

I also tried to load a model made by creating a .lox file from a .plt (Compass) file. I got another error:

CaveView.js:41768 Uncaught RangeError: Invalid typed array length: -1 at new Uint8Array () at readString (CaveView.js:41768) at readStation (CaveView.js:41798) at readChunkHdr (CaveView.js:41695) at loxHandler.parse (CaveView.js:41625) at CaveLoader.callHandler (CaveView.js:42465) at Object._metadataError [as onError] (CaveView.js:42382) at XMLHttpRequest. (CaveView.js:27404)

I got the latest error also on previous versions of CaveView.

Any hint? Thanks

ariaveta avatar Dec 27 '18 09:12 ariaveta

Hi,

Both these fixed in latest 1.12.2 (I may look at loading .plt files directly, the format is simple)

aardgoose avatar Dec 31 '18 22:12 aardgoose