Skip to content

App crashes when switching on and off the screen #60

@buefox

Description

@buefox

Tutorial04 First Window, built on Android 10 and run in Pixel 3a.
Gradle version 3.5.1

Reproduce step:

  1. Run on debug mode
  2. See the empty blue screen to confirm running.
  3. Start turning on and off the screen by pressing the power button frequently.
  4. Observe the crash via Logcat

The error logs I have:

2019-10-21 09:35:02.466 623-659/? E/BufferQueueProducer: [com.google.vulkan.tutorials.four/android.app.NativeActivity#0] connect: already connected (cur=1 req=1)
2019-10-21 09:35:02.466 17972-18010/com.google.vulkan.tutorials.four E/vulkan: native_window_api_connect() failed: Invalid argument (-22)
2019-10-21 09:35:02.466 17972-18010/com.google.vulkan.tutorials.four E/Tutorial: Vulkan error. File[D:\src\android-vulkan-tutorials\tutorial04_first_window\app\src\main\jni\VulkanMain.cpp], line[122]
2019-10-21 09:35:02.466 17972-18010/com.google.vulkan.tutorials.four A/libc: D:\src\android-vulkan-tutorials\tutorial04_first_window\app\src\main\jni\VulkanMain.cpp:122: void CreateVulkanDevice(ANativeWindow *, VkApplicationInfo *): assertion "false" failed
2019-10-21 09:35:02.466 17972-18010/com.google.vulkan.tutorials.four A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18010 (.tutorials.four), pid 17972 (.tutorials.four)
2019-10-21 09:35:02.526 18094-18094/? A/DEBUG: pid: 17972, tid: 18010, name: .tutorials.four  >>> com.google.vulkan.tutorials.four <<<
2019-10-21 09:35:02.527 18094-18094/? A/DEBUG:       #02 pc 0000000000016aa0  /data/app/com.google.vulkan.tutorials.four-pVeIq2_gA8kagBYut9cR7w==/lib/arm64/libvktuts.so (CreateVulkanDevice(ANativeWindow*, VkApplicationInfo*)+580) (BuildId: 274dff12cbe8832a3422a72fceede0307a5aab49)
2019-10-21 09:35:02.527 18094-18094/? A/DEBUG:       #03 pc 00000000000180ac  /data/app/com.google.vulkan.tutorials.four-pVeIq2_gA8kagBYut9cR7w==/lib/arm64/libvktuts.so (InitVulkan(android_app*)+180) (BuildId: 274dff12cbe8832a3422a72fceede0307a5aab49)
2019-10-21 09:35:02.527 18094-18094/? A/DEBUG:       #04 pc 000000000001f528  /data/app/com.google.vulkan.tutorials.four-pVeIq2_gA8kagBYut9cR7w==/lib/arm64/libvktuts.so (handle_cmd(android_app*, int)+140) (BuildId: 274dff12cbe8832a3422a72fceede0307a5aab49)
2019-10-21 09:35:02.527 18094-18094/? A/DEBUG:       #05 pc 0000000000022ac8  /data/app/com.google.vulkan.tutorials.four-pVeIq2_gA8kagBYut9cR7w==/lib/arm64/libvktuts.so (BuildId: 274dff12cbe8832a3422a72fceede0307a5aab49)
2019-10-21 09:35:02.527 18094-18094/? A/DEBUG:       #06 pc 000000000001f5e0  /data/app/com.google.vulkan.tutorials.four-pVeIq2_gA8kagBYut9cR7w==/lib/arm64/libvktuts.so (android_main+112) (BuildId: 274dff12cbe8832a3422a72fceede0307a5aab49)
2019-10-21 09:35:02.527 18094-18094/? A/DEBUG:       #07 pc 0000000000022a4c  /data/app/com.google.vulkan.tutorials.four-pVeIq2_gA8kagBYut9cR7w==/lib/arm64/libvktuts.so (BuildId: 274dff12cbe8832a3422a72fceede0307a5aab49

Thanks!
app-debug.zip

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