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

Got a SIGSEGV while executing native code. #218

Closed
mob-sakai opened this issue Jul 7, 2022 · 6 comments
Closed

Got a SIGSEGV while executing native code. #218

mob-sakai opened this issue Jul 7, 2022 · 6 comments
Assignees
Labels
bug Something isn't working released

Comments

@mob-sakai
Copy link
Owner

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 <unknown> <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) <Module>.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<void * __ptr64 [38],0>::~dynamic_array<void * __ptr64 [38],0>
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) <Module>: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

```</div>
@mob-sakai mob-sakai added the bug Something isn't working label Jul 7, 2022
@mob-sakai mob-sakai self-assigned this Jul 7, 2022
@mob-sakai
Copy link
Owner Author

@jmdjr
Continue the discussion here.

@mob-sakai
Copy link
Owner Author

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

  • UIParticle version [e.g. 3.3.10]
  • Platform: [e.g. Editor(Windows/Mac), Standalone(Windows/Mac), iOS, Android, WebGL]
  • Unity version: [e.g. 2022.2.0f1]
  • Build options: [e.g. IL2CPP, .Net 4.x, URP/HDRP]

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

repos

@mob-sakai
Copy link
Owner Author

#49
Looks similar to this issue.

@jmdjr
Copy link

jmdjr commented Jul 8, 2022 via email

@mob-sakai
Copy link
Owner Author

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.

mob-sakai added a commit that referenced this issue Aug 10, 2022
github-actions bot pushed a commit that referenced this issue Aug 10, 2022
## [4.1.6](4.1.5...4.1.6) (2022-08-10)

### Bug Fixes

* fix abnormal mesh bounds error ([f60d6df](f60d6df)), closes [#213](#213) [#218](#218)
@github-actions
Copy link

🎉 This issue has been resolved in version 4.1.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

LionelPerrault added a commit to LionelPerrault/Unity-Particle that referenced this issue Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

2 participants