ThatOpen / engine_web-ifc

Reading and writing IFC files with Javascript, at native speeds.
https://thatopen.github.io/engine_web-ifc/demo
Mozilla Public License 2.0
617 stars 190 forks source link

Error loading ifc. RuntimeError: abort(Assertion failed: false, at: ./src/wasm/include/web-ifc.h,618,GetSetArgument). Build with -s ASSERTIONS=1 for more info. #75

Closed sbstnkll closed 2 years ago

sbstnkll commented 3 years ago

I try to load a ifc file locally. All other IFC files are loading like a charm, except of this one "walls.ifc":

image

This is the ifc-file: https://www.file.io/download/Vp4U2zpUXvHv

side info that may help: the walls.ifc file is successfully loaded in the "hello world" example of the ifcjs documentation (https://ifcjs.github.io/info/docs/Hello%20world)

Bildschirmfoto 2021-08-20 um 10 38 17

Appreciate any help.

antoniohof commented 2 years ago

I'm also having this with the most recent version

sbstnkll commented 2 years ago

any news on this?

recently a lot of projects/hackathons use ifc.js and I wonder if they aren't having the same issue? What are we doing wrong here? Or is it a version thing?

agviegas commented 2 years ago

Sorry for the delay! I can´t access to the file in Icloud. Could you please send it another way? That error happens if the wasm file is not the same as the library you are using. To check wether the problems lies on your setup or in the library, you can try the sample viewer. Can you reproduce it there?

sbstnkll commented 2 years ago

Sry. The icloud link was out of date. I just updated the file link:

walls.ifc: https://www.file.io/download/Vp4U2zpUXvHv

agviegas commented 2 years ago

image

sbstnkll commented 2 years ago

ah. sry. the end of the week is approaching ;):

https://file.io/tKOZVHywfSbW

agviegas commented 2 years ago

I can load it here, which is the last version (0.0.26). The most likely cause is that I haven't had the time to update web-ifc-three and web-ifc-viewer yet. This means that they use web-ifc@0.0.25, and if you updated web-ifc, you are using the wasm file of 0.0.26. Is this the case? I'll try to update both modules today.

sbstnkll commented 2 years ago

Ok. I need to look this up in my repo. I get back to you if this is the case. Thanks :)

SteamWind commented 1 year ago

@sbstnkll So, was it the case?