Unity Editor/Player crash when importing a glb
Describe the bug
After updating from 6.9.1 to 6.10.0 or any version above (up to 6.12.1 at this moment), Unity crash when importing one of our .glb file.
Files
To Reproduce Steps to reproduce the behavior:
- Create a new empty Unity project, add glTFast package
- Close the project
- Add the .glb in the asset folder
- Try to open the project, see Unity crash when importing the asset.
or just try to import the file at runtime by URL with a GltfAsset component.
Expected behavior No crash and Unity open, such as with any version before 6.10.0
Desktop:
- glTFast version 6.10.0+
- Unity Editor version 2023.2.20f1 or 6000.0.43f1 or 6000.1.0f1
- Render Pipeline and version BiRP
- Platforms: Editor, Windows Player
Additionnal context:
I think it is somehow linked to the fact that the mesh contains more than 8 UV maps (9). Yes, the mesh is dirty and doesn't need them, but it shouldn't crash Unity.
I’m also encountering this issue with certain models.
I’ve attached the successful import report from Unity 6 (URP Setup) using com.unity.cloud.gltfast in version 6.9.1 with one of the crashing models. I can share the original model via email if needed (it contains sensitive IP).
Because my workflow relies on dynamic, runtime imports of user-supplied models, I can’t pre-clean messy files. As a result, these crashes are blocking me from upgrading to the newest package and missing out on many amazing features.
Hey there,
Thank you for the great work.
Any update on this ?
I can also not go higher than 6.9.1 due to crashes on some models.
Here is another model that does not work
Hi @atteneder,
Any news on this issue?
The same to me.
Thanks for reporting!
I believe a fix for that is in slot for the next release. Will check once on a PC again.
Hi, I tested with ~~1.14.1~~ 6.14.1 and it seems to already have fixed the issue! 👍
I guess you meant 6.14.1, and you're right. The fix has been in there (see changelog).
Thanks for pointing it out.