Search Issue Tracker

Fixed

Fixed in 1.0.0

Votes

0

Found in [Package]

0.50.0

0.51.0

0.51.1

Issue ID

ULOG-1

Regression

No

Unity logging package fails to build with burst and High managed stripping level.

Package: Unity Logging

-

How to reproduce:
1. Open the attached project “NetcodeBurst.zip“
2. Open the Build Settings (Edit > Build Settings…)
3. Open the Player settings and set the “Scripting Backend” to IL2CPP
4. Build

Expected result: The player is built successfully
Actual result: The build fails with “Burst error BC1010: Loading the field _stringLength from the managed object System.String is not supported”

Reproducible with: 1.8.2, 1.8.4 (2022.2.2f1, 2022.2.13f1, 2023.1.0b10, 2023.2.0a8)
Couldn’t test with: 1.8.1 and lower (2020.3.46f1, 2021.3.24f1, 2022.2.1f1) - due to errors in the Console window

Reproduced on: macOS Monterey 12.6

  1. Resolution Note (fix version 1.0.0):

    Issue fixed; these compilation errors shouldn't come up due to the Logging package regardless of whatever managed code stripping level the user had set.

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.