Skip to content

agdktunnel crashes in simple_renderer::RenderPassVk::BeginRenderPass(), Google Pixel 2 Android 10 #96

@todi1856

Description

@todi1856

Hey,

#94 introduced a crash in agdktunnel on Google Pixel 2 Android 10

--------- beginning of crash
2025-07-07 12:28:26.769  1275-1314  WindowManager           system_server                        I  Screen frozen for +350ms due to Window{dc45c2 u0 StatusBar}
2025-07-07 12:28:27.392  7287-7335  libc                    com.google.sample.agdktunnel         A  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf0 in tid 7335 (Thread-3), pid 7287 (mple.agdktunnel)
2025-07-07 12:28:27.449  7354-7354  DEBUG                   crash_dump64                         A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2025-07-07 12:28:27.449  7354-7354  DEBUG                   crash_dump64                         A  Build fingerprint: 'google/walleye/walleye:10/QP1A.191105.004/5908170:user/release-keys'
2025-07-07 12:28:27.449  7354-7354  DEBUG                   crash_dump64                         A  Revision: 'MP1'
2025-07-07 12:28:27.449  7354-7354  DEBUG                   crash_dump64                         A  ABI: 'arm64'
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A  Timestamp: 2025-07-07 12:28:27+0300
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A  pid: 7287, tid: 7335, name: Thread-3  >>> com.google.sample.agdktunnel <<<
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A  uid: 10330
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf0
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A  Cause: null pointer dereference
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x0  00000078d549c400  x1  0000000000000000  x2  0000000000000000  x3  0000000000000000
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x4  0000000000000000  x5  0000000000000001  x6  0000000000000001  x7  0000007876475610
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x8  0000000000000000  x9  00000078d5577000  x10 0000000000000002  x11 00000078d54e8884
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x12 00000078d54f9690  x13 0080210000000000  x14 0000200000000000  x15 0000200000000000
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x16 00000078d54809a0  x17 0000000000000000  x18 0000007875b6a000  x19 000000787647565c
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x20 0000007876475660  x21 00000078764755d0  x22 0000000000000000  x23 0000007876475610
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x24 00000078d549c400  x25 0000000000000000  x26 00000078d54f9690  x27 00000078d5580c00
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      x28 00000078d55ba600  x29 0000007876475520
2025-07-07 12:28:27.450  7354-7354  DEBUG                   crash_dump64                         A      sp  0000007876475200  lr  0000007877256364  pc  0000007877258be4
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A  
                                                                                                    backtrace:
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #00 pc 00000000000f8be4  /vendor/lib64/hw/vulkan.msm8998.so (BuildId: 3337afa6d52010b0415a3a502efa271e)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #01 pc 00000000000f6360  /vendor/lib64/hw/vulkan.msm8998.so (BuildId: 3337afa6d52010b0415a3a502efa271e)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #02 pc 00000000000c4c78  /vendor/lib64/hw/vulkan.msm8998.so (BuildId: 3337afa6d52010b0415a3a502efa271e)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #03 pc 00000000000c3990  /vendor/lib64/hw/vulkan.msm8998.so (BuildId: 3337afa6d52010b0415a3a502efa271e)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #04 pc 00000000000a2064  /vendor/lib64/hw/vulkan.msm8998.so (qglinternal::vkCmdBeginRenderPass(VkCommandBuffer_T*, VkRenderPassBeginInfo const*, VkSubpassContents)+236) (BuildId: 3337afa6d52010b0415a3a502efa271e)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #05 pc 000000000018d314  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (simple_renderer::RenderPassVk::BeginRenderPass()+712) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #06 pc 00000000001bc444  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (simple_renderer::RendererVk::SetRenderPass(std::__ndk1::shared_ptr<simple_renderer::RenderPass>)+200) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #07 pc 00000000001cd99c  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (GfxManager::SetMainRenderPass()+84) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #08 pc 00000000001f5a10  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (UiScene::DoFrame()+48) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #09 pc 00000000001ce7b0  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (LoaderScene::DoFrame()+912) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #10 pc 00000000001edf8c  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (SceneManager::DoFrame()+108) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #11 pc 00000000001d8c94  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (NativeEngine::DoFrame()+148) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #12 pc 00000000001f4584  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (TunnelEngine::GameLoop()+260) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #13 pc 00000000001c73ac  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (android_main+96) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #14 pc 00000000001fee20  /data/app/com.google.sample.agdktunnel-kYBIiSlFY4EsZxSrQU2-Sw==/base.apk!libagdktunnel.so (offset 0x1528000) (BuildId: f33097095813ab770f9d86f683c6f64aba77cf15)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #15 pc 00000000000e2364  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: b58d049709674405423a8d8de1a37f56)
2025-07-07 12:28:27.455  7354-7354  DEBUG                   crash_dump64                         A        #16 pc 0000000000083d98  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: b58d049709674405423a8d8de1a37f56)

Full log can be found here.
crash_vulkan.txt

Switching back to d765114 fixes the crash.

cc @natetrost

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions