Search Issue Tracker

Active

Under Consideration for 2021.3.X

Votes

0

Found in

2021.3.34f1

Issue ID

UUM-74912

Regression

No

[Android] The Player crashes on "il2cpp::vm::Object::AllocatePtrFree"

--

-

Steps to reproduce:
1. Unzip the “ReproProj” folder
2. Ensure that the 1.8.0_191 Java version is installed
3. Create or edit the gradle.properties file in the /Users/*User*/.gradle folder (see comments what to write)
4. Open the terminal of the root of the “ReproProj” project folder
5. Modify the gradle.properties that is at the root of the project and modify the UNITY_CMD_PATH to match the path with your unity exec
6. In the Terminal write {{chmod +x ./gradlew}}
7. Build the project using {{./gradlew buildDebugAndroid}} in the Terminal
8. Build a second time if there are errors in Unit Tests
9. Run the /<RootProject>/build/DebugAndroid-12.7.2-<…>/artifacts apk on the device

Expected result: The Player doesn’t crash
Actual result: The Player crashes

Reproducible with: 2021.3.34f1
Could not test with: 2021.3.35f1+ (Scripts have compiler errors)

Testing environment: macOS Sonoma 14.5 (Intel), Windwos 10 (by user)
Not reproducible on: No other environment tested

Reproducible with these devices:
Motorola Moto G Play (2023) (by user)
VLNQA00032 - Motorola Moto X (2014) (XT1092), CPU: Snapdragon 801 MSM8974AC, GPU: Adreno 330, OS: 5.1
VLNQA00036 - Motorola Moto G (XT1032) (XT1032), CPU: Snapdragon 400 MSM8226, GPU: Adreno 305, OS: 5.1
VLNQA00069 - Motorola Moto G 4 (Moto G (4)), CPU: Snapdragon 617 MSM8952, GPU: Adreno 405, OS: 7.0

Not reproducible with these devices:
VLNQA00336 - HUAWEI Y6p (MED-LX9N), CPU: MediaTek MT6762R, GPU: PowerVR Rogue GE8320, OS: 10
VLNQA00526 - samsung Galaxy A12 (SM-A125F), CPU: Mediatek MT6765 Helio P35 (12nm), GPU: PowerVR Rogue GE8320, OS: 12
VLNQA00287 - Motorola moto g(7) power (moto g(7) power), CPU: Snapdragon 625 MSM8953, GPU: Adreno 506, OS: 9

Note: Unity version has to be downloaded from Unity Hub, otherwise, it will fail on DirectoryNotFound

A few first lines of the stacktrace:

{noformat}#00 pc 00539330 (il2cpp::vm::Object::AllocatePtrFree(unsigned int, Il2CppClass*)
#01 pc 01b041e8 (MemoryStream_ToArray_m874C5611A17891E01B48ED21898B8A7DA3A26CD7 at /Users/aleksas.ragelis/Downloads/TriPeaks_12.7.2 2/build/DebugAndroid-12.7.2-102672/tmp/step_002_DebugAndroid_Build/gradle-project/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput/mscorlib__19.cpp:14178)
#02 pc 0255b590 (VirtualFuncInvoker0<ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031*>::Invoke(unsigned short, Il2CppObject*) at /Users/aleksas.ragelis/Downloads/TriPeaks_12.7.2 2/build/DebugAndroid-12.7.2-102672/tmp/step_002_DebugAndroid_Build/gradle-project/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput/PubTech.Networking.Runtime.cpp:64)
#03 pc 01bda4e8 (ContextCallback_Invoke_m872CCCD40428B88C2612772491BE5157895B5F61_inline(ContextCallback_tE8AFBDBFCC040FDA8DA8C1EEFE9BD66B16BDA007*, Il2CppObject*, MethodInfo const*)
#04 pc 01bda2d4 (ExecutionContext_Run_m6E5E07E0131DA97C6BC235754A0682CFFACE7BF8 {noformat}

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.