Search Issue Tracker

Fixed in 2018.2.X

Fixed in 2017.1.X, 2017.2.X, 2017.3.X, 2018.1.X



Found in


Issue ID




[Android] Crash on builds with .NET 4.6 scripting runtime selected when null reference exception appears



To reproduce:

1. Download and open attached "" project.
2. Build and run for android device.

Expected result: Application loads up correctly, without crashing.
Actual result: Application crashes instantly after it's loaded.

Reproduced with: 2017.3.0b2, 2017.2.0f2, 2017.1.1p3, 2017.1.0a6
Not reproduced on: 2017.1.0a5 - new .NET4.6 not present

Devices under test:

Reproduced with:
Lge LG H815 (G4)*, OS:6.0, CPU:arm64-v8a, GPU:Adreno (TM) 418,

Samsung SM G800F (Galaxy S5 Mini)*, OS:6.0.1, CPU:armeabi-v7a, GPU:Mali-400 MP, Build:samsung/kminiltexx/kminilte:6.0.1/MMB29K/G800FXXU1CQA1:user/release-keys

Google Pixel*, OS:8.0.0, CPU:arm64-v8a, GPU:Adreno (TM) 530,

Not reproduced with:
HUAWEI EVA L19*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T880,

iPad Mini 3 (iOS 10.3.2)

Notes: Calling "throw new NullReferenceException()" does not trigger the crash. If Scripting runtime version is set to Stable( .Net 3.5 Equivalent), everything works as expected. Does not happen when Scripting backend is set to IL2CPP.

Comments (12)

  1. rochbordan11

    Aug 11, 2020 10:00!/;area=summary;u=341770;u=4039!/;area=summary;u=341718!/!/!/!/

  2. mercygaleria

    Jul 28, 2020 09:33;u=245304;u=19154;u=556429;;u=245305;;u=19155;u=556432;;u=556433;u=245302;;u=556434,,,,

  3. renaravv

    Jul 15, 2020 17:56

  4. wikieden

    May 21, 2018 12:40

    This bug can be reproduce in some env, like if you are using universalmediaplayer plugin(which has a native library. if you are using this, null ref will make app crash with no hint in android.

    I have tried 2017.2.2p1, 2017.4.3f1,alll crashed, but all ok on il2cpp backend which is strange. And IL2CPP have lot's of other problems.
    Plz Fix it.

  5. CerberusInteractive-Morgan

    May 16, 2018 16:49

    This is apparent in unity 2018.1.0f2 ):

  6. chaosmaker

    Feb 26, 2018 11:25

    NOT fixed in 2017.2.1p4
    works ok in empty new project
    in our project we don't use 4.6 yet we are not able to see null ref exceptions or debug scripts... already 3 days late to ship android build...


  7. Brandon-BBstudio

    Feb 09, 2018 06:07

    Not fixed on 2017.3.1f1

  8. eidu-flx

    Jan 19, 2018 20:53

    Seems to still be a problem on Unity 2017.3.0f3.

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.