Search Issue Tracker
Fixed in 2018.3
Fixed in 2017.4
Unity crashes while packing a huge sprite with sprite atlas when the graphics API is set to D3D11 or D3D12
How to reproduce:
1. Open the attached Unity project.
2. Open the sprite atlas named "CrashAtlas" in the Inspector window.
3. Press "Pack Preview".
4. Wait till sprite packing is finished.
Expected result: sprite atlas successfully packs the sprites.
Actual result: a message appears stating that Unity could not allocate memory. After closing the message, Unity crashes.
Reproducible with - 2017.1.0b5, 2017.1.3p4, 2017.2.2p4, 2017.4.2f2, 2018.1.0f2, 2018.2.0b3
Could not test with - 5.6.0a1, 5.6.6f2, 2017.1.0b4 (Sprite Atlas first introduced in 2017.1.0b5)
The crash happens when the sprite's max size is set to 4096 or 8192, sprite mode is multiple and there is a lot of sprites in it.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- [Linux Hub] A new instance of the Hub does not have a Taskbar icon
- Mesh Inspector becomes slow to use when inspecting a large Mesh with Blend Shapes
- [Metal] GfxDeviceMetal::CreateComputeProgram does not check inputs
- The Modes button of the the SerializedField MinMaxGradient is not clickable in the Inspector when indentLevel is more than 0
- Input.GetKey for Left Shift returns true when Right Shift is held down and Left Shift is pressed (and vice versa)