opensourceBIM / BIMsurfer-before2019

This is the repository of the v1 and v2 version of BIM Surfer. It is not maintained anymore. Find the most recent version on https://github.com/opensourceBIM/BIMsurfer
MIT License
432 stars 195 forks source link

An error breaks loading of IFC model #148

Closed ilyakuznetsov closed 8 years ago

ilyakuznetsov commented 8 years ago

Hi! An error breaks loading of our test IFC model in BimsurferV2. Error message: DataInputStreamReader.js?bust=1468304482895:94 Uncaught RangeError: Invalid typed array length Debug-output: Loading... (0/123) BimSurfer.js?bust=1468304482895:169 Loading... (1/123) BimSurfer.js?bust=1468304482895:169 Loading... (2/123) BimSurfer.js?bust=1468304482895:169 Loading... (3/123) BimSurfer.js?bust=1468304482895:169 Loading... (4/123) BimSurfer.js?bust=1468304482895:169 Loading... (5/123)

Error occures in BimServerGeometryLoader._readObject. geometryType of the data block, which causes the error, is 3. It seems that the received data structure doesn't match the awaited.

Bimserver version 1.4

The same model can be loaded in bimviews (BimsurferV1).

Link to model: https://raw.githubusercontent.com/e-task/IFC-files/master/eTASK/MUC-xyz40.ARC.ifc

rubendel commented 8 years ago

BIMsurferV2 is only working on BIMserver 1.5 from now on because it's too hard to maintain compatibility for 2 versions of BIMserver.

ilyakuznetsov commented 8 years ago

thank you for the quick answer! but unfortunately I can't load it also from Bimserver 1.5 console output: success ["Login successful", 5000] Notifier.js?bust=2.0:25 info ["Login successful", 2000] BimSurfer.js?bust=2.0:169 Loading... (0/122) DataInputStreamReader.js?bust=2.0:55 Uncaught RangeError: Offset is outside the bounds of the DataView

rubendel commented 8 years ago

Which version of the BinarySerializer plugin are you using?

ilyakuznetsov commented 8 years ago

BinarySerializers (bundle) 0.0.14