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

Browser freezes completely when loading specific IFC #363

Closed MrPandawanTech closed 1 year ago

MrPandawanTech commented 2 years ago

Hello,

I have an issue with multiple IFC files. The problem is that the browser tab freezes. The performance monitor shows 100% of the CPU is used. The tab stops responding ,and it takes about 10 sec to close it.

I can share only one of these files in public: The file is only 8Mo : https://we.tl/t-VKhSIq527a

I have already done some tests to make it work on ifcjs. The method I found for the moment is to remove some IFCPOLYLOOP by editing the file by hand, but the model looks like nothing anymore.

I am using "web-ifc-three": "^0.0.117" and "three": "^0.135.0". I reproduce the problem on your "hello world" application on this page : https://ifcjs.github.io/hello-world/examples/web-ifc-three/helloworld/

In the console, I can see : "web-ifc: 0.0.34 threading: 0" "No basis found for brep!" "unexpected style type"

I am using Google Chrome.

Don't hesitate to ask if I can help you in any way.

antoniohof commented 1 year ago

Your model's url expired. Please share a new URL

agviegas commented 1 year ago

@MrPandawanTech this should be solved with the current version of this repository. If you send us the model again, we'll make sure it's solved. Otherwise, we'll close the issue. Cheers!