Search Issue Tracker
Fixed in 2018.1.X
Votes
1
Found in
2017.1.0f3
Issue ID
949811
Regression
No
Texture2D.LoadRawTextureData() fails to load DXT1 texture with mipmaps data and throws a UnityException
Steps to reproduce:
1. Open attached project
2. Open "dds_test" scene
3. Enter play mode
4. Observe the exception thrown in the console
Expected behavior: Texture2D.LoadRawTextureData() successfully loads texture with mipmaps data
Actual behavior: Texture2D.LoadRawTextureData() fails to load texture with mipmaps data and throws a UnityException
Reproducible with: 5.6.3p3, 2017.1.1p2, 2017.2.0f1, 2017.3.0a7
UnityException: LoadRawTextureData: not enough data provided (will result in overread).
UnityEngine.Texture2D.LoadRawTextureData (System.Byte[] data) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/TextureBindings.gen.cs:322)
dds_script.Copy (UnityEngine.Texture2D cmpTex) (at Assets/dds_script.cs:11)
dds_script.Start () (at Assets/dds_script.cs:34)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment