Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.4.X, 2020.1.X

Votes

0

Found in

2017.4.0f1

2018.3.0a1

2018.3.3f1

2019.2.0a1

2019.3.0a1

Issue ID

1179336

Regression

No

Editor crashes when creating new Texture2D with DXT1Crunched, DXT5Crunched, ETC_RGB4Crunched, ETC2_RGBA8Crunched TextureFormat

Graphics - General

-

Steps to reproduce:
1. Download 1179336_repro.zip and open "SampleScene"
2. Enter play mode

Results: Editor crashes when creating Texture with DXT1Crunched, DXT5Crunched, ETC_RGB4Crunched, ETC2_RGBA8Crunched TextureFormat.

Reproduced with: 2020.1.0a1, 2019.3.0b1, 2019.2.3f1, 2018.4.7f1, 2017.4.32f1

Note:
- Reproduced on Windows 10, Ubuntu
- Not Reproducible on MacOS
- Before the crash, an exception is triggered 'ETC_RGB4Crunched/ETC2_RGBA8Crunched' is not supported on this platform. Decompressing texture. Use 'SystemInfo.SupportsTextureFormat' C# API to check format support.'

========== OUTPUTTING STACK TRACE ==================

0x00007FF631D1A838 (Unity) memcpy
0x00007FF62FD05C6E (Unity) BlitCopyCompressedImage
0x00007FF62FCC413D (Unity) TextureOp<SharedTextureData>::ExtractCompressedImage
0x00007FF62FCC4383 (Unity) Texture2D::ExtractMipLevel
0x00007FF62FCC33E3 (Unity) Texture2D::CreateScaledAndPaddedData
0x00007FF62FCCD185 (Unity) Texture2D::UploadTexture
0x00007FF62FCC0EC3 (Unity) Texture2D::AwakeFromLoad
0x00007FF62FBFF119 (Unity) Texture2DScripting::Create
0x00007FF6306B6B92 (Unity) Texture2D_CUSTOM_Internal_CreateImpl
0x0000019C38CFE553 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Texture2D:Internal_CreateImpl (UnityEngine.Texture2D,int,int,int,UnityEngine.Experimental.Rendering.GraphicsFormat,UnityEngine.Experimental.Rendering.TextureCreationFlags,intptr)
0x0000019C38CFE313 (Mono JIT Code) UnityEngine.Texture2D:Internal_Create (UnityEngine.Texture2D,int,int,int,UnityEngine.Experimental.Rendering.GraphicsFormat,UnityEngine.Experimental.Rendering.TextureCreationFlags,intptr)
0x0000019C38CF676B (Mono JIT Code) UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,int,bool,intptr)
0x0000019C3B25D81B (Mono JIT Code) UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,bool,bool)
<...>

========== END OF STACKTRACE ===========

  1. Resolution Note (fix version 2020.2):

    Fixed crash when creating NPOT Crunched texture and creating Crunched texture with size not a multiple of 4 will now throw exception.

  2. Resolution Note (fix version 2020.1):

    Fixed crash when creating NPOT Crunched texture and creating Crunched texture with size not a multiple of 4 will now throw exception.

    Fixed in 2020.1.0b15

  3. Resolution Note (fix version 2019.4):

    Fixed crash when creating NPOT Crunched texture and creating Crunched texture with size not a multiple of 4 will now throw exception.

    Fixed in 2019.4.3f1

Add comment

Log in to post comment