Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in

2019.4

2019.4.15f1

2020.1

2020.2

2021.1

Issue ID

1293040

Regression

Yes

Crash in GetColorBlockColors when calling Texture2D.GetPixels32 for crunched Texture Formats

Texture

-

How to reproduce:
1. Open user-submitted project (GetPixels32Crash.zip)
2. Attach the CrashScript.cs onto any GameObject
3. Enter Play Mode

Expected result: the Editor does not crash
Actual result: the Editor crashes

Reproducible with: 2019.4.0f1, 2019.4.15f1, 2020.1.14f1, 2020.2.0b11, 2021.1.0a6
Not reproducible with: 2018.4.29f1

  1. Resolution Note (fix version 2021.1):

    when creating a crunched texture at runtime, no data array is created yet because the size of the data is unknown. This is now properly handled.
    Fixed in 2021.2.0a5

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.