Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2021.3.X, 2022.1.X

Planned for 2020.3.X

Votes

0

Found in

2020.3

2021.1.16f1

2021.2

2022.1

Issue ID

1394782

Regression

Yes

[Android] Crash with signal 11 caused by null pointer dereference on Android device when using Vulkan Graphics API

Android

-

Reproduction steps:
1. Open the attached user's Unity project "ProjectBirdWar.zip"
2. Go to File > Build Settings and switch to Android Platform
3. Go to Player Settings and make sure that Vulkan Graphics API is selected
4. Go back to Build Settings
5. Build and install the application on a device
6. Observe the application on a device

Expected result: The application does not crash
Actual result: The application crash

Reproducible with: 2020.3.15f1, 2020.3.27f1, 2021.2.11f1, 2022.1.0b6
Not reproducible with: 2019.4.35f1
Could not test with: 2020.3.14f1 (Build fails), 2022.2.0a4 (devices thrown Error message: "Unable to initialize the Unity Engine")

First lines of Development Build stacktarce:
Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x70
Error CRASH Cause: null pointer dereference
Error CRASH x0 0000000000000058 x1 0000006f9a0cac7e x2 0000006f91000000 x3 0000006faa3b72e8
Error CRASH x4 0000006faa3b72c8 x5 0000000000000004 x6 000000000029b6f8 x7 000000000029b9f8
Error CRASH x8 0000000000000000 x9 3f894b5f6114989c x10 3f894b5f6114989c x11 00000000000000ca

Reproduces with these devices:
VLNQA00147 - Razer Phone (Cheryl), OS: 8.1.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno 540
VLNQA00277 - Asus ROG Phone (ASUS_Z01QD), OS: 9.0.0, CPU: Snapdragon 845 SDM845, GPU: Adreno 630
VLNQA00263 - Google Pixel 3 (Pixel 3), OS: 12.0.0, CPU: Snapdragon 845, GPU: Adreno 630
VLNQA00006 - Samsung Galaxy S7 (SM-G930F), OS: 8.0.0, CPU: Exynos 8 Octa (8890), GPU: Mali-T880
VLNQA00404 - Galaxy Z Flip3 5G (SM-F711B), OS: 11, CPU: Snapdragon 888, GPU: Adreno 660
VLNQA00121 - Samsung Galaxy S9 (SM-G960F), OS: 9.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00219 - Samsung Galaxy Note9 USA (SM-N960U), OS: 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno 630

Notes:
- Issue is not reproducible when using OpenGLES3 Graphics API
- Only Razer Phone (Cheryl) and Asus ROG Phone (ASUS_Z01QD) devices prints logs when the application crashes
- When building the project with 2020.3.14f1 and versions below - the build fails

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a9

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b15

  3. Resolution Note (fix version 2021.3):

    Fixed in: 2021.3.1f1

Comments (4)

  1. spikyworm5

    May 05, 2022 18:59

    Update: We found that it started after adding the "Unity Mobile Notifications package". I'm not sure how it's related but removing this package solved it.

    "com.unity.mobile.notifications": "2.0.1"

    Did anyone else experience the same behavior?

  2. spikyworm5

    May 05, 2022 10:08

    Same here.. Unity 2021.3.1f and Xiaomi POCO X3 Pro

    2022/05/05 12:17:16.056 6053 6154 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2022/05/05 12:17:16.056 6053 6154 Error CRASH Version '2021.3.1f1 (3b70a0754835)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    2022/05/05 12:17:16.056 6053 6154 Error CRASH Build fingerprint: 'POCO/vayu_global/vayu:11/RKQ1.200826.002/V12.5.9.0.RJUMIXM:user/release-keys'
    2022/05/05 12:17:16.056 6053 6154 Error CRASH Revision: '0'
    2022/05/05 12:17:16.056 6053 6154 Error CRASH ABI: 'arm64'
    2022/05/05 12:17:16.056 6053 6154 Error CRASH Timestamp: 2022-05-05 12:17:16+0300
    2022/05/05 12:17:16.056 6053 6154 Error CRASH pid: 6053, tid: 6154, name: UnityGfxDeviceW >>> com.some.package <<<
    2022/05/05 12:17:16.056 6053 6154 Error CRASH uid: 10327
    2022/05/05 12:17:16.056 6053 6154 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    2022/05/05 12:17:16.056 6053 6154 Error CRASH Cause: null pointer dereference
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x0 0000000000000000 x1 0000000000000905 x2 0000000000000001 x3 0000000000000905
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x4 0000000000000438 x5 00000000ffffffff x6 b400007a6c812590 x7 b400007a7be1f920
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x8 0000000000000438 x9 b400007a6ca78aa0 x10 0000000000000034 x11 0000000000000905
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x12 0000000000000000 x13 0000000000000001 x14 0000000000000001 x15 0000000000000090
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x16 b400007a6c6dd610 x17 0000000000000438 x18 0000007928df6000 x19 0000000000000000
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x20 0000000000000000 x21 b400007a6c992800 x22 b4000079f3de0680 x23 0000000000000001
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x24 b4000079f3b41c00 x25 b400007908a10540 x26 0000000000000000 x27 0000000000000000
    2022/05/05 12:17:16.056 6053 6154 Error CRASH x28 b4000079f3bfdf00 x29 000000792921c430
    2022/05/05 12:17:16.056 6053 6154 Error CRASH sp 000000792921c310 lr 0000007929eafab8 pc 0000007929eafb4c
    2022/05/05 12:17:16.056 6053 6154 Error CRASH backtrace:
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #00 pc 0000000000090b4c /vendor/lib64/hw/vulkan.adreno.so (BuildId: 59f62a811f5f48cfa7c1d8c7527d1093)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #01 pc 00000000000791c4 /vendor/lib64/hw/vulkan.adreno.so (qglinternal::vkCmdBeginRenderPass(VkCommandBuffer_T*, VkRenderPassBeginInfo const*, VkSubpassContents)+828) (BuildId: 59f62a811f5f48cfa7c1d8c7527d1093)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #02 pc 000000000069a668 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #03 pc 0000000000674574 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #04 pc 0000000000674688 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #05 pc 00000000006590b4 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #06 pc 0000000000653ec8 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #07 pc 000000000074e9c8 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #08 pc 0000000000756df8 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #09 pc 000000000074e688 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #10 pc 0000000000295834 /data/app/~~q8fjysOdFdjyR_Mk8EGl8Q==/com.some.package-BNcdoR7WAQoNh_n4huQiog==/lib/arm64/libunity.so (BuildId: 1015cea448d8bf32d05ee36f004993df87854295)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #11 pc 00000000000eb868 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: a790cdbd8e44ea8a90802da343cb82ce)
    2022/05/05 12:17:16.056 6053 6154 Error CRASH #12 pc 000000000008ba88 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a790cdbd8e44ea8a90802da343cb82ce)

  3. BBO_Lagoon

    May 02, 2022 09:06

    Unity 2021.3.1 running Android Vulkan on a Quest 2 crashes the application too.

  4. MaskedMouse

    Apr 26, 2022 08:00

    "fixed". Unity 2021.3.1 running Android Vulkan on a Quest 1 crashes the application. Guess what, null pointer dereference. So not really fixed

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.