Unity 2023.1.22f1 Cesium Android Crash

2025/12/11 21:55:38.524 10654 10718 Error Unity InvalidCastException: Unable to cast object of type ‘NativeArray`1’ to type ‘MeshCollider’.
2025/12/11 2

tombstone_00.zip (91.3 KB)

Summary

1:55:39.654 10654 10718 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2025/12/11 21:55:39.654 10654 10718 Error CRASH Version ‘2023.1.22f1 (c1416845ad01)’, Build type ‘Release’, Scripting Backend ‘il2cpp’, CPU ‘arm64-v8a’, Stripping ‘Enabled’
2025/12/11 21:55:39.654 10654 10718 Error CRASH Build fingerprint: ‘oculus/eureka/eureka:14/UP1A.231005.007.A1/51563850136800520:user/release-keys’
2025/12/11 21:55:39.654 10654 10718 Error CRASH Revision: ‘0’
2025/12/11 21:55:39.654 10654 10718 Error CRASH ABI: ‘arm64’
2025/12/11 21:55:39.654 10654 10718 Error CRASH Timestamp: 2025-12-11 21:55:39.654613793+0200
2025/12/11 21:55:39.654 10654 10718 Error CRASH pid: 10654, tid: 10718, name: UnityMain >>> com.bowie.earthquest <<<
2025/12/11 21:55:39.654 10654 10718 Error CRASH uid: 10162
2025/12/11 21:55:39.654 10654 10718 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
2025/12/11 21:55:39.654 10654 10718 Error CRASH Cause: null pointer dereference
2025/12/11 21:55:39.654 10654 10718 Error CRASH x0 00000077db9bfbc0 x1 000000784432ee08 x2 b400007596766800 x3 b4000075c71f9720
2025/12/11 21:55:39.654 10654 10718 Error CRASH x4 b4000076c3d0c300 x5 000000784432f490 x6 7369784170556674 x7 000000784432f72b
2025/12/11 21:55:39.654 10654 10718 Error CRASH x8 0000000000000001 x9 0000000000000001 x10 0000000000000001 x11 0000000000000001
2025/12/11 21:55:39.654 10654 10718 Error CRASH x12 00000000f0f0f0f1 x13 0000000000000000 x14 000000784432f788 x15 000000784432f7a8
2025/12/11 21:55:39.654 10654 10718 Error CRASH x16 00000077db675aa8 x17 00000078fdb97a70 x18 0000000000000000 x19 00000077a0b5db60
2025/12/11 21:55:39.654 10654 10718 Error CRASH x20 0000000000000000 x21 0000000000000000 x22 00000077db9bf868 x23 0000000000000000
2025/12/11 21:55:39.654 10654 10718 Error CRASH x24 b4000075c71f9720 x25 b4000076c3d0c4f8 x26 0000007844330d40 x27 b400007596766940
2025/12/11 21:55:39.654 10654 10718 Error CRASH x28 0000007844330d40 x29 000000784432eee0
2025/12/11 21:55:39.654 10654 10718 Error CRASH lr 00000077d85293c0 sp 000000784432ee20 pc 00000077d8529424 pst 0000000060001000
2025/12/11 21:55:39.654 10654 10718 Error CRASH backtrace:
2025/12/11 21:55:39.654 10654 10718 Error CRASH #00 pc 0000000002366424 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #01 pc 000000000234209c /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #02 pc 000000000279d2f4 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #03 pc 0000000001fbf584 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #04 pc 000000000086a614 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (DotNet::System::Array1DotNet::UnityEngine::Mesh::operator const+60) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #05 pc 0000000000f1152c /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (std::__ndk1::__function::__func<CesiumForUnityNative::UnityPrepareRendererResources::prepareInMainThread(Cesium3DTilesSelection::Tile&, void*)::$_4, std::__ndk1::allocator<CesiumForUnityNative::UnityPrepareRendererResources::prepareInMainThread(Cesium3DTilesSelection::Tile&, void*)::$_4>, void (CesiumGltf::Model const&, CesiumGltf::Node const&, CesiumGltf::Mesh const&, CesiumGltf::MeshPrimitive const&, glm::mat<4ul, 4ul, double, (glm::qualifier)0> const&)>::operator()(CesiumGltf::Model const&, CesiumGltf::Node const&, CesiumGltf::Mesh const&, CesiumGltf::MeshPrimitive const&, glm::mat<4ul, 4ul, double, (glm::qualifier)0> const&)+100) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #06 pc 00000000011c86c4 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (void CesiumGltf::(anonymous namespace)::forEachPrimitiveInNodeObject<std::__ndk1::function<void (CesiumGltf::Model const&, CesiumGltf::Node const&, CesiumGltf::Mesh const&, CesiumGltf::MeshPrimitive const&, glm::mat<4ul, 4ul, double, (glm::qualifier)0> const&)> >(glm::mat<4ul, 4ul, double, (glm::qualifier)0> const&, CesiumGltf::Model const&, CesiumGltf::Node const&, std::__ndk1::function<void (CesiumGltf::Model const&, CesiumGltf::Node const&, CesiumGltf::Mesh const&, CesiumGltf::MeshPrimitive const&, glm::mat<4ul, 4ul, double, (glm::qualifier)0> const&)>&)+812) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #07 pc 00000000011c8218 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (CesiumGltf::Model::forEachPrimitiveInScene(int, std::__ndk1::function<void (CesiumGltf::Model const&, CesiumGltf::Node const&, CesiumGltf::Mesh const&, CesiumGltf::MeshPrimitive const&, glm::mat<4ul, 4ul, double, (glm::qualifier)0> const&)>&&) const+396) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.654 10654 10718 Error CRASH #08 pc 0000000000ef4d0c /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (CesiumForUnityNative::UnityPrepareRendererResources::prepareInMainThread(Cesium3DTilesSelection::Tile&, void*)+916) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #09 pc 0000000000f3c454 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (Cesium3DTilesSelection::TilesetContentManager::finishLoading(Cesium3DTilesSelection::Tile&, Cesium3DTilesSelection::TilesetOptions const&)+580) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #10 pc 0000000000f308f4 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (Cesium3DTilesSelection::Tileset::_processMainThreadLoadQueue()+148) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #11 pc 0000000000f2fc38 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (Cesium3DTilesSelection::Tileset::updateView(std::__ndk1::vector<Cesium3DTilesSelection::ViewState, std::__ndk1::allocatorCesium3DTilesSelection::ViewState > const&, float)+1056) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #12 pc 000000000088c4b4 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (CesiumForUnityNative::Cesium3DTilesetImpl::Update(DotNet::CesiumForUnity::Cesium3DTileset const&)+152) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #13 pc 0000000000843858 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libCesiumForUnityNative-Runtime.so (DotNet_CesiumForUnity_Cesium3DTileset_Update+72) (BuildId: 9a57eaad269eadfc2223626dcd7912bc44084864)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #14 pc 0000000002841d00 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #15 pc 0000000002363da0 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #16 pc 0000000002363cec /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libil2cpp.so (BuildId: c45e07b69f834890)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #17 pc 000000000065d634 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #18 pc 000000000066cf60 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #19 pc 000000000067b584 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #20 pc 0000000000499dbc /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #21 pc 0000000000562280 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #22 pc 00000000005622c0 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #23 pc 0000000000562554 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #24 pc 00000000006e0024 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #25 pc 00000000006fad20 /data/app/~~rT96uuczKtPtrWPx9BN0aQ==/com.bowie.earthquest-F4aGp-_CFqE8Tfs4k4r9JA==/lib/arm64/libunity.so (BuildId: 96a08cb0836c4aeb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #26 pc 0000000000227440 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 37be931f63d723c8aafc831096c877fb)
2025/12/11 21:55:39.655 10654 10718 Error CRASH #27 pc 0000000002001254 /memfd:jit-cache (deleted)

Hi @Your_RainBoy,

This looks like it falls into the broad category of “AppDomain reload problems.” We’ve made a lot of progress fixing this class of bugs in v1.20.0, and have a PR open that - hopefully! - will eliminate them entirely in the next release. If you want to try the pre-release version with the latter fix, download the “Combined Package” artifact from CI from this PR:

Thank you!!

I really appreciate it!

Can you please explain how one would try the “Combined Package” artifact?
Haven’t been able to figure it out myself.

Thanks again!

By the way, this did not happen in the editor.

Ah ok, if it didn’t happen in the Editor, then I’m probably wrong about it being AppDomain related. Now that I’m looking a bit closer at your call stack, it is quite a strange one. There’s no legitimate reason I can think of that we would attempt to cast a NativeArray to a MeshCollider. It points to a rather serious problem, like perhaps some memory corruption.

I remember from previous posts that you’re using an older release, and perhaps some of your own customizations as well. So it’s worth seeing if you can reproduce this in an official release. Especially a recent version.

If you want to try a build from that pull request, though, you can do this:

  1. Download the Combined Package artifact from the second link I posted above.
  2. Extract the .zip file. It should contain a single .tgz file.
  3. Use the Unity Package Manager to add the .tgz file as a Unity package.
  4. Restart the Editor to make sure the new version is picked up (especially the native code).
  5. Build your app for the target platform.

Thank you!

My fork is basically 1.9.0, there are no meaningful changes that you need
to consider, only small commits from newer versions. So I’m dedicated to
applying any changes necessary.

As said before, Cesium for Unity versions later than 1.10.0 or 1.9.0
dramatically lower performance on standalone Android, getting as low as
10-15x worse frame-rates, and I am in no way aware of how a newer version
could help debug.

This also applies to the currently most up to date Cesium version, not just
“newer ones”.

And for my purposes, each frame is incredibly valuable in VR, so even if
performance was just 10% worse (not 10x), it would still not be an option.

I know as a developer you need to value the current versions first and
foremost, but you also have to value your clients’ experience.

I trust you know what is best either way, I’m just here to report this
crash.

Could it just be corrupt memory? Sometimes crashes never occur even in 2h+
sessions.

I understand, but as an open source project maintained by a relatively small team, we can’t invest a lot of time trying to track down problems in old versions. Regarding v1.9, the best I can say is, “I don’t know what’s going on there, but we’ve fixed a lot of problems since then and this could very well be one of them.”

If there’s a performance regression since v1.9, I’m not aware of it, but I’m interested in solving it if so! Does this only show up on Android? Or have you noticed newer versions to be slower on other platforms as well?

Thank you for understanding!

I think it might actually be post 1.10.0 or 1.11.0, I went with 1.9.0 just
to be sure.

I know it’s on Android, but we’re in the same boat regarding time, so I’m
not yet fully sure it persists on other platforms.