Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sohotj · Aug 30, 2021 at 06:28 PM · meshscenecrash

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】

  1. 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.

  2. The new scene contains meshs and a large number of particle effects.

[Crash appears]

  1. Not every time

  2. Packaged resources may appear

  3. 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】

  1. 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.

  2. The new scene contains meshs and a large number of particle effects.

[Crash appears]

  1. Not every time

  2. Packaged resources may appear

  3. 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 ===========

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

172 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Combined Mesh (root: scene) - How can I detect if a Mesh is a static combination? 1 Answer

How can I stop my editor from crashing everytime it loads a new Scene during runtime? (since Unity 4) 2 Answers

How to change scenes by touching objects? 2 Answers

Error: Default Scene Not Set - Please Run Wizard 1 Answer

The best way to load scenes ingame 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges