glTFast icon indicating copy to clipboard operation
glTFast copied to clipboard

Unity Editor/Player crash when importing a glb

Open anonymous2585 opened this issue 8 months ago • 1 comments

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

crash.glb.zip

To Reproduce Steps to reproduce the behavior:

  1. Create a new empty Unity project, add glTFast package
  2. Close the project
  3. Add the .glb in the asset folder
  4. 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.

anonymous2585 avatar Apr 24 '25 07:04 anonymous2585

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.

Image

NeoTr0nic avatar May 28 '25 14:05 NeoTr0nic

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

model.glb.zip

alexandrefresnais avatar Jun 26 '25 14:06 alexandrefresnais

Hi @atteneder,

Any news on this issue?

anonymous2585 avatar Sep 04 '25 07:09 anonymous2585

The same to me.

kndol avatar Oct 15 '25 06:10 kndol

Thanks for reporting!

I believe a fix for that is in slot for the next release. Will check once on a PC again.

atteneder avatar Oct 29 '25 09:10 atteneder

Hi, I tested with ~~1.14.1~~ 6.14.1 and it seems to already have fixed the issue! 👍

anonymous2585 avatar Oct 29 '25 16:10 anonymous2585

I guess you meant 6.14.1, and you're right. The fix has been in there (see changelog).

Thanks for pointing it out.

atteneder avatar Oct 30 '25 10:10 atteneder