Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 2017.1, 2017.2

Votes

5

Found in

2017.1.0f3

Issue ID

930414

Regression

Yes

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

Mobile

-

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. 4af448cf4827db18485aa4f3f36bfabe?d=mm

    shanta3220

    Oct 23, 2017 17:42

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

  2. E342a890260f8ca0d7792aed8d8386c2?d=mm

    ShadowBiz

    Sep 09, 2017 21:52

    Same issue on Nexux 5
    Unity 2017.1.1f1

  3. 3847f91aff142b386562a337623c649c?d=mm

    Tom-Atom

    Sep 04, 2017 08:21

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

  4. E3220184937343a6951f07f6d55850fa?d=mm

    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. 45fcf721e5c82e099bc6dd994088fa4f?d=mm

    Icodebot

    Jul 28, 2017 23:19

    Having the same issue

  6. 7aa4f6cf31b375017223dcc47a206af0?d=mm

    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.