Search Issue Tracker

In Progress

Under Consideration for 6000.0.X, 6000.1.X

Fixed in 6000.2.0b12

Fix In Review for 6000.3.0a4

Votes

20

Found in

2023.2.0a22

6000.0.33f1

6000.1.0b1

6000.3.0a1

Issue ID

UUM-95408

Regression

Yes

[Android]Crash on lib/arm64/libil2cpp.so when Unity Analytics and Engine Code stripping are enabled

-

Reproduction steps:
1. Open the attached “ASDQWE” project
2. Connect the project to a Unity Analytics Project
3. Open the Project Settings (Edit > Project Settings)
4. In the Project Settings Window, toggle the Strip Engine Code checkmark (Player > Other > Optimisation > Strip Engine Code)
5. Build and run the Android Player (File > Build And Run)
6. Observe the Player

Expected result: The Player does not crash
Actual result: The Player crashes on start-up

Reproducible with: 5.1.1 (2023.2.0a22), 6.0.2 (6000.0.33f1, 6000.1.0b1)
Not reproducible with: 6.0.2 (2021.3.47f1, 2022.3.55f1), 5.0.2 (2023.1.18f1)
Could not test with: 2023.2.0a1 - 2023.2.0a21 (Multiple “error CS0246” compilation errors)

Reproducible environment: MacOS 15.2 Intel, Windows 11 (user’s)
Not reproducible environment: No other environment tested

Reproducible on:
VLNQA00175, Samsung Galaxy Note9 (SM-N960F), Android 10, CPU: Exynos 9 (9810), GPU: Mali-G72
VLNQA00519, Google Pixel 4 (Pixel 4), Android 12, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00372, Samsung SM-G991U (SM-G991U), Android 12, CPU: Snapdragon 888, GPU: Adreno (TM) 660

Could not test on:
VLNQA00395, iPhone 13, CPU: Apple A15 Bionic, OS: 18.2 (“Internal build system error” build error)

Workaround: Disable the Strip Engine Code

First few lines of the stack trace:
#00 pc 0000000002bba174 lib/arm64/libil2cpp.so
#01 pc 000000000094f758 lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+68)
#02 pc 0000000000966f38 lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+136)
#03 pc 0000000000ca19a4 lib/arm64/libunity.so (Scripting::UnityEngine::RemoteSettingsProxy::RemoteSettingsBeforeFetchFromServer(ScriptingExceptionPtr*)+68)
#04 pc 00000000006905f8 lib/arm64/libunity.so (CallbackArray::Invoke()+52)

  1. Resolution Note (fix version 6000.3.0a4):

    Update com.unity.services.cloud-diagnostics to 1.0.11. Fix crash on startup caused by a code stripping issue in UnityAnalyics module when "Strip Engine Code" setting is enabled on Android and the com.unity.services.cloud-diagnostics package is enabled but the analytics package is not.

Comments (4)

  1. rmel10

    Jun 25, 2025 13:24

    Just use a link.xml file:

    <linker>
    <assembly fullname="UnityEngine.UnityAnalyticsModule" preserve="all"/>
    </linker>

    It worked for me. It preserve the code from unity analytics

  2. MacroPinch

    Jun 23, 2025 12:17

    It's still there in 6000.1.8 known issues but at the end of the list.

  3. Zeeppo-Games

    Jun 18, 2025 14:59

    It's been removed from 6000.1.8 known issues notes. What does it mean? It will be ignored or it has been solved?

  4. mathiasdam-laerdal

    May 13, 2025 12:09

    Also experiencing this issue on 6000.0.43f1

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.