Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 2017.1.X, 2017.2.X



Found in


Issue ID




[Android] An app crashes when BinaryFormatter is serialized and Stripping Level is enabled



Reproduction steps:
1. Open the attached project;
2. Set Stripping Level to Strip Assemblies in Player Settings;
3. Build the scene "New" on a device;
4. Open the app on the device and click the white button;

Actual result: the app crashes.
Expected result: the app should not crash.

Note: if Stripping Level is disabled, the crash does not appear.

Reproduced with: 2017.1.0a2, 2017.1.0f3, 2017.2.0a4
Not reproducible with: 5.5.4p2, 5.6.2p3
Regression introduced in 2017.1.0a2

Note#2: from 2017.2.0b1 version, the project is not built because of the error:
"UnauthorizedAccessException: Access to the path "E:\Downloads\case_930414-New_Unity_Project\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" is denied.
System.IO.File.Delete (System.String path)"

Devices under test:

Motorola Moto G (4)*, OS:6.0.1, CPU:armeabi-v7a, GPU:Adreno (TM) 405, Build:motorola/athene/athene:6.0.1/MPJ24.139-63/64:user/release-keys

Verizon SM G930V*, OS:7.0, CPU:arm64-v8a, GPU:Adreno (TM) 530, Build:Verizon/heroqltevzw/heroqltevzw:7.0/NRD90M/G930VVRU4BQA2:user/release-keys

Google Pixel XL*, OS:O, CPU:arm64-v8a, GPU:Adreno (TM) 530, Build:google/marlin/marlin:O/OPP2.170420.019/4021594:user/release-keys

Fixed in 2017.3.0a5

Comments (6)

  1. shanta3220

    Oct 23, 2017 17:42

    my App doesn't crash but settings get lost! using Unity 2017.2.0f3.

  2. ShadowBiz

    Sep 09, 2017 21:52

    Same issue on Nexux 5
    Unity 2017.1.1f1

  3. Tom-Atom

    Sep 04, 2017 08:21

    Can confirm it also happens in Unity 2017.1.0p5 (device ASUS Memo Pad)

  4. circumgames

    Aug 01, 2017 13:58

    Having the same issue.

    App also crashes if Stripping Level is set to Strip Byte Code in Player Settings;

    Tested on:
    - Nexus 7 2013, Android 6.0.1
    - Asus Padfone S, Andoid 6.0.1

  5. Icodebot

    Jul 28, 2017 23:19

    Having the same issue

  6. Seanm07

    Jul 28, 2017 13:17

    This issue also happens in Unity 2017.1.0p1

    Tested on the Nexus 9 running Android 6.0.1

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.