Search Issue Tracker

Fixed in 5.5.2

Votes

0

Found in

5.5.0f3

Issue ID

862897

Regression

Yes

Unity crashes when trying to use ParticleSystem.Emit() when not in play mode at ParticleSystemParticles::CopyFromArrayAOS

Shuriken

-

Steps to reproduce:
1. Open the attached project (NastenkaLWP.zip)
2. Open the Assets/Assets/Scenes/Main.unity scene
3. Select "Heart Particle System" object in the Hierarchy
4. Observe the crash

Expected result: Editor should not crash
Actual result: Editor crashes

Note:
HeartParticleSpawner.cs:35 - > ParticleSystem.Emit(emitParams, 1); causes the crash
Script executes in edit mode

Reproduced with: 5.5.0a5, 5.5.0f3, 5.5.0p3, 5.6.0b2
Not reproduced with: 5.3.7p3, 5.4.3p4, 5.5.0a4
Regression introduced in 5.5.0a5

Comments (1)

  1. 21549566e3835b2d76d6cbcd38dd455e?d=mm

    wanglidong

    Jan 04, 2017 08:44

    8 com.unity3d.UnityEditor5.x 0x0000000101cbffcc ParticleSystem::Emit(ParticleSystem&, SubEmitterEmitCommand const&) + 1052
    9 com.unity3d.UnityEditor5.x 0x0000000101cc10a6 ParticleSystem::PlaybackSubEmitterCommandBuffer(ParticleSystem const&, ParticleSystemState&, bool) + 278
    10 com.unity3d.UnityEditor5.x 0x0000000101cbdc53 ParticleSystem::Update2(ParticleSystem&, ParticleSystemReadOnlyState const&, ParticleSystemState&, ParticleSystem::UpdateFlags) + 147
    11 com.unity3d.UnityEditor5.x 0x0000000101cbdb16 ParticleSystem::SyncJobs(bool) + 166
    12 com.unity3d.UnityEditor5.x 0x0000000101cbd986 ParticleSystem::Deactivate(DeactivateOperation) + 22
    13 com.unity3d.UnityEditor5.x 0x00000001015f6281 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&) + 1009
    14 com.unity3d.UnityEditor5.x 0x00000001015f6089 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&) + 505
    15 com.unity3d.UnityEditor5.x 0x00000001015f6089 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&) + 505
    16 com.unity3d.UnityEditor5.x 0x00000001015f70a1 GameObject::Deactivate(DeactivateOperation) + 129

Add comment

Log in to post comment

All about bugs

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