helpsterTee / Unity-IFCEngine

Import scripts for IFC files
MIT License
58 stars 15 forks source link

Crashe while running on Unity 2019 #13

Open Llhai opened 3 years ago

Llhai commented 3 years ago

Thanks for your talent work! It works perfectly on unity 2018, But but when I use Unity2019.4.23, the editor crashes.

The crashed code is bool result = util.ParseIFCFile(file);

So. Can you help me to solve the problem, Thank you!

helpsterTee commented 3 years ago

Can you post a full crash log? The crash in this line only means something went wrong with the parser module. Maybe try to switch the API compatibility level in File -> Build Settings -> Player Settings -> Configuration

Unfortunately, I don't have a Windows system to test this anymore.

Llhai commented 3 years ago

Editor.log error.log There are crash logs. I tried th switch the API compatibility, but still carsh. Thank you for your patience

helpsterTee commented 3 years ago

Why did you close the issue? Did you resolve it yourself or just pressed the wrong button?

Llhai commented 3 years ago

Why did you close the issue? Did you resolve it yourself or just pressed the wrong button?

SORRY!!!, I just pressed the wrong button

helpsterTee commented 3 years ago

No problem.

IFCEngine is crashing when trying to load the IFC version in the IFC file to determine which schema to use. This kind of error usually happens when something on the filesystem is not found or the file is invalid.

My wild guess is that it has something to do with asset handling (I think asset bundles changed from 2018 to 2019.4) and the necessary files (IFC2X3_TC1.exp) aren't there when the engine tries to load them. You could try creating a 2018 project and then opening and converting that in 2019.4, which should default to the asset pipeline v1, instead of using the asset pipeline v2.

I'm working on an alternative that should be platform-independent, instead of only compatible with Windows, but the progress is rather slow atm, sorry :disappointed:

Llhai commented 3 years ago

I tried to create a 2018 project and opening it in 2019, using the asset pipeline v1, but still crashed. Looking for your new excellent work!!