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
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment