Search Issue Tracker

Fix In Review for 2019.3

Planned for 2019.2

Votes

16

Found in

2019.1.0a12

2019.1.10f1

2019.2

2019.3

Issue ID

1170543

Regression

Yes

[Android][IL2CPP] App crashes on 2019.1.0a12 and up on launch if old IL2CPP files from 2019.1.0a11 and below are backuped

Mobile

-

Reproduction steps:
1. Create a New Project in 2019.1.0a11 or below
2. Set the "Platform" to "Android", "Package Name" to "com.Case.Behaviour" and "Scripting Backend" to "IL2CPP"
3. Build the .apk file
4. "adb install" the application to the Android device
5. Completely exit the application after it finishes loading
6. In a cmd window write "adb shell bmgr backupnow com.Case.Behaviour" to create a new Backup of the application
7. Delete the application
8. Open the Project in 2019.1.0a12 or up
9. Build the .apk file
10. "adb install" the application to the Android device
11. Launch the application

Expected Result: App launches properly
Actual Result: App crashes because it's using old IL2CPP files from the last installation, creating an incompatibility

Reproduced with: 2019.3.0a10, 2019.2.0b10, 2019.1.10f1, 2019.1.0f1, 2019.1.0b1, 2019.1.0a14, 2019.1.0a12
Did not reproduce on: 2019.1.0a11, 2019.1.0a10, 2019.1.0a5, 2018.4.5f1, 2017.4.30f1

Note:
Make sure that in the Android devices, which is being used for the testing, the settings for "Backup" and "Automatic Restore" are enabled
Erasing the "Android/data/<bundle_id>" folder after the crash fixes the issue temporarily as Unity seems to recreate valid il2cpp files under this folder. If the app is deleted before a new backup is automatically generated, further installs will still be crashing

Repro Devices:
VLNQA00123, Google Pixel 2 XL (Pixel 2 XL), Android 9, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00216, Razer Phone 2 (Phone 2), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00257, Sony Xperia XZ Premium (G8141), Android 9, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00272, Samsung Galaxy S10+ (SM-G975U), Android 9, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00277, Asus ROG Phone (ASUS_Z01QD), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00096, Samsung Galaxy S8 (SM-G950F), Android 8.0.0, CPU: Exynos 9 Octa 8895, GPU: Mali-G71

Comments (4)

  1. E1f6972449a009e8a27e81552b5e14de?d=mm

    digideepak

    Aug 08, 2019 05:28

    This information will help, Thanks for sharing. To know more about Mobile news and technology updates do visit My Mobile Reviewer.

    https://www.mymobilereviewer.com/

    https://www.mymobilereviewer.com/best-bezel-less-display-phones/

    https://www.mymobilereviewer.com/extramovies/

  2. Abcf103768e747515c8a3a2733b4ccf1?d=mm

    TextusGames

    Aug 06, 2019 08:26

    Crash happens even if I change app bundle version number. That is bad, I can no longer update my app. (Unity 2019.1.11)

  3. 908c0c1508167ed52d866ba072839352?d=mm

    EGProject

    Jul 29, 2019 09:52

    We can't make an update more than a month because of the bug. Reproduced on all versions 2019.1.x and 2019.2 beta.

    https://fogbugz.unity3d.com/default.asp?1171153_ok8oj6uf451tiv94

  4. B14dd462e08dfe5447ff0cf312883642?d=mm

    ClockStone_Helmut

    Jul 26, 2019 01:54

    It apparently also happens if you change the Scripting Runtime Version in the same Unity version (without changing Unity versions).

    http://fogbugz.unity3d.com/default.asp?1172206_scr1q1dsptvh020s

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.