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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Add comment