- Home /
Loading an Additive scene may crash! The crash log show the same stack trace(Mesh).
Loading an Additive scene may crash! The crash log show the same stack trace(Mesh).
【Scenes】
The new camera will be used in the new scene, and the original camera and terrain will be retained before the new scene is loaded.
The new scene contains meshs and a large number of particle effects.
[Crash appears]
Not every time
Packaged resources may appear
Appears in the process of loading a new scene when it crashes
[Crash log]
Assertion failed on expression: '(int)lastVertex < GetVertexCount()' UnityEngine.StaticBatchingHelper:InternalCombineIndices(SubMeshInstance[], Mesh) UnityEngine.InternalStaticBatchingUtility:MakeBatch(List`1, Transform, Int32) UnityEngine.InternalStaticBatchingUtility:CombineGameObjects(GameObject[], GameObject, Boolean, StaticBatcherGOSorter) UnityEngine.InternalStaticBatchingUtility:Combine(GameObject, Boolean, Boolean, StaticBatcherGOSorter) UnityEditor.UnityBuildPostprocessor:OnProcessScene(Scene, BuildReport) UnityEditor.Build.<>c_DisplayClass16_0:b_1(IProcessSceneWithReport) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair(List`1, Action`1, List`1, Action`1, Boolean) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess(Scene, BuildReport)
[C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp line 757] (Filename: C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp Line: 757)
Assertion failed on expression: '(int)lastVertex < GetVertexCount()' UnityEngine.StaticBatchingHelper:InternalCombineIndices(SubMeshInstance[], Mesh) UnityEngine.InternalStaticBatchingUtility:MakeBatch(List`1, Transform, Int32) UnityEngine.InternalStaticBatchingUtility:CombineGameObjects(GameObject[], GameObject, Boolean, StaticBatcherGOSorter) UnityEngine.InternalStaticBatchingUtility:Combine(GameObject, Boolean, Boolean, StaticBatcherGOSorter) UnityEditor.UnityBuildPostprocessor:OnProcessScene(Scene, BuildReport) UnityEditor.Build.<>c_DisplayClass16_0:b_1(IProcessSceneWithReport) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair(List`1, Action`1, List`1, Action`1, Boolean) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess(Scene, BuildReport)
[C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp line 757] (Filename: C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp Line: 757)
Stacktrace:
at at (wrapper managed-to-native) UnityEngine.StaticBatchingHelper.InternalCombineIndices (UnityEngine.MeshSubsetCombineUtility/SubMeshInstance[],UnityEngine.Mesh) [0x00008] in :0 at UnityEngine.InternalStaticBatchingUtility.MakeBatch (System.Collections.Generic.List`1,UnityEngine.Transform,int) [0x000cc] in :0 at UnityEngine.InternalStaticBatchingUtility.CombineGameObjects (UnityEngine.GameObject[],UnityEngine.GameObject,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) [0x003cf] in :0 at UnityEngine.InternalStaticBatchingUtility.Combine (UnityEngine.GameObject,bool,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) [0x0008a] in :0 at UnityEditor.UnityBuildPostprocessor.OnProcessScene (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) [0x00022] in :0 at UnityEditor.Build.BuildPipelineInterfaces/<>c_DisplayClass16_0.b_1 (UnityEditor.Build.IProcessSceneWithReport) [0x0000d] in :0 at UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair (System.Collections.Generic.List`1,System.Action`1,System.Collections.Generic.List`1,System.Action`1,bool) [0x00102] in :0 at UnityEditor.Build.BuildPipelineInterfaces.OnSceneProcess (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) [0x0008b] in :0 at (wrapper runtime-invoke) .runtime_invoke_void_Scene_object (object,intptr,intptr,intptr) [0x0002b] in :0
================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
Crash!!!
========== OUTPUTTING STACK TRACE ==================
0x000000014221024F (Unity) Mesh::RecalculateSubmeshBoundsInternal 0x0000000142215A03 (Unity) Mesh::SetIndicesComplex 0x0000000142222085 (Unity) CombineMeshIndicesForStaticBatching 0x000000014222236F (Unity) MeshScripting::CombineMeshIndicesForStaticBatching 0x0000000142B19092 (Unity) StaticBatchingHelper_CUSTOM_InternalCombineIndices 0x000000007E38AE17 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.StaticBatchingHelper:InternalCombineIndices (UnityEngine.MeshSubsetCombineUtility/SubMeshInstance[],UnityEngine.Mesh) 0x000000006905C243 (Mono JIT Code) UnityEngine.InternalStaticBatchingUtility:MakeBatch (System.Collections.Generic.List`1,UnityEngine.Transform,int) 0x0000000069059353 (Mono JIT Code) UnityEngine.InternalStaticBatchingUtility:CombineGameObjects (UnityEngine.GameObject[],UnityEngine.GameObject,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) 0x000000006905651B (Mono JIT Code) UnityEngine.InternalStaticBatchingUtility:Combine (UnityEngine.GameObject,bool,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) 0x0000000069055A63 (Mono JIT Code) UnityEditor.UnityBuildPostprocessor:OnProcessScene (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) 0x000000006905145D (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces/<>c_DisplayClass16_0:b1 (UnityEditor.Build.IProcessSceneWithReport) 0x0000000069050E96 (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair (System.Collections.Generic.List`1,System.Action`1,System.Collections.Generic.List`1,System.Action`1,bool) 0x0000000068D3EFAB (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) 0x0000000068D3F22E (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_Scene_object (object,intptr,intptr,intptr) 0x000007FEE3EBD690 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke 0x000007FEE3E42912 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke 0x000007FEE3E4B96F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke 0x0000000142975F3E (Unity) scripting_method_invoke 0x000000014296FC7D (Unity) ScriptingInvocation::Invoke 0x0000000142969C65 (Unity) ScriptingInvocation::Invoke 0x000000013FCC56AC (Unity) Scripting::UnityEditor::Build::BuildPipelineInterfacesProxy::OnSceneProcess 0x00000001423F7178 (Unity) PostprocessScene 0x0000000142439C9C (Unity) LoadSceneOperation::PostLoadSceneAdditive 0x0000000142437A5B (Unity) LoadSceneOperation::IntegrateMainThread 0x000000014243B4A9 (Unity) PreloadManager::UpdatePreloadingSingleStep 0x000000014243B10D (Unity) PreloadManager::UpdatePreloading 0x0000000142415DD9 (Unity) InitPlayerLoopCallbacks'::
2'::EarlyUpdateUpdatePreloadingRegistrator::Forward 0x00000001423FFA78 (Unity) ExecutePlayerLoop 0x00000001423FFB4D (Unity) ExecutePlayerLoop 0x0000000142404D8C (Unity) PlayerLoop 0x00000001407B60DC (Unity) PlayerLoopController::UpdateScene 0x00000001407B4078 (Unity) Application::TickTimer 0x000000014111C8CE (Unity) MainMessageLoop 0x0000000141126B08 (Unity) WinMain 0x000000014411FA32 (Unity) _scrt_common_main_seh 0x00000000770D556D (kernel32) BaseThreadInitThunk 0x000000007723385D (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========,Loading an Additive scene may crash! The crash log show the same stack trace(Mesh).
【Scenes】
The new camera will be used in the new scene, and the original camera and terrain will be retained before the new scene is loaded.
The new scene contains meshs and a large number of particle effects.
[Crash appears]
Not every time
Packaged resources may appear
Appears in the process of loading a new scene when it crashed
[Crash log]
Assertion failed on expression: '(int)lastVertex < GetVertexCount()' UnityEngine.StaticBatchingHelper:InternalCombineIndices(SubMeshInstance[], Mesh) UnityEngine.InternalStaticBatchingUtility:MakeBatch(List`1, Transform, Int32) UnityEngine.InternalStaticBatchingUtility:CombineGameObjects(GameObject[], GameObject, Boolean, StaticBatcherGOSorter) UnityEngine.InternalStaticBatchingUtility:Combine(GameObject, Boolean, Boolean, StaticBatcherGOSorter) UnityEditor.UnityBuildPostprocessor:OnProcessScene(Scene, BuildReport) UnityEditor.Build.<>c_DisplayClass16_0:b_1(IProcessSceneWithReport) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair(List`1, Action`1, List`1, Action`1, Boolean) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess(Scene, BuildReport)
[C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp line 757] (Filename: C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp Line: 757)
Assertion failed on expression: '(int)lastVertex < GetVertexCount()' UnityEngine.StaticBatchingHelper:InternalCombineIndices(SubMeshInstance[], Mesh) UnityEngine.InternalStaticBatchingUtility:MakeBatch(List`1, Transform, Int32) UnityEngine.InternalStaticBatchingUtility:CombineGameObjects(GameObject[], GameObject, Boolean, StaticBatcherGOSorter) UnityEngine.InternalStaticBatchingUtility:Combine(GameObject, Boolean, Boolean, StaticBatcherGOSorter) UnityEditor.UnityBuildPostprocessor:OnProcessScene(Scene, BuildReport) UnityEditor.Build.<>c_DisplayClass16_0:b_1(IProcessSceneWithReport) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair(List`1, Action`1, List`1, Action`1, Boolean) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess(Scene, BuildReport)
[C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp line 757] (Filename: C:\buildslave\unity\build\Runtime/Graphics/Mesh/Mesh.cpp Line: 757)
Stacktrace:
at at (wrapper managed-to-native) UnityEngine.StaticBatchingHelper.InternalCombineIndices (UnityEngine.MeshSubsetCombineUtility/SubMeshInstance[],UnityEngine.Mesh) [0x00008] in :0 at UnityEngine.InternalStaticBatchingUtility.MakeBatch (System.Collections.Generic.List`1,UnityEngine.Transform,int) [0x000cc] in :0 at UnityEngine.InternalStaticBatchingUtility.CombineGameObjects (UnityEngine.GameObject[],UnityEngine.GameObject,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) [0x003cf] in :0 at UnityEngine.InternalStaticBatchingUtility.Combine (UnityEngine.GameObject,bool,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) [0x0008a] in :0 at UnityEditor.UnityBuildPostprocessor.OnProcessScene (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) [0x00022] in :0 at UnityEditor.Build.BuildPipelineInterfaces/<>c_DisplayClass16_0.b_1 (UnityEditor.Build.IProcessSceneWithReport) [0x0000d] in :0 at UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair (System.Collections.Generic.List`1,System.Action`1,System.Collections.Generic.List`1,System.Action`1,bool) [0x00102] in :0 at UnityEditor.Build.BuildPipelineInterfaces.OnSceneProcess (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) [0x0008b] in :0 at (wrapper runtime-invoke) .runtime_invoke_void_Scene_object (object,intptr,intptr,intptr) [0x0002b] in :0
================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
Crash!!!
========== OUTPUTTING STACK TRACE ==================
0x000000014221024F (Unity) Mesh::RecalculateSubmeshBoundsInternal 0x0000000142215A03 (Unity) Mesh::SetIndicesComplex 0x0000000142222085 (Unity) CombineMeshIndicesForStaticBatching 0x000000014222236F (Unity) MeshScripting::CombineMeshIndicesForStaticBatching 0x0000000142B19092 (Unity) StaticBatchingHelper_CUSTOM_InternalCombineIndices 0x000000007E38AE17 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.StaticBatchingHelper:InternalCombineIndices (UnityEngine.MeshSubsetCombineUtility/SubMeshInstance[],UnityEngine.Mesh) 0x000000006905C243 (Mono JIT Code) UnityEngine.InternalStaticBatchingUtility:MakeBatch (System.Collections.Generic.List`1,UnityEngine.Transform,int) 0x0000000069059353 (Mono JIT Code) UnityEngine.InternalStaticBatchingUtility:CombineGameObjects (UnityEngine.GameObject[],UnityEngine.GameObject,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) 0x000000006905651B (Mono JIT Code) UnityEngine.InternalStaticBatchingUtility:Combine (UnityEngine.GameObject,bool,bool,UnityEngine.InternalStaticBatchingUtility/StaticBatcherGOSorter) 0x0000000069055A63 (Mono JIT Code) UnityEditor.UnityBuildPostprocessor:OnProcessScene (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) 0x000000006905145D (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces/<>c_DisplayClass16_0:b1 (UnityEditor.Build.IProcessSceneWithReport) 0x0000000069050E96 (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair (System.Collections.Generic.List`1,System.Action`1,System.Collections.Generic.List`1,System.Action`1,bool) 0x0000000068D3EFAB (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport) 0x0000000068D3F22E (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_Scene_object (object,intptr,intptr,intptr) 0x000007FEE3EBD690 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke 0x000007FEE3E42912 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke 0x000007FEE3E4B96F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke 0x0000000142975F3E (Unity) scripting_method_invoke 0x000000014296FC7D (Unity) ScriptingInvocation::Invoke 0x0000000142969C65 (Unity) ScriptingInvocation::Invoke 0x000000013FCC56AC (Unity) Scripting::UnityEditor::Build::BuildPipelineInterfacesProxy::OnSceneProcess 0x00000001423F7178 (Unity) PostprocessScene 0x0000000142439C9C (Unity) LoadSceneOperation::PostLoadSceneAdditive 0x0000000142437A5B (Unity) LoadSceneOperation::IntegrateMainThread 0x000000014243B4A9 (Unity) PreloadManager::UpdatePreloadingSingleStep 0x000000014243B10D (Unity) PreloadManager::UpdatePreloading 0x0000000142415DD9 (Unity) InitPlayerLoopCallbacks 2 EarlyUpdateUpdatePreloadingRegistrator Forward 0x00000001423FFA78 (Unity) ExecutePlayerLoop 0x00000001423FFB4D (Unity) ExecutePlayerLoop 0x0000000142404D8C (Unity) PlayerLoop 0x00000001407B60DC (Unity) PlayerLoopController::UpdateScene 0x00000001407B4078 (Unity) Application::TickTimer 0x000000014111C8CE (Unity) MainMessageLoop 0x0000000141126B08 (Unity) WinMain 0x000000014411FA32 (Unity) _scrt_common_main_seh 0x00000000770D556D (kernel32) BaseThreadInitThunk 0x000000007723385D (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
Your answer
![](https://koobas.hobune.stream/wayback/20220613042157im_/https://answers.unity.com/themes/thub/images/avi.jpg)