mob-sakai / ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
MIT License
4.36k stars 619 forks source link

Got a SIGSEGV while executing native code. #218

Closed mob-sakai closed 2 years ago

mob-sakai commented 2 years ago

Discussed in https://github.com/mob-sakai/ParticleEffectForUGUI/discussions/217

Originally posted by **jmdjr** July 7, 2022 issue when stopping playmode, this crash happens ~50% of the time. ``` Stacktrace: at <0xffffffff> at (wrapper managed-to-native) UnityEngine.ParticleSystemRenderer.BakeMesh (UnityEngine.ParticleSystemRenderer,UnityEngine.Mesh,UnityEngine.Camera,bool) [0x00016] in <362a735d2c5d4992b4f380f12a28a20f>:0 at Coffee.UIExtensions.UIParticleRenderer.UpdateMesh (UnityEngine.Camera) [0x002a7] in D:\Github\AfterLife-SingleFrame-Landscape\Library\PackageCache\com.coffee.ui-particle@4edcef1bbf\Scripts\UIParticleRenderer.cs:240 at Coffee.UIExtensions.UIParticle.UpdateRenderers () [0x00078] in D:\Github\AfterLife-SingleFrame-Landscape\Library\PackageCache\com.coffee.ui-particle@4edcef1bbf\Scripts\UIParticle.cs:335 at Coffee.UIExtensions.UIParticleUpdater.Refresh () [0x000f1] in D:\Github\AfterLife-SingleFrame-Landscape\Library\PackageCache\com.coffee.ui-particle@4edcef1bbf\Scripts\UIParticleUpdater.cs:82 at (wrapper delegate-invoke) .invoke_void () [0x0006d] in <1802df4476dc484da0b85d839aace6fa>:0 at UnityEngine.Canvas.SendWillRenderCanvases () [0x0000c] in <1802df4476dc484da0b85d839aace6fa>:0 at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001f] in <695d1cc93cca45069c528c15c9fdd749>: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. ================================================================= Received signal SIGSEGV Stack trace: 0x00007ff721932a1c (Unity) MemoryManager::Deallocate 0x00007ff7219370fa (Unity) free_alloc_internal 0x00007ff72122b2b1 (Unity) dynamic_array::~dynamic_array 0x00007ff7213b5ff3 (Unity) ParticleSystemRenderer::BakeMesh 0x00007ff7216c71f1 (Unity) ParticleSystemRenderer_CUSTOM_BakeMesh 0x000002929de6298d (Mono JIT Code) (wrapper managed-to-native) UnityEngine.ParticleSystemRenderer:BakeMesh (UnityEngine.ParticleSystemRenderer,UnityEngine.Mesh,UnityEngine.Camera,bool) 0x000002936de19ea3 (Mono JIT Code) [UIParticleRenderer.cs:240] Coffee.UIExtensions.UIParticleRenderer:UpdateMesh (UnityEngine.Camera) 0x000002936de162c3 (Mono JIT Code) [UIParticle.cs:335] Coffee.UIExtensions.UIParticle:UpdateRenderers () 0x000002936de14a1b (Mono JIT Code) [UIParticleUpdater.cs:82] Coffee.UIExtensions.UIParticleUpdater:Refresh () 0x000002929de43ec7 (Mono JIT Code) (wrapper delegate-invoke) :invoke_void () 0x000002929de43b9e (Mono JIT Code) UnityEngine.Canvas:SendWillRenderCanvases () 0x000002929de43805 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr) 0x00007ffaccd1f1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke 0x00007ffaccca2ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 0x00007ffacccabb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 0x00007ff721f44fe4 (Unity) scripting_method_invoke 0x00007ff721f401a1 (Unity) ScriptingInvocation::Invoke 0x00007ff72149bd9a (Unity) `UI::InitializeCanvasManager'::`2'::UIEventsWillRenderCanvasesRegistrator::Forward 0x00007ff721c77109 (Unity) `InitPlayerLoopCallbacks'::`2'::PostLateUpdatePlayerUpdateCanvasesRegistrator::Forward 0x00007ff721c5ec6c (Unity) ExecutePlayerLoop 0x00007ff721c5ed43 (Unity) ExecutePlayerLoop 0x00007ff721c65a19 (Unity) PlayerLoop 0x00007ff722935801 (Unity) PlayerLoopController::UpdateScene 0x00007ff7229208bb (Unity) PlayerLoopController::ExitPlayMode 0x00007ff722930e6a (Unity) PlayerLoopController::SetIsPlaying 0x00007ff722933c97 (Unity) Application::TickTimer 0x00007ff722da2b71 (Unity) MainMessageLoop 0x00007ff722da6d11 (Unity) WinMain 0x00007ff724458e3e (Unity) __scrt_common_main_seh 0x00007ffb2d237034 (KERNEL32) BaseThreadInitThunk 0x00007ffb2e482651 (ntdll) RtlUserThreadStart ```
mob-sakai commented 2 years ago

@jmdjr Continue the discussion here.

mob-sakai commented 2 years ago

I would like to know more about this issue. Tell me about your develop/build environment.

Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

mob-sakai commented 2 years ago

https://github.com/mob-sakai/ParticleEffectForUGUI/issues/49 Looks similar to this issue.

jmdjr commented 2 years ago

I will keep an eye on that thread and post in my thread if it answers my question. It does seem related at a glance.

On Thu, Jul 7, 2022, 9:09 PM mob-sakai @.***> wrote:

49 https://github.com/mob-sakai/ParticleEffectForUGUI/issues/49

Looks similar to this issue.

— Reply to this email directly, view it on GitHub https://github.com/mob-sakai/ParticleEffectForUGUI/issues/218#issuecomment-1178525140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGMHUN3K4FM3OMLUFWL4STVS6SYPANCNFSM5234EIHQ . You are receiving this because you were mentioned.Message ID: @.***>

mob-sakai commented 2 years ago

Since there has been no new discussion for a long time, this issue was closed. 
If the same issue arises, please re-open this issue.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 4.1.6 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: