Reproduction steps:
1. Open the attached “IN-16564.zip” project
2. Click “Bug Test” > “CompressTexture Crash”
Expected result: EditorUtility.CompressTexture fails to compress with an error message (cannot compress 0x0)
Actual result: Unity Editor crashes
Reproducible with: 2020.3.40f1
Not reproducible with: 2021.1.0a1, 2021.3.11f1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a11
Reproducible on: Ubuntu 20.04.5 LTS, Windows 11 Pro 21H2
Notes:
- Windows 11 crashed silently, with no stack trace and bug reporter
- The crash reproduces when creating a new project from the 2D template
- Ubuntu 20.04.5 LTS crashes with no stack trace