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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment