Unity Issue Tracker - Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
Fixed
UUM-108000
Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
Unity: Mono
Silicon
Fixed
6.3.X
6.2.X
6.1.X
6.0.X
Won't Fix
2022.3.X
Fixed crash that would occur due to symbol collision between builtin Brotli compression and system installed versions on Apple Silicon systems.
Fixed crash that would occur due to symbol collision between builtin Brotli compression and system installed versions.
Fixed crash that would occur due to symbol collision between builtin Brotli compression and system installed versions.
Fixed crash that would occur due to symbol collision between builtin Brotli compression and system installed versions.
After careful consideration of the severity of the bug along with the risk of regression from the fix we have decided not to bring this change to the 2022.3 xLTS.
Steps to reproduce:
1. Open the “user’s attached project”
2. Open “SampleScene”
3. Enter Play Mode
4. Observe the Editor crash or freeze
Reproducible with versions: 2022.3.63f1, 6000.0.50f1, 6000.1.6f1, 6000.2.0b4
Couldn’t test with versions: 2022.1.0b1 (due to compiler errors)
Reproducible on: macOS 15.3.2 (M1 Max)
Not reproducible on: macOS 15.5 (Intel), Windows 10
Note: Also reproducible in Standalone Player
First few lines of StackTrace:
#5 0x000001dfbfb1c0 in BrotliDecoderDecompressStream
#6 0x0000032fb169c8 in BrotliDecoderDecompress
#7 0x000003934dcbac in (wrapper managed-to-native) Interop/Brotli:BrotliDecoderDecompress (intptr,byte*,intptr&,byte*) [{0x34631ef40} + 0xdc] (0x3934dcad0 0x3934dcc80) [0x32c40ea80 - Unity Child Domain]
#8 0x000003934dc9bc in System.IO.Compression.BrotliDecoder:TryDecompress (System.ReadOnlySpan`1<byte>,System.Span`1<byte>,int&) [{0x33bb72e30} + 0x1ac] (0x3934dc810 0x3934dca2c) [0x32c40ea80 - Unity Child Domain]
#9 0x000003934d2d2c in BrotliTest:Start ()
Prioritise and Follow this issue
Have a workaround or additional info about this issue?