Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.2.X, 2022.1.X

Votes

1

Found in

2019.4

2019.4.32f1

2020.3

2021.1

2021.2

2022.1

Issue ID

1379139

Regression

No

String Literal may be garbage collected when building project with IL2CPP Scripting Backend

IL2CPP

-

How to reproduce:
1. Download .Net 5 SDK
2. Open the user attached "TestStringLiteral.zip" project
3. Change the Scripting Backend to IL2CPP (Edit -> Project Settings -> Player)
4. Build the project in the "product" folder located in the project folder (File -> Build Settings -> Build)
5. Open the "AutoTestTool" folder located in the project folder ("project folder"/Tools/AutoTestTool)
6. Start "publish.bat", then start "StartTest.bat"

Expected result: No errors are thrown in the build
Actual result: An error is thrown after multiple runs

Reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.1.28f1, 2021.2.3f1, 2022.1.0a15

Note:
- It might take some time to reproduce, somewhere between 10 minutes and a few hours ~2h
- Not reproducible on MacOS

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a2

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b6

  3. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.10f1

  4. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.27f1

  5. Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.35f1

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.