Search Issue Tracker

Fixed

Fixed in 2021.3.37f1, 2022.3.22f1, 2023.2.14f1, 6000.0.0b11

Votes

0

Found in

2022.2.21f1

2022.3.5f1

2023.1.16f1

2023.2.0b11

2023.3.0a7

6000.0.0b11

Issue ID

UUM-48520

Regression

Yes

Non power of 4 BC1 texture fallback code can lead to a crash with some textures

--

-

Observed in VRChat with a 2019-built 2x2 BC1 texture. The fallback code truncates the number of mips from 3 to 2 which puts the texture at a size (20B) which then leads to a some memory getting corrupted which causes a crash on free.

 

Likely reproducable with a 2x2 BC1 texure with 3 mips being loaded into a 2022.3 player and hitting the fallback code. 

 

We haven't been able to manufacture a standalone repro project for this, although the pre-build bundle that 

  1. Resolution Note (fix version 6000.0.0b11):

    Since the compressed data in such small textures is actually larger than the uncompressed data, memory corruption was observed. This has been fixed.

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.