Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity crashes when loading a 3D Tile from URL #549

Open
Luizfelm opened this issue Jan 28, 2025 · 4 comments
Open

Unity crashes when loading a 3D Tile from URL #549

Luizfelm opened this issue Jan 28, 2025 · 4 comments

Comments

@Luizfelm
Copy link

Unity crashes when trying to load a 3D Tile directly from a URL. The tileset is loaded through an API using a tileset.json file. After setting the URL in the Unity 3DTileset component, the editor crashes immediately.

Checking the Editor.log, I found the following error:

[2025-01-28 12:23:06.433] [warning] [TilesetContentManager.cpp:609] Warning when resolving external gltf buffers from https://d143ryb2ii5d8n.cloudfront.net/9573...eb12/10-0.glb

@Luizfelm
Copy link
Author

In addition to the error related to loading the glTF buffer, the following warning appears in the log:

"Detected one or more triangles where the distance between any 2 vertices is greater than 500 units. The resulting Triangle Mesh can impact simulation and query stability. It is recommended to tessellate meshes that have large triangles. Source mesh name:
UnityEngine.Physics:BakeMesh (int,bool)
Reinterop.ReinteropInitializer:UnityEngine_Physics_CallBakeMesh_dUTFInDZC08B3wpYvm01lw (int,byte) (at ./Library/PackageCache/com.cesium.unity/Runtime/generated/Reinterop.RoslynSourceGenerator/ReinteropInitializer.cs:65076)
Reinterop.ReinteropInitializer/ActionNativeFunction:Invoke () (at ./Library/PackageCache/com.cesium.unity/Runtime/generated/Reinterop.RoslynSourceGenerator/ReinteropInitializer.cs:59757)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()"

@kring
Copy link
Member

kring commented Jan 29, 2025

Hi @Luizfelm, is it correct that the metallicRoughnessTexture.png is returning a 403 error? That shouldn't cause a crash in any case, but that will give us a place to start looking. Also, can you confirm what version of Cesium for Unity you're using? If you can provide me with the full URL of this tileset (privately is fine), I can take a closer look a what's going wrong.

@Luizfelm
Copy link
Author

Luizfelm commented Feb 4, 2025

Hi @kring ,

After testing the same tileset in different versions of Cesium for Unity and also in Unreal (both via URL), I confirmed that the errors are caused by the tileset itself, not Cesium.

However, any version of Cesium for Unity above 1.13.0 crashes when trying to open the models, while versions 1.13.0 and below work perfectly.

With this finding, you can consider this issue closed.

Thanks for your support!

@Luizfelm Luizfelm closed this as completed Feb 4, 2025
@kring
Copy link
Member

kring commented Feb 4, 2025

Thanks for the update @Luizfelm. I'm going to reopen this until I have a chance to try out the model you send me separately, though. A crash is worth fixing, even if it's caused by a broken model. Especially if it's a regression from previous versions.

@kring kring reopened this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants