Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2020.3.X, 2021.3.X, 2022.1.X

Votes

0

Found in

2020.3

2020.3.25f1

2021.2

2022.1

Issue ID

1412320

Regression

No

[IL2CPP] Byte arrays passed as parameters to a delegate are inconsistent on macOS/iOS/tvOS

IL2CPP

-

Reproduction steps:
1. Through the Terminal navigate to the user's attached project folder and enter the command "xattr -r -d com.apple.quarantine ."
2. Open the project
3. Select DefaultGameSettings.asset file in Assets > DS.Game.ChaosControl > Data > SaveProfiles and in the Inspector window set General_Language Code field value to 'EN' (to avoid errors)
4. Open Build Settings, make sure that Target platform is set to macOS and enable Development Build, Script Debugging, and Wait For Managed Debugger
5. Open Player Setting and make sure that Scripting Backend is set to IL2CPP
6. Build And Run the project and wait until Debug window appears but don't press the "Ok" button
7. In the Main Menu Bar press Assets > Open C# Project
8. Add breakpoints at:
Line 246 of ChaosControl.cs in Assets > DS.Game.ChaosControl > Scripts > Application
Line 204 of SaveSystem.cs in Assets > DS_Packages > DS.Tech.Saves > Runtime
Line 54 of CloudKitGetDataRequest.cs in Assets > DS.Tech.Saves.HovelHouse
9. On the top of Visual Studio press Run > Attach to Process... and attach Unity Player
10. Press the "Ok" button mentioned in the 6th step
11. After running into the 1st breakpoint on the CloudKitGetDataRequest.cs, hover the mouse pointer over "localSaveData" and "cloudSaveData" and see how many bytes they take
12. Press Play and after running into the 2nd breakpoint on the SaveSystem.cs, hover the mouse pointer over "localData" and "cloudData" in the 201st line and see how many bytes they take
13. Press Play and after running into the 3rd breakpoint on the ChaosControl.cs, hover the mouse pointer over "localData" and "cloudData" in the 244th line and see how many bytes they take

Expected result: "localSaveData"/"localData" and "cloudSaveData"/"cloudData" is the same from steps 11 to 13
Actual result: "cloudData" becomes Null on the 13th step

Reproducible with: 2020.3.32f1, 2021.2.19f1, 2022.1.0b15
Could not test with: 2019.4.37f1, 2022.2.0a9 (errors after opening the project)

Notes:
- "cloudSaveData" and "cloudData" may vary depending on the version but they should always be equal to each other
- On 2021.2.19f1, 2022.1.0b15 both variables are Null on the 12th step

  1. Resolution Note (fix version 2022.2):

    Fixed in: ​​​​​​​2022.2.0a15

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.4f1

  3. Resolution Note (fix version 2021.3):

    Fixed in: 2021.3.4f1

  4. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.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.