ThatOpen / engine_components

MIT License
328 stars 129 forks source link

Loading big IFC model crashes application #515

Open onderilkesever opened 2 days ago

onderilkesever commented 2 days ago

Describe the bug 📝

I am trying to load a big IFC model with stats shown as below and my browser crashes when loading. 0783d9fe-825a-4348-920f-7ae5445047ad I can share my small application but it is simply creating a world and load model using IfcLoader. I have tried loading same model to demo of web-ifc repository, and it can be successfully loaded there. Unfortunately I cannot share IFC model due to privacy reasons, but I am hoping my shared stats might give you clue. I wonder is there hard limits what this repo can handle in terms of object count etc? Can you please help me here?

Reproduction ▶️

No response

Steps to reproduce 🔢

No response

System Info 💻

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 84.48 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
  Browsers:
    Chrome: 129.0.6668.101
    Edge: 130.0.2849.46
    Safari: 17.6

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

agviegas commented 2 days ago

Hi @onderilkesever how big is the file? I see that it says 174590154. Is that 174MB?

To load super big models fast we have a streaming system that we have tried successfully with files over 2GB.

We are happy to sign an NDA if that helps you send us the file for debugging and see what might be the cause. We have done it many times before with other companies. Cheers!

onderilkesever commented 2 days ago

Hi @agviegas thanks for fast response! Correct, the file size is 174MB. I guess it is not that big in size, but maybe a detailed IFC model as the other properties indicate.. I will bring NDA option to my company but I doubt we can as the model actually not belong to us but our client. So I would really appreciate any other clues or directions you can guide me.

agviegas commented 10 hours ago

@onderilkesever I see. Not big indeed, but maybe it has a lot of geometry. Have you tried streaming?