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] [Vulkan] [WebCamTexture] "WebCamTexture.Play" crashes the application when the camera is started
- Huge performance overheads appear when there is a large amount of bindings in the UI Toolkit
- Visual Effects Graph Blackboard can't be scrolled horizontally
- .Net Standard 2.0 dlls causing errors in .net Standard 2.1, despite the automation of compact shims
- Dropdown context menu opens in the wrong place when another section is focused in VFX Graph
Add comment