Search Issue Tracker

Not Reproducible

Votes

19

Found in

2020.3

2020.3.0f1

Issue ID

1321798

Regression

No

[Android] Android crashes with signal 11 (SIGSEGV), code 2 (SEGV_ACCERR) when Unity is used as UaaL

Android

-

Steps to reproduce:
1. Download and unzip both "UnityCrashExample.zip" and "UnityProject.zip"
2. Open the "UnityProject.zip"
3. Export an Android project to "UnityCrashExample/UnityBuilds"
4. Open the "UnityCrashExample/UnityBuilds" project in the Android Studio
5. In the Android Studio Project tab select "unityLibrary"
6. In the top menu select "Build/Make Module 'UnityBuilds.unityLibrary'" (This might have problems with ndk version, read notes for fix)
7. After the build navigate to "UnityCrashExample/UnityBuilds/unityLibrary/build/outputs/aar" and copy the "unityLibrary-debug.aar" file (this was built by Android Studio)
8. Navigate to "UnityCrashExample/AndroidBinding/UnityBindings" delete the existing "unityLibrary-release.aar" and paste "unityLibrary-debug.aar"
9. Rename the "unityLibrary-debug.aar" to "unityLibrary-release.aar"
10. Open the "HelloUnity.sln" located in "UnityCrashExample/AndroidBinding" with Visual Studio(There might be a problems loading the project, read notes for a fix)
11. In VS->Solution Explorer tab right-click on "UnityBindings" and select "Rebuild"
12. After the build, navigate to "UnityCrashExample/AndroidBinding/UnityBindings/bin/Debug" and copy the two files there (they were rebuilt by VS in step 11)
13. Navigate to "UnityCrashExample/XamarinProject/UnityFormsPlayer.Droid" and paste the files from step 12
14. Open "UnityXamarin.sln" located in "UnityCrashExample\XamarinProject" with Visual Studio
15. In VS Solution Explorer tab set the "UnityFormsPlayer.Droid" to be a Startup Project
16. Connect an Android device to the pc
17. Build the project to the Android device from VS
18. On the phone press "Load Unity"

Expected results: The app works
Actual results: The app crashes

Reproducible with: 2020.3.5f1
Unable to test: 2018.4, 2019.4, 2021.1, 2021.2 (due to Android Studio project fails to build Unity as a Library)

Reproducible devices:
----------, Huawei - (ELS-NX9), Android 10, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00264, Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00279, Samsung Galaxy S10+ (SM-G975U), Android 9, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640

Notes:
- According to the user this does not reproduce with IOS
- Step 6 solution. If NDK is incorrect, Android Studio will offer to download the correct one in the console, as a blue hyperlinked NDK version, click on that to download
- Steps 10 solution. Visual Studio might need "Xamarin " installed. If it's not there open Visual Studio Installer, select modify, and install "Mobile development with .Net"
- The user has created a reproduction step video in the link in the edit field
- StackTrace from LogCat is attached in "StackTrace.txt"

Comments (1)

  1. Pequeno

    Jun 06, 2021 18:44

    Is this being worked on? We're still blocked on releasing our app on Android, cause this is happening.

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.