Skip to content

Android Fish Tornado demo crashes on USB Keyboard hot-unplug #1933

Open
@Seismal

Description

@Seismal

To reproduce.

  1. Load demo on Android device (tested on Android N and O).
  2. Plugin USB keyboard (tested on NVIDIA Shield and Nexus 6P).
  3. Verify keyboard is working.
  4. Launch demo and wait a moment.
  5. Unplug keyboard.
  6. Notice crash.

Logcat.
11-17 17:52:02.420 I/cinder ( 4240): |info | cinder::vk::UniformLayout cinder::vk::extractUniformlayout(std::vector<std::pair<VkPipelineShaderStageCreateInfo*, const std::basic_string*> >, std::function<std::basic_string(const std::basic_string&)>)[565] Padded uniform block ciBlock1T from 56 bytes to 64 bytes
11-17 17:52:02.420 F/libc ( 4240): Invalid address 0x2053202140 passed to free: value not allocated
11-17 17:52:02.420 F/libc ( 4240): Fatal signal 6 (SIGABRT), code -6 in tid 4261 (Thread-3)
11-17 17:52:02.420 W/ ( 202): debuggerd: handling request: pid=4240 uid=10082 gid=10082 tid=4261
11-17 17:52:02.482 F/DEBUG ( 4263): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-17 17:52:02.482 F/DEBUG ( 4263): Build fingerprint: 'NVIDIA/darcy/darcy:7.0/NRD90M/2427168_1006.0842:userdebug/release-keys'
11-17 17:52:02.483 F/DEBUG ( 4263): Revision: '0'
11-17 17:52:02.483 F/DEBUG ( 4263): ABI: 'arm64'
11-17 17:52:02.483 F/DEBUG ( 4263): pid: 4240, tid: 4261, name: Thread-3 >>> org.libcinder.samples.vulkan_explicit.fishtornado <<<
11-17 17:52:02.483 F/DEBUG ( 4263): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-17 17:52:02.490 F/DEBUG ( 4263): Abort message: 'Invalid address 0x2053202140 passed to free: value not allocated'
11-17 17:52:02.490 F/DEBUG ( 4263): x0 0000000000000000 x1 00000000000010a5 x2 0000000000000006 x3 0000000000000008
11-17 17:52:02.490 F/DEBUG ( 4263): x4 00000020536cf000 x5 0000000000000000 x6 8000000000808080 x7 0000000000000008
11-17 17:52:02.490 F/DEBUG ( 4263): x8 0000000000000083 x9 ffffffffffffffdf x10 0000000000000000 x11 0000000000000001
11-17 17:52:02.491 F/DEBUG ( 4263): x12 ffffffffffffffff x13 0000000000000000 x14 0000000000000000 x15 0019107bf4e0dde6
11-17 17:52:02.491 F/DEBUG ( 4263): x16 00000020364faed0 x17 00000020364a42a4 x18 00000000ffffffff x19 0000002039c3d4f8
11-17 17:52:02.491 F/DEBUG ( 4263): x20 0000000000000006 x21 0000002039c3d450 x22 0000000000000002 x23 0000002036505800
11-17 17:52:02.491 F/DEBUG ( 4263): x24 000000203650586c x25 0000002039c3ad70 x26 0000000000000001 x27 0000002039c3ad68
11-17 17:52:02.491 F/DEBUG ( 4263): x28 0000000000000080 x29 0000002039c3aa60 x30 00000020364a174c
11-17 17:52:02.492 F/DEBUG ( 4263): sp 0000002039c3aa40 pc 00000020364a42ac pstate 0000000060000000
11-17 17:52:02.510 F/DEBUG ( 4263):
11-17 17:52:02.510 F/DEBUG ( 4263): backtrace:
11-17 17:52:02.510 F/DEBUG ( 4263): #00 pc 000000000006b2ac /system/lib64/libc.so (tgkill+8)
11-17 17:52:02.510 F/DEBUG ( 4263): #1 pc 0000000000068748 /system/lib64/libc.so (pthread_kill+64)
11-17 17:52:02.510 F/DEBUG ( 4263): #2 pc 0000000000023ca8 /system/lib64/libc.so (raise+24)
11-17 17:52:02.511 F/DEBUG ( 4263): #3 pc 000000000001c72c /system/lib64/libc.so (abort+52)
11-17 17:52:02.511 F/DEBUG ( 4263): #4 pc 0000000000020cb4 /system/lib64/libc.so (__libc_fatal+104)
11-17 17:52:02.511 F/DEBUG ( 4263): #5 pc 000000000008fafc /system/lib64/libc.so (ifree+1304)
11-17 17:52:02.511 F/DEBUG ( 4263): #6 pc 000000000008fb80 /system/lib64/libc.so (je_free+128)
11-17 17:52:02.511 F/DEBUG ( 4263): #7 pc 00000000002f6a08 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder2vk20extractUniformlayoutESt6vectorISt4pairIP31VkPipelineShaderStageCreateInfoPKSsESaIS7_EESt8functionIFSsRS5_EE+1204)
11-17 17:52:02.512 F/DEBUG ( 4263): #8 pc 00000000002f76f0 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder2vk10ShaderProg10initializeERKNS1_6FormatE+1464)
11-17 17:52:02.512 F/DEBUG ( 4263): #9 pc 00000000002f79c8 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder2vk10ShaderProgC1ERKNS1_6FormatEPNS0_6DeviceE+116)
11-17 17:52:02.512 F/DEBUG ( 4263): #10 pc 00000000002f7a58 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder2vk10ShaderProg6createERKNS1_6FormatEPNS0_6DeviceE+64)
11-17 17:52:02.512 F/DEBUG ( 4263): #11 pc 0000000000244418 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN14FishTornadoApp11loadShadersEv+928)
11-17 17:52:02.512 F/DEBUG ( 4263): #12 pc 000000000024682c /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN14FishTornadoApp5setupEv+552)
11-17 17:52:02.512 F/DEBUG ( 4263): #13 pc 000000000025cef4 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder3app7AppBase14privateSetup__Ev+52)
11-17 17:52:02.513 F/DEBUG ( 4263): #14 pc 0000000000255a1c /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder3app14AppImplAndroid5setupEv+36)
11-17 17:52:02.513 F/DEBUG ( 4263): #15 pc 000000000025546c /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder3app10AppAndroid6launchEv+60)
11-17 17:52:02.513 F/DEBUG ( 4263): #16 pc 000000000025cf60 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder3app7AppBase13executeLaunchEv+36)
11-17 17:52:02.513 F/DEBUG ( 4263): #17 pc 000000000023dfa0 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder3app10AppAndroid12deferredMainI14FishTornadoAppEEvRKSt10shared_ptrINS0_8RendererEEPKcP11android_appRKSt8functionIFvPNS1_8SettingsEEE+240)
11-17 17:52:02.513 F/DEBUG ( 4263): #18 pc 000000000023cb54 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZNSt17_Function_handlerIFvvESt5_BindIFPFvRKSt10shared_ptrIN6cinder3app8RendererEEPKcP11android_appRKSt8functionIFvPNS4_10AppAndroid8SettingsEEEES6_SA_SC_SI_EEE9_M_invokeERKSt9_Any_data+32)
11-17 17:52:02.513 F/DEBUG ( 4263): #19 pc 0000000000259cf0 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZNKSt8functionIFvvEEclEv+24)
11-17 17:52:02.514 F/DEBUG ( 4263): #20 pc 0000000000258b88 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so (_ZN6cinder3app19EventManagerAndroid16callDeferredMainEv+44)
11-17 17:52:02.514 F/DEBUG ( 4263): #21 pc 0000000000254e40 /data/app/org.libcinder.samples.vulkan_explicit.fishtornado-1/lib/arm64/libFishTornado.so
11-17 17:52:02.649 W/ActivityManager( 676): Force finishing activity org.libcinder.samples.vulkan_explicit.fishtornado/org.libcinder.samples.fishtornado.FishTornadoActivity

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions