Search Issue Tracker
Fixed
Fixed in 2020.3.47f1, 2021.3.21f1
Votes
1
Found in
2020.3.45f1
2021.3.17f1
2021.3.18f1
2021.3.19f1
Issue ID
UUM-28816
Regression
Yes
DownloadHandlerTexture crashes if it downloads invalid texture data
If a URL to non-texture data or malformed texture data is passed to DownloadHandlerTexture it will trigger a hard-crash in DownloadHandlerTexture::OnFinishReceiveData.
The cause appears to be that in DownloadHandlerTexture::OnFinishReceiveData CreateTextureFromBufferOnBackgroundThread can return null if the texture creation fails, one possible cause being a parsing error. The function then dereferences m_texture to call SetHideFlags.
The behaviour prior to the SetHideFlags call being added was that m_Texture would still end up null but this would ultimately result in a scripting exception. Since that was the case, it looks like a fix would be to simply wrap the SetHideFlags call in a null-check.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Post Process artifacting on certain Android Devices when using Vulkan Graphics API
- The Decal Projector will also be hidden in the Game View when its visibility is toggled off in the Scene View
- [Android] The Player crashes when changing cursor multiple times on Android
- Crash on UnsafeUtility_CUSTOM_MemSet when simulating a random tick event for a tile at a specified position
- Can't drag-select GameObjects in the Scene view when GPU Resident Drawer Instancing is enabled
Add comment