Search Issue Tracker

Fixed in 5.5.1

Votes

0

Found in

5.6.0a6

Issue ID

858235

Regression

Yes

[Emit] Crash at CopyFromArrayAOS when calling Emit(position, velocity, size, lifetime, color);

Shuriken

-

Unity crashes when the deprecated Emit(Vector3 position, Vector3 velocity, float size, float lifetime, Color32 color); is called.

Repro steps:

1.Open Scene1 from attached project.
2. Press Play
3. Unity crashes.

Notes:
- regression, works in 5.5.0f3
- this form of Emit() is deprecated, thus the low priority, but still, should not crash.

========== OUTPUTING STACK TRACE ==================

0x00000001411E2D49 (Unity) [c:\buildslave\unity\build\runtime\particlesystem\particlesystemparticle.cpp:204] ParticleSystemParticles::CopyFromArrayAOS
0x0000000141222DCC (Unity) [c:\buildslave\unity\build\runtime\particlesystem\particlesystem.cpp:1504] ParticleSystem::EmitParticleExternal
0x0000000010678E25 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.ParticleSystem:Internal_EmitOld (UnityEngine.ParticleSystem/Particle&)
0x0000000010678403 (Mono JIT Code) [C:\buildslave\unity\build\artifacts\generated\common\modules\ParticleSystem\ParticleSystemBindings.gen.cs:3579] UnityEngine.ParticleSystem:Emit (UnityEngine.Vector3,UnityEngine.Vector3,single,single,UnityEngine.Color32)
0x000000001067648C (Mono JIT Code) [C:\Users\Vlad\Documents\GraphicTests\Particle Shapes\Assets\Particles\Scripts\ParticleController.cs:34] ParticleController:OnEnable ()
0x00000000008B6C42 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFDF2345573 (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
0x00007FFDF22983F1 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
0x0000000141315245 (Unity) [c:\buildslave\unity\build\runtime\scriptingbackend\mono\scriptingapi_mono.cpp:500] scripting_method_invoke
0x000000014130A0AE (Unity) [c:\buildslave\unity\build\runtime\scripting\scriptinginvocation.cpp:288] ScriptingInvocation::Invoke
0x00000001418A5307 (Unity) [c:\buildslave\unity\build\runtime\mono\monobehaviour.cpp:466] MonoBehaviour::CallMethodIfAvailable
0x00000001418A9CC0 (Unity) [c:\buildslave\unity\build\runtime\mono\monobehaviour.cpp:1440] MonoBehaviour::AddToManager
0x00000001413382F1 (Unity) [c:\buildslave\unity\build\runtime\serialize\awakefromloadqueue.cpp:394] AwakeFromLoadQueue::InvokePersistentManagerAwake
0x0000000141344BD9 (Unity) [c:\buildslave\unity\build\runtime\serialize\awakefromloadqueue.cpp:148] AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
0x00000001412C1737 (Unity) [c:\buildslave\unity\build\runtime\preloadmanager\loadsceneoperation.cpp:556] LoadSceneOperation::CompleteAwakeSequence
0x00000001412C1BCA (Unity) [c:\buildslave\unity\build\runtime\preloadmanager\loadsceneoperation.cpp:527] LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
0x00000001412C62BA (Unity) [c:\buildslave\unity\build\runtime\preloadmanager\loadsceneoperation.cpp:282] LoadSceneOperation::IntegrateMainThread
0x00000001412C52F8 (Unity) [c:\buildslave\unity\build\runtime\preloadmanager\preloadmanager.cpp:478] PreloadManager::UpdatePreloadingSingleStep
0x00000001412C5466 (Unity) [c:\buildslave\unity\build\runtime\preloadmanager\preloadmanager.cpp:559] PreloadManager::WaitForAllAsyncOperationsToComplete
0x000000014190FC3B (Unity) [c:\buildslave\unity\build\editor\src\scenemanager\editorscenemanager.cpp:934] EditorSceneManager::RestoreSceneBackups
0x0000000141B338AA (Unity) [c:\buildslave\unity\build\editor\src\application.cpp:2870] Application::EnterPlayMode
0x0000000141B3D3EC (Unity) [c:\buildslave\unity\build\editor\src\application.cpp:2784] Application::SetIsPlaying
0x0000000141B3DEE8 (Unity) [c:\buildslave\unity\build\editor\src\application.cpp:1895] Application::TickTimer
0x0000000141C1F9CF (Unity) [c:\buildslave\unity\build\editor\platform\windows\wineditormain.cpp:405] MainMessageLoop
0x0000000141C215E4 (Unity) [c:\buildslave\unity\build\editor\platform\windows\wineditormain.cpp:1015] WinMain
0x0000000141F22BDC (Unity) [f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0.c:275] __tmainCRTStartup
0x00007FFE17618102 (KERNEL32) BaseThreadInitThunk
0x00007FFE1799C5B4 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.