Search Issue Tracker
Fixed
Fixed in 2020.3.41f1, 2021.3.12f1, 2022.1.23f1, 2022.2.0b11, 2023.1.0a15
Votes
12
Found in
2020.3.39f1
2021.3.9f1
2022.1.15f1
2022.2.0b6
2023.1.0a9
Issue ID
UUM-12875
Regression
No
[Android] SByte type is considered to be not primitive when compiling IL2CPP code
How to reproduce:
1. Open the user’s attached “Buffer.BlockCopy Bug” project
2. Build and Run the “SampleScene” Scene on Android
3. Observe the Player
Expected result: “Block copy successful” is printed out
Actual result: ArgumentException is thrown
Reproducible with: 2020.3.39f1, 2021.3.9f1, 2022.1.15f1, 2022.2.0b6, 2023.1.0a9
Reproduced on: macOS 12.5 (Intel)
Reproducible with devices:
VLNQA00472 - Samsung Galaxy A52 (SM-A525F), CPU: Snapdragon 720G (SM7125), GPU: Adreno 618, OS: 12
VLNQA00414 - Galaxy Note10+ 5G (SM-N976V), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 9
VLNQA00409 - Galaxy Z Fold3 5G (SM-F926B), CPU: Snapdragon 888, GPU: Adreno 660, OS: 11
VLNQA00331 - HUAWEI P20 lite (ANE-LX1), CPU: HiSilicon Kirin 659, GPU: Mali-T830, OS: 9
VLNQA00268 - Samsung Galaxy S10+ (SM-G975F), CPU: Exynos 9 9820, GPU: Mali-G76, OS: 10.0.0
Thrown error message:
ArgumentException: Object must be an array of primitives.
at System.Buffer.ByteLength (System.Array array) \[0x00000] in <00000000000000000000000000000000>:0
at System.Buffer.BlockCopy (System.Array src, System.Int32 srcOffset, System.Array dst, System.Int32 dstOffset, System.Int32 count) \[0x00000] in <00000000000000000000000000000000>:0
at BufferBlockCopyIssue.Start () \[0x00000] in <00000000000000000000000000000000>:0
-
johnluxford
Oct 06, 2022 16:29
Just ran into this as well after upgrading from 2020.3.36f1 to 2020.3.40f1 which we did to use Process-for-IL2CPP due to the lack of Process support in the IL2CPP compiler. Unfortunately for us, this could have a big impact on an upcoming product launch.
-
smoothics
Oct 01, 2022 19:04
It's also in 2021.3.11f1.
-
Radiogaga84
Sep 07, 2022 12:33
I experienced this issue in 2021.3.9f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
Resolution Note (fix version 2023.1.0a15):
Fixed in 2023.1.0a15
Resolution Note (fix version 2022.2.0b11):
Fixed in 2022.2.0b11
Resolution Note (fix version 2022.1.23f1):
Fixed in 2022.1.23f1
Resolution Note (fix version 2021.3.12f1):
Fixed in 2021.3.12f1
Resolution Note (fix version 2020.3.41f1):
Fixed in 2020.3.41f1