Vulkan causes RA crash - Shield Gen2

Hi all :).

Hoping one of you fine people could help. I’m having trouble getting Vulkan to work on an Nvidia Shield Gen2. GL works fine.

Process I’ve followed (Duckstation in this instance, but similar issue with Parallei)

Open game, set core settings to use Vulkan. Quit Content. Change settings\driver to vulkan. Exit RetroArch. Boot game.

Game will crash back to Android Launcher at this point.

I’ve attached a log file, but I can’t see anything obvious?

I’ve also tried disabling the Advanced Option - Allow cores to change video driver to no avail. Reinstalling RA, using RA, RA64 or RA apk downloaded direct all have the same issues.

Thoughts?

Summary
RetroArch 1.9.0 (Git 6388872)
=== Build =======================================
Capabilities:  ASIMD
[INFO] Built: Aug 11 2020
[INFO] Version: 1.9.0
[INFO] Git: 6388872
[INFO] =================================================
[Environ]: SET_PIXEL_FORMAT: RGB565.
[Overrides]: Redirecting save file to "/storage/emulated/0/RetroArch/saves/.srm".
[Overrides]: Redirecting save state to "/storage/emulated/0/RetroArch/states/.state".
Version of libretro API: 1
[INFO] Compiled against API: 1
[Audio]: Set audio input rate to: 48000.00 Hz.
[Video]: Video @ 960x720
[Video]: Starting threaded video driver ...
[Vulkan]: Vulkan dynamic library loaded.
[Vulkan]: Found vulkan context: vk_android
[Vulkan]: Detecting screen resolution 0x0.
[Vulkan]: Setting swap interval: 1.
[Android]: Native window size: 1920 x 1080.
[Vulkan]: Created Android surface: 170037080416
[Vulkan]: Found GPU at index 0: NVIDIA Tegra X1 (nvgpu)
[Vulkan]: Using GPU index 0.
[Vulkan]: Using semaphores for WSI acquire.
[Vulkan]: Using GPU: NVIDIA Tegra X1 (nvgpu)
[Vulkan]: Queue family 0 supports 16 sub-queues.
[Vulkan]: Swapchain supports present mode: 1.
[Vulkan]: Swapchain supports present mode: 2.
[Vulkan]: Swapchain supports present mode: 1000111000.
[Vulkan]: Swapchain supports present mode: 1000111001.
[Vulkan]: Creating swapchain with present mode: 2
[Vulkan]: Using swapchain size 1920 x 1080.
[Vulkan]: Got 3 swapchain images.
[Vulkan]: Using resolution 1920x1080
[Vulkan]: Using RGB565 format.
[Vulkan]: Loading stock shader.
[slang]: Building pass #0 (N/A)
[Vulkan filter chain]: Not using frame history.
[Vulkan filter chain]: Not using framebuffer feedback.
[Joypad]: Found joypad driver: "android".
[Font]: Using font rendering backend: stb-unicode.
[Video]: Found display server: android
[OpenSL]: Requested audio latency: 128 ms.[OpenSL]: Setting audio latency: Block size = 1024, Blocks = 24, Total = 24576 ...
[Display]: Found display driver: "vulkan".
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Display]: Found display driver: "vulkan".
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[MIDI]: Input disabled.
[MIDI]: Output disabled.
[MIDI]: Initialized "null" driver.
Disconnecting device from port 6.
Disconnecting device from port 7.
Disconnecting device from port 8.
Disconnecting device from port 9.
Disconnecting device from port 10.
Disconnecting device from port 11.
Disconnecting device from port 12.
Disconnecting device from port 13.
Disconnecting device from port 14.
Disconnecting device from port 15.
Disconnecting device from port 16.
[SRAM]: SRAM will not be saved.
[Playlist]: Loading history file: [/data/user/0/com.retroarch.aarch64/content_history.lpl].
[Playlist]: Loading history file: [/data/user/0/com.retroarch.aarch64/content_music_history.lpl].
[Playlist]: Loading history file: [/data/user/0/com.retroarch.aarch64/content_image_history.lpl].
[Playlist]: Loading favorites file: [/data/user/0/com.retroarch.aarch64/content_favorites.lpl].
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Android]: Native window size: 1920 x 1080.
[Vulkan]: Swapchain supports present mode: 1.
[Vulkan]: Swapchain supports present mode: 2.
[Vulkan]: Swapchain supports present mode: 1000111000.
[Vulkan]: Swapchain supports present mode: 1000111001.
[Vulkan]: Creating swapchain with present mode: 2
[Vulkan]: Using swapchain size 1920 x 1080.
[Vulkan]: Got 3 swapchain images.
[Vulkan]: Destroying stale acquire semaphore.
[slang]: Building pass #0 (N/A)
[Vulkan filter chain]: Not using frame history.
[Vulkan filter chain]: Not using framebuffer feedback.
[Android]: Native window size: 1920 x 1080.
[Vulkan]: Do not need to re-create swapchain.
[slang]: Building pass #0 (N/A)
[Vulkan filter chain]: Not using frame history.
[Vulkan filter chain]: Not using framebuffer feedback.
Special Device Detected: SHIELD Android TV

[CORE]: Using content: /storage/8EF5-5F2A/Sony - Playstation/Alien Resurrection (USA).chd.
Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[CORE]: Unloading core..
[CORE]: Unloading core symbols..
Threaded video stats: Frames pushed: 178, Frames dropped: 0.
RetroArch 1.9.0 (Git 6388872)
[Overrides]: Redirecting save file to "/storage/emulated/0/RetroArch/saves/Alien Resurrection (USA).srm".
[Overrides]: Redirecting save state to "/storage/emulated/0/RetroArch/states/Alien Resurrection (USA).state".
=== Build =======================================
Capabilities:  ASIMD
[INFO] Built: Aug 11 2020
[INFO] Version: 1.9.0
[INFO] Git: 6388872
[INFO] =================================================
jni_thread_destruct()
[CORE]: Loading dynamic libretro core from: "/data/user/0/com.retroarch.aarch64/cores/duckstation_libretro_android.so"
[Overrides]: No core-specific overrides found at /storage/emulated/0/RetroArch/config/DuckStation/DuckStation.cfg.
[Overrides]: No content-dir-specific overrides found at /storage/emulated/0/RetroArch/config/DuckStation/Sony - Playstation.cfg.
[Overrides]: No game-specific overrides found at /storage/emulated/0/RetroArch/config/DuckStation/Alien Resurrection (USA).cfg.
[Environ]: GET_CORE_OPTIONS_VERSION.
[Environ]: SET_CORE_OPTIONS.
[Environ]: GET_DISK_CONTROL_INTERFACE_VERSION.
[Environ]: SET_DISK_CONTROL_EXT_INTERFACE.
[Environ]: GET_LOG_INTERFACE.
[Environ]: GET_RUMBLE_INTERFACE.
[Remaps]: remap directory: /storage/emulated/0/RetroArch/config/remaps
[Overrides]: Redirecting save file to "/storage/emulated/0/RetroArch/saves/Alien Resurrection (USA).srm".
[Overrides]: Redirecting save state to "/storage/emulated/0/RetroArch/states/Alien Resurrection (USA).state".
[Environ]: SYSTEM_DIRECTORY: "/storage/emulated/0/RetroArch/system".
[Environ]: GET_SAVE_DIRECTORY.
[Environ]: GET_SAVE_DIRECTORY.
[CONTENT LOAD]: Content loading skipped. Implementation will load it on its own.
[Main] retro_load_game(/storage/8EF5-5F2A/Sony - Playstation/Alien Resurrection (USA).chd)
[HostInterface] Boot Filename: /storage/8EF5-5F2A/Sony - Playstation/Alien Resurrection (USA).chd
[Environ]: SET_PIXEL_FORMAT: XRGB8888.
[HostInterface] Creating 'Cubeb' audio stream, sample rate = 44100, channels = 2, buffer size = 2048
[System] Loading CD image '/storage/8EF5-5F2A/Sony - Playstation/Alien Resurrection (USA).chd' from playlist index 0...
[System] Auto-detected console NTSC-U region for '/storage/8EF5-5F2A/Sony - Playstation/Alien Resurrection (USA).chd' (region NTSC-U)
[HostInterface] Using BIOS from '/storage/emulated/0/RetroArch/system/scph1001.bin' for region 'NTSC-U'
[Environ]: GET_SAVE_DIRECTORY.
[MemoryCard] Loaded memory card from /storage/emulated/0/RetroArch/saves/Alien Resurrection (USA)_1.mcd
[Environ]: GET_SAVE_DIRECTORY.
[MemoryCard] Loaded memory card from /storage/emulated/0/RetroArch/saves/Alien Resurrection (USA)_2.mcd
[AnalogController] Controller 1 switched to analog mode.
[Environ]: SET_MESSAGE: Controller 1 switched to analog mode.
[AnalogController] Controller 2 switched to analog mode.
[Environ]: SET_MESSAGE: Controller 2 switched to analog mode.
[CDROM] Inserting new media, disc region: NTSC-U, console region: NTSC-U
[Environ]: GET_PREFERRED_HW_RENDER.
[LibretroHostInterface] Renderer = Vulkan
[LibretroHostInterface] Requesting hardware renderer context for Vulkan
[Environ]: SET_HW_RENDER.
Requesting Vulkan context.
[Environ]: SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE.
[SRAM]: Skipping SRAM load..
Version of libretro API: 1
[INFO] Compiled against API: 1
[LibretroHostInterface] base = 320x240, max = 5120x2560, aspect ratio = 1.33, fps = 59.82
[Cheats]: Load game-specific cheatfile: /storage/emulated/0/RetroArch/cheats/DuckStation/Alien Resurrection (USA).cht
[Audio]: Set audio input rate to: 44234.67 Hz.
[Video]: Video @ 960x720
[Video]: Using HW render, Vulkan driver forced.
[Vulkan]: Vulkan dynamic library loaded.
[Vulkan]: Found vulkan context: vk_android
[Vulkan]: Detecting screen resolution 0x0.
[Vulkan]: Setting swap interval: 1.
[Android]: Native window size: 1920 x 1080.
[Vulkan]: Created Android surface: 170370655808
[LibretroVulkanHostDisplay] No GPU provided, using first/default
[Vulkan::Context] 1 vulkan queue families
[Vulkan::Context] Available extension: VK_KHR_incremental_present
[Vulkan::Context] Available extension: VK_EXT_hdr_metadata
[Vulkan::Context] Available extension: VK_KHR_shared_presentable_image
[Vulkan::Context] Available extension: VK_GOOGLE_display_timing
[Vulkan::Context] Available extension: VK_KHR_8bit_storage
[Vulkan::Context] Available extension: VK_KHR_16bit_storage
[Vulkan::Context] Available extension: VK_KHR_bind_memory2
[Vulkan::Context] Available extension: VK_KHR_create_renderpass2
[Vulkan::Context] Available extension: VK_KHR_dedicated_allocation
[Vulkan::Context] Available extension: VK_KHR_descriptor_update_template
[Vulkan::Context] Available extension: VK_KHR_draw_indirect_count
[Vulkan::Context] Available extension: VK_KHR_driver_properties
[Vulkan::Context] Available extension: VK_KHR_external_fence
[Vulkan::Context] Available extension: VK_KHR_external_fence_fd
[Vulkan::Context] Available extension: VK_KHR_external_memory
[Vulkan::Context] Available extension: VK_KHR_external_memory_fd
[Vulkan::Context] Available extension: VK_KHR_external_semaphore
[Vulkan::Context] Available extension: VK_KHR_external_semaphore_fd
[Vulkan::Context] Available extension: VK_KHR_get_memory_requirements2
[Vulkan::Context] Available extension: VK_KHR_image_format_list
[Vulkan::Context] Available extension: VK_KHR_maintenance1
[Vulkan::Context] Available extension: VK_KHR_maintenance2
[Vulkan::Context] Available extension: VK_KHR_maintenance3
[Vulkan::Context] Available extension: VK_KHR_multiview
[Vulkan::Context] Available extension: VK_KHR_push_descriptor
[Vulkan::Context] Available extension: VK_KHR_relaxed_block_layout
[Vulkan::Context] Available extension: VK_KHR_sampler_mirror_clamp_to_edge
[Vulkan::Context] Available extension: VK_KHR_sampler_ycbcr_conversion
[Vulkan::Context] Available extension: VK_KHR_shader_atomic_int64
[Vulkan::Context] Available extension: VK_KHR_shader_draw_parameters
[Vulkan::Context] Available extension: VK_KHR_storage_buffer_storage_class
[Vulkan::Context] Available extension: VK_KHR_variable_pointers
[Vulkan::Context] Available extension: VK_KHR_vulkan_memory_model
[Vulkan::Context] Available extension: VK_EXT_blend_operation_advanced
[Vulkan::Context] Available extension: VK_EXT_conditional_rendering
[Vulkan::Context] Available extension: VK_EXT_conservative_rasterization
[Vulkan::Context] Available extension: VK_EXT_depth_range_unrestricted
[Vulkan::Context] Available extension: VK_EXT_descriptor_indexing
[Vulkan::Context] Available extension: VK_EXT_discard_rectangles
[Vulkan::Context] Available extension: VK_EXT_global_priority
[Vulkan::Context] Available extension: VK_EXT_inline_uniform_block
[Vulkan::Context] Available extension: VK_EXT_post_depth_coverage
[Vulkan::Context] Available extension: VK_EXT_queue_family_foreign
[Vulkan::Context] Available extension: VK_EXT_sample_locations
[Vulkan::Context] Available extension: VK_EXT_sampler_filter_minmax
[Vulkan::Context] Available extension: VK_EXT_shader_subgroup_ballot
[Vulkan::Context] Available extension: VK_EXT_shader_subgroup_vote
[Vulkan::Context] Available extension: VK_EXT_shader_viewport_index_layer
[Vulkan::Context] Available extension: VK_EXT_vertex_attribute_divisor
[Vulkan::Context] Available extension: VK_ANDROID_external_memory_android_hardware_buffer
[Vulkan::Context] Available extension: VK_KHR_swapchain
[Vulkan::Context] Available extension: VK_NV_dedicated_allocation
[Vulkan::Context] Available extension: VK_NV_device_diagnostic_checkpoints
[Vulkan::Context] Available extension: VK_NV_fill_rectangle
[Vulkan::Context] Available extension: VK_NV_fragment_coverage_to_color
[Vulkan::Context] Available extension: VK_NV_framebuffer_mixed_samples
[Vulkan::Context] Available extension: VK_NV_geometry_shader_passthrough
[Vulkan::Context] Available extension: VK_NV_sample_mask_override_coverage
[Vulkan::Context] Available extension: VK_NV_shader_subgroup_partitioned
[Vulkan::Context] Available extension: VK_NV_viewport_array2
[Vulkan::Context] Available extension: VK_NV_viewport_swizzle
[Vulkan::Context] Available extension: VK_NVX_device_generated_commands
[Vulkan::Context] Available extension: VK_NVX_multiview_per_view_attributes
[Vulkan]: Found GPU at index 0: NVIDIA Tegra X1 (nvgpu)
[Vulkan]: Using GPU index 0.
[Vulkan]: Using semaphores for WSI acquire.
[Vulkan]: Using GPU: NVIDIA Tegra X1 (nvgpu)
[Vulkan]: Swapchain supports present mode: 1.
[Vulkan]: Swapchain supports present mode: 2.
[Vulkan]: Swapchain supports present mode: 1000111000.
[Vulkan]: Swapchain supports present mode: 1000111001.
[Vulkan]: Creating swapchain with present mode: 2
[Vulkan]: Using swapchain size 1920 x 1080.
[Vulkan]: Got 3 swapchain images.
[Vulkan]: Using resolution 1920x1080
[Vulkan]: Using BGRA8888 format.
[Vulkan]: Loading stock shader.
[slang]: Building pass #0 (N/A)
[Vulkan filter chain]: Not using frame history.
[Vulkan filter chain]: Not using framebuffer feedback.
[Joypad]: Found joypad driver: "android".
[Font]: Using font rendering backend: stb-unicode.
[Video]: Found display server: android
[LibretroHostInterface] Hardware context reset, type = 6
[GPU_HW_Vulkan] Max texture size: 16384x16384
[GPU_HW_Vulkan] Max texel buffer elements: 134217728
[GPU_HW] Resolution Scale: 5 (5120x2560), maximum 16
[GPU_HW] Dithering: Disabled
[GPU_HW] Texture Filtering: Enabled
[GPU_HW] Dual-source blending: Supported
[GPU_HW] Using UV limits: YES
[HostInterface] Loading: Compiling Shaders... -1 of -1--1
[ResetBatchVertexDepth] Resetting batch vertex depth
[OpenSL]: Requested audio latency: 128 ms.[OpenSL]: Setting audio latency: Block size = 1024, Blocks = 24, Total = 24576 ...
[Display]: Found display driver: "vulkan".
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[InitDiskControlInterface] Failed to set disk control interface
[InitDiskControlInterface] Failed to set disk control interface
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[Font]: Using font rendering backend: stb-unicode.
[MIDI]: Input disabled.
[MIDI]: Output disabled.
[MIDI]: Initialized "null" driver.
Disconnecting device from port 6.
Disconnecting device from port 7.
Disconnecting device from port 8.
Disconnecting device from port 9.
Disconnecting device from port 10.
Disconnecting device from port 11.
Disconnecting device from port 12.
Disconnecting device from port 13.
Disconnecting device from port 14.
Disconnecting device from port 15.
Disconnecting device from port 16.
[Playlist]: Loading history file: [/data/user/0/com.retroarch.aarch64/content_history.lpl].
[Playlist]: Loading history file: [/data/user/0/com.retroarch.aarch64/content_music_history.lpl].
[Playlist]: Loading history file: [/data/user/0/com.retroarch.aarch64/content_image_history.lpl].
[Playlist]: Loading favorites file: [/data/user/0/com.retroarch.aarch64/content_favorites.lpl].
[Vulkan]: VSync => on
[slang]: Building pass #0 (N/A)
[Vulkan filter chain]: Not using frame history.
[Vulkan filter chain]: Not using framebuffer feedback.
Special Device Detected: SHIELD Android TV

Pause: 0x2790068180

Do other, non-hardware-rendered cores work with Vulkan on your system?

Keeping with the Playstation theme with a core with no hardware acceleration, Beetle (not Beetle HW) works perfectly fine.

Hmm, okay, so it’s something with the renderers themselves, I guess :confused:

I’m not sure what would be going on, but I’ll try to reproduce later on my own Shield.