Search Issue Tracker
By Design
Votes
0
Found in
2021.3.37f1
2022.3.26f1
6000.0.0f1
7000.0.0a1
Issue ID
UUM-71817
Regression
No
[Android] Player crashes when using IL2CPP Scripting Backend and accesing memory through a long pointer
How to reproduce:
1. Open the “IN_75766” project
2. Open the “SampleScene”
3. In the Build Settings change Build Target to Android and add open scenes
4. In the “Run Device” dropdown, select the desired device
5. Press Build And Run
Expected result: Player doesn’t crash
Actual result: Player crashes
Reproducible with: 2021.3.37f1, 2022.3.26f1, 6000.0.0f1
Testing environment: Windows 10 Pro
Not reproducible on: No other environment tested
Reproducible on these devices:
VLNQA00178, Xiaomi Redmi Note 4 (Redmi Note 4), Android 6.0, CPU: MediaTek Helio X20 MT6797M, GPU: Mali-T880
VLNQA00267, Samsung Galaxy S10+ (SM-G975F), Android 12, CPU: Exynos 9 (9820), GPU: Mali-G76
VLNQA00521, Samsung Galaxy S22 Ultra (SM-S908U), Android 12, CPU: Snapdragon 8 Gen 1 (SM8450), GPU: Adreno (TM) 730
Not reproducible on these devices:
VLNQA00357 iPhone 12 Mini
Notes:
- Not reproducible on Mono Scripting Backend
- Not reproducible on Windows Standalone Platform
- Not reproducible on macOS Standalone Platform (user mentioned)
- Not reproducible on iOS Platform
First lines of a Stack Trace:
{noformat}#00 pc 00ac8c74 /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libil2cpp.so (BuildId: 7121980b197d8e8f61b203a0f19d77fd070613da)
#01 pc 00ac87a0 /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libil2cpp.so (BuildId: 7121980b197d8e8f61b203a0f19d77fd070613da)
#02 pc 00c911fc /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libil2cpp.so (BuildId: 7121980b197d8e8f61b203a0f19d77fd070613da)
#03 pc 00c9113c /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libil2cpp.so (BuildId: 7121980b197d8e8f61b203a0f19d77fd070613da)
#04 pc 0037a93d /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+92) (BuildId: 842079f9703120e5)
#05 pc 00387583 /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+94) (BuildId: 842079f9703120e5)
#06 pc 00392a8b /data/app/~~rAKv2XAcYXsWAmIxKAR85g==/com.DefaultCompany.LongPtrIL2CPPCrash-Bh7l4D0IxyVvDV9xTn6NYg==/lib/arm/libunity.so (MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingExceptionPtr*)+1606) (BuildId: 842079f9703120e5){noformat}
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
- WebGL build is missing "malloc" and "free" functions when passing "-sERROR_ON_UNDEFINED_SYMBOLS=0" to emscriptenArgs
- UI Toolkit Slider element is not controlled correctly when using a gamepad controller
- Audio output is of low volume when the Speaker Mode is set to Quad and the Audio Source in the Scene is behind the Camera
- A user gets an error "Failed to import package with error: Cannot import package in play mode." when tries to import TMP essentials, examples or extras
- The Particle System's ShowOnlySelected function doesn't work when toggled via a shortcut
Resolution Note:
The fact that it's working on some scripting backend/CPU combinations doesn't prove anything. It's just wrong trying to access non-aligned memory.