Search Issue Tracker

Fixed in 2017.3.0f3

Votes

0

Found in

2017.1.0p2

Issue ID

941904

Regression

No

SpriteAtlasDatabase::CollectAllAtlasAssets crash when using GameObject.DestroyImmediate(atlas,true); in play mode

Scripting

-

To reproduce:
1. Open users attached project "spriteAtlasTest.zip"
2. Open "testAtlas.unity" scene
3. Enter play mode
4. In the hierarchy select Canvas > Image
5. In the inspector window you can see two buttons "Load" and "UnLoad"
6. Press "Load" button
7. Observe as Image component Source Image is set to a sprite
8. Press "UnLoad"
9. Observe as the Source Image says "Missing (Sprite)"
10. Press "Load" again, console throws NullReferenceException
11. Exit Play mode and enter Play mode again

Expected result: Unity enters play mode with no crashes
Actual result: Unity crashes

Reproduced on: 2017.1.0a5 2017.1.0a6 2017.1.0f3 2017.2.0b7 2017.3.0a3

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.