ThatOpen / web-ifc-three

The official IFC Loader for Three.js.
https://ifcjs.github.io/info/
MIT License
521 stars 133 forks source link

Browser freeze when loading a specific IFC #106

Closed bastien612 closed 2 years ago

bastien612 commented 2 years ago

Hello,

I have an issue with an IFC file. The problem is that the browser tab freezes. The buttons stop responding and it takes about 10sec to close the tab.

I send it to Ansoni on discord, in private, because my client doesn't want it to be shared publicly. It's name is GEF_ARC_HOB_C.ifczip. I unzipped it for my test and used GEF_ARC_HOB_C.ifc.

It feels like the file is to big, but unzipped, it's 47MB. Which is a lot, but for an IFC file it should be ok. I saw one guy with a 200MB file using ifc.js.

I am using "web-ifc-three": "^0.0.116","three": "^0.135.0" and "react": "^18.1.0" but I reproduce the problem on your "hello world" application in this page : https://ifcjs.github.io/info/docs/Hello%20world. So I think the problem is between the model and the lib.

In the console, I can see : "web-ifc: 0.0.33 threading: 0" "x264 No basis found for brep!"

I am using Google Chrome.

Don't hesitate to ask if I can help you in any way. I hope we will the issue easily :)

bastien612 commented 2 years ago

My issue of frozen screen is solved with the version "web-ifc-three": "^0.0.117". :)

I add another issue : the model would not display. Actually, it was just to far away. I needed to use "COORDINATE_TO_ORIGIN: true". https://ifcjs.github.io/info/docs/Guide/web-ifc-three/api/#applywebifcconfig