moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
10.36k stars 606 forks source link

ffmpeg segmentation fault #1354

Open picarica opened 3 months ago

picarica commented 3 months ago

Describe the bug moonlight crashed

Steps to reproduce launch install

Moonlight settings (please complete the following information)

Client PC details (please complete the following information)

Server PC details (please complete the following information)

Moonlight Logs (please attach)

00:00:00 - SDL Info (0): Running with SDL 2.28.5
00:00:00 - Qt Info: No translation available for "en_IE"
00:00:00 - Qt Warning: qrc:/gui/main.qml:13:1: QML ApplicationWindow: ToolTip must be attached to an Item
00:00:00 - Qt Info: Found "gamecontrollerdb.txt" at "/home/bucek/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:00 - SDL Info (0): Loaded 334 new gamepad mappings
00:00:00 - SDL Info (0): V-sync disabled
00:00:00 - SDL Warn (0): Vulkan device 'NVIDIA GeForce RTX 3050 Laptop GPU' does not support HDR10 (ST.2084 PQ)
00:00:00 - SDL Error (0): No suitable HDR-capable Vulkan devices found!
00:00:01 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:01 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0] Alignments:
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0]     optimalBufferCopyRowPitchAlignment: 1
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0]     minMemoryMapAlignment:              64
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0]     nonCoherentAtomSize:                64
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0]     minImportedHostPointerAlignment:    4096
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0] Using queue family 0 (queues: 1) for graphics
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0] Using queue family 2 (queues: 1) for compute
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0] Using queue family 1 (queues: 1) for transfers
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f439a3d0] Using queue family 3 (queues: 1) for decode
00:00:01 - SDL Warn (0): Vulkan device 'NVIDIA GeForce RTX 3050 Laptop GPU' does not support HDR10 (ST.2084 PQ)
00:00:01 - SDL Error (0): No suitable HDR-capable Vulkan devices found!
00:00:01 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:01 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80] Alignments:
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80]     optimalBufferCopyRowPitchAlignment: 1
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80]     minMemoryMapAlignment:              64
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80]     nonCoherentAtomSize:                64
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80]     minImportedHostPointerAlignment:    4096
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80] Using queue family 0 (queues: 1) for graphics
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80] Using queue family 2 (queues: 1) for compute
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80] Using queue family 1 (queues: 1) for transfers
00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x7ff8f42c2e80] Using queue family 3 (queues: 1) for decode
00:00:01 - SDL Info (0): Using Vulkan video decoding
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Decoding VPS
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Main 10 profile bitstream
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Decoding SPS
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Main 10 profile bitstream
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Decoding VUI
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Decoding PPS
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Format vulkan chosen by get_format().
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Format vulkan requires hwaccel initialisation.
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Decoder capabilities for hevc profile "Main 10":
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Maximum level: 61 (stream 120)
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Width: from 144 to 8192
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Height: from 144 to 8192
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Width alignment: 16
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Height alignment: 16
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Bitstream offset alignment: 256
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Bitstream size alignment: 256
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Maximum references: 16
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Maximum active references: 16
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Codec header name: 'VK_STD_vulkan_video_codec_h265_decode' (driver), 'VK_STD_vulkan_video_codec_h265_decode' (compiled)
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Codec header version: 1.0.0 (driver), 1.0.0 (compiled)
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Decode modes: reuse_dst_dpb
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     Capability flags: none
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Choosing best pixel format for decoding from 1:
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080]     p010le* (Vulkan ID: 1000156013)
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Chosen frame pixfmt: p010le (Vulkan ID: 1000156013)
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Allocating 4096 bytes in bind index 0 for video session
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Allocating 16384 bytes in bind index 1 for video session
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Allocating 71303168 bytes in bind index 2 for video session
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Allocating 247595008 bytes in bind index 3 for video session
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Vulkan decoder initialization sucessful
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Output frame with POC 3.
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Created frame parameters: 1 SPS 1 PPS 1 VPS
00:00:01 - FFmpeg: [hevc @ 0x7ff8f4024080] Decoding frame, 349 bytes, 4 slices
00:00:01 - SDL Warn (0): Masking `blit_src` from wrapped texture because the corresponding format 'rx10' does not support PL_FMT_CAP_BLITTABLE
00:00:01 - SDL Warn (0): Masking `blit_src` from wrapped texture because the corresponding format 'rxgx10' does not support PL_FMT_CAP_BLITTABLE
00:00:01 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:01 - Qt Info: Found "gamecontrollerdb.txt" at "/home/bucek/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:01 - SDL Info (0): Loaded 334 new gamepad mappings
00:00:01 - Qt Debug: Current Moonlight version: "6.0.1"
00:00:01 - Qt Warning: mDNS is disabled by user preference
00:00:01 - Qt Info: Gamepad mappings are up to date
00:00:01 - Qt Info: Latest supported GFE server: "99.99.99.99"
00:00:01 - Qt Info: "DESKTOP-VEN3O6B" is now online at "100.124.159.46:47989"
00:00:01 - Qt Info: Found unexpected PC "DESKTOP-VEN3O6B" looking for "gentoo"
00:00:01 - Qt Info: "gentoo" is now offline
00:00:04 - Qt Info: Executing request: "https://100.124.159.46:47984/cancel?uniqueid=0123456789ABCDEF&uuid=28ee6e02edb0414e8696e802cb1ff1dd"
00:00:04 - Qt Info: Quit response: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root status_code=\"200\"><cancel>1</cancel></root>"
00:00:04 - Qt Info: Found unexpected PC "DESKTOP-VEN3O6B" looking for "gentoo"
00:00:06 - Qt Info: Found "ModeSeven.ttf" at ":/data/ModeSeven.ttf"
00:00:06 - Qt Info: Server GPU: ""
00:00:06 - Qt Info: Server GFE version: "3.23.0.74"
00:00:06 - SDL Info (0): Video bitrate: 10000 kbps
00:00:06 - SDL Info (0): Desired audio buffer: 720 samples (2880 bytes)
00:00:06 - SDL Info (0): Obtained audio buffer: 720 samples (2880 bytes)
00:00:06 - SDL Info (0): SDL audio driver: pulseaudio
00:00:06 - SDL Info (0): Audio channel count: 2
00:00:06 - SDL Info (0): Audio channel mask: 3
00:00:06 - Qt Warning: Your selection to enable remote desktop mouse mode may cause problems in games.
00:00:08 - Qt Info: Found unexpected PC "DESKTOP-VEN3O6B" looking for "gentoo"
00:00:10 - SDL Info (0): Desired audio buffer: 720 samples (2880 bytes)
00:00:10 - SDL Info (0): Obtained audio buffer: 720 samples (2880 bytes)
00:00:10 - SDL Info (0): SDL audio driver: pulseaudio
00:00:10 - Qt Info: Found "gamecontrollerdb.txt" at "/home/bucek/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:10 - SDL Info (0): Loaded 334 new gamepad mappings
00:00:10 - SDL Info (0): V-sync disabled
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b81b55a0] VDPAU device creation on X11 display :0 failed.
00:00:10 - SDL Error (0): Failed to create VDPAU context: -1313558101
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b81c3310] VDPAU device creation on X11 display :0 failed.
00:00:10 - SDL Error (0): Failed to create VDPAU context: -1313558101
00:00:10 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:10 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0] Alignments:
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0]     optimalBufferCopyRowPitchAlignment: 1
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0]     minMemoryMapAlignment:              64
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0]     nonCoherentAtomSize:                64
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0]     minImportedHostPointerAlignment:    4096
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0] Using queue family 0 (queues: 1) for graphics
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0] Using queue family 2 (queues: 1) for compute
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0] Using queue family 1 (queues: 1) for transfers
00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b88058c0] Using queue family 3 (queues: 1) for decode
00:00:11 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:11 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00] Alignments:
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00]     optimalBufferCopyRowPitchAlignment: 1
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00]     minMemoryMapAlignment:              64
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00]     nonCoherentAtomSize:                64
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00]     minImportedHostPointerAlignment:    4096
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00] Using queue family 0 (queues: 1) for graphics
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00] Using queue family 2 (queues: 1) for compute
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00] Using queue family 1 (queues: 1) for transfers
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8a0bd00] Using queue family 3 (queues: 1) for decode
00:00:11 - SDL Info (0): Using Vulkan video decoding
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 7(SPS), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 8(PPS), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Decoding VUI
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Format vulkan chosen by get_format().
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Format vulkan requires hwaccel initialisation.
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Decoder capabilities for h264 profile "High":
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Maximum level: 52 (stream 32)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Width: from 48 to 4096
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Height: from 16 to 4096
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Width alignment: 16
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Height alignment: 16
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Bitstream offset alignment: 256
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Bitstream size alignment: 256
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Maximum references: 17
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Maximum active references: 16
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Codec header name: 'VK_STD_vulkan_video_codec_h264_decode' (driver), 'VK_STD_vulkan_video_codec_h264_decode' (compiled)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Codec header version: 1.0.0 (driver), 1.0.0 (compiled)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Decode modes: reuse_dst_dpb
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Capability flags: none
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Choosing best pixel format for decoding from 1:
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     nv12* (Vulkan ID: 1000156003)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Chosen frame pixfmt: nv12 (Vulkan ID: 1000156003)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 4096 bytes in bind index 0 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 16384 bytes in bind index 1 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 71303168 bytes in bind index 2 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 225280 bytes in bind index 3 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Vulkan decoder initialization sucessful
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Reinit context to 1280x720, pix_fmt: vulkan
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Created frame parameters: 1 SPS 1 PPS
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Decoding frame, 349 bytes, 4 slices
00:00:11 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:11 - SDL Info (0): V-sync disabled
00:00:11 - Qt Info: Found unexpected PC "DESKTOP-VEN3O6B" looking for "gentoo"
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baa2b720] VDPAU device creation on X11 display :0 failed.
00:00:11 - SDL Error (0): Failed to create VDPAU context: -1313558101
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b81a81e0] VDPAU device creation on X11 display :0 failed.
00:00:11 - SDL Error (0): Failed to create VDPAU context: -1313558101
00:00:11 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:11 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0] Alignments:
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0]     optimalBufferCopyRowPitchAlignment: 1
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0]     minMemoryMapAlignment:              64
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0]     nonCoherentAtomSize:                64
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0]     minImportedHostPointerAlignment:    4096
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0] Using queue family 0 (queues: 1) for graphics
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0] Using queue family 2 (queues: 1) for compute
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0] Using queue family 1 (queues: 1) for transfers
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b80382b0] Using queue family 3 (queues: 1) for decode
00:00:11 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:11 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0] Alignments:
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0]     optimalBufferCopyRowPitchAlignment: 1
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0]     minMemoryMapAlignment:              64
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0]     nonCoherentAtomSize:                64
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0]     minImportedHostPointerAlignment:    4096
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0] Using queue family 0 (queues: 1) for graphics
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0] Using queue family 2 (queues: 1) for compute
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0] Using queue family 1 (queues: 1) for transfers
00:00:11 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b9e32df0] Using queue family 3 (queues: 1) for decode
00:00:11 - SDL Info (0): Using Vulkan video decoding
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 7(SPS), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 8(PPS), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Decoding VUI
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Format vulkan chosen by get_format().
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Format vulkan requires hwaccel initialisation.
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Decoder capabilities for h264 profile "High":
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Maximum level: 52 (stream 32)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Width: from 48 to 4096
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Height: from 16 to 4096
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Width alignment: 16
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Height alignment: 16
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Bitstream offset alignment: 256
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Bitstream size alignment: 256
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Maximum references: 17
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Maximum active references: 16
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Codec header name: 'VK_STD_vulkan_video_codec_h264_decode' (driver), 'VK_STD_vulkan_video_codec_h264_decode' (compiled)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Codec header version: 1.0.0 (driver), 1.0.0 (compiled)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Decode modes: reuse_dst_dpb
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     Capability flags: none
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Choosing best pixel format for decoding from 1:
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890]     nv12* (Vulkan ID: 1000156003)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Chosen frame pixfmt: nv12 (Vulkan ID: 1000156003)
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 4096 bytes in bind index 0 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 16384 bytes in bind index 1 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 71303168 bytes in bind index 2 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Allocating 225280 bytes in bind index 3 for video session
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Vulkan decoder initialization sucessful
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Reinit context to 1280x720, pix_fmt: vulkan
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Created frame parameters: 1 SPS 1 PPS
00:00:11 - FFmpeg: [h264 @ 0x7ff8b81fe890] Decoding frame, 349 bytes, 4 slices
00:00:11 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:12 - Qt Info: Found "gamecontrollerdb.txt" at "/home/bucek/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt"
00:00:12 - SDL Info (0): Loaded 334 new gamepad mappings
00:00:13 - Qt Info: Executing request: "https://100.124.159.46:47984/launch?uniqueid=0123456789ABCDEF&uuid=1e9fabec722d4e5e88092ced18992ca6&appid=881448767&mode=1920x1080x30&additionalStates=1&sops=1&rikey=REDACTED&rikeyid=REDACTED&localAudioPlayMode=0&surroundAudioInfo=196610&remoteControllersBitmap=0&gcmap=0&gcpersist=0&corever=1"
00:00:13 - Qt Info: Launch response: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root status_code=\"200\"><sessionUrl0>rtspenc://100.124.159.46:48010</sessionUrl0><gamesession>1</gamesession></root>"
00:00:13 - Qt Info: Found matching interface: "tailscale0" "" QFlags<QNetworkInterface::InterfaceFlag>(IsUp|IsRunning|IsPointToPoint|CanMulticast)
00:00:13 - Qt Info: Interface Type: QNetworkInterface::Virtual
00:00:13 - Qt Info: Interface MTU: 1280
00:00:13 - SDL Info (0): RTSP port: 48010
00:00:13 - SDL Info (0): Initializing platform...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Resolving host name...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Initializing audio stream...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Starting RTSP handshake...
00:00:13 - SDL Info (0): Reference frame invalidation is not supported by this host
00:00:13 - SDL Info (0): Audio port: 48000
00:00:13 - SDL Info (0): Video port: 47998
00:00:13 - SDL Info (0): Control port: 47999
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Initializing control stream...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Initializing video stream...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Initializing input stream...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Starting control stream...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Starting video stream...
00:00:13 - SDL Info (0): Video stream is 1920x1080x30 (format 0x1)
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Starting audio stream...
00:00:13 - SDL Info (0): Desired audio buffer: 720 samples (2880 bytes)
00:00:13 - SDL Info (0): Obtained audio buffer: 720 samples (2880 bytes)
00:00:13 - SDL Info (0): SDL audio driver: pulseaudio
00:00:13 - SDL Info (0): Audio stream has 2 channels
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Starting input stream...
00:00:13 - SDL Info (0): done
00:00:13 - SDL Info (0): Qt UI screen is at (1920,0)
00:00:13 - SDL Info (0): SDL found matching display 0
00:00:14 - SDL Info (0): Received first video packet after 100 ms
00:00:14 - SDL Info (0): Found display mode with desktop resolution: 1920x1200x60
00:00:14 - SDL Info (0): Recreating renderer for window event: 1 (0 0)
00:00:14 - SDL Info (0): V-sync disabled
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b89259b0] VDPAU device creation on X11 display :0 failed.
00:00:14 - SDL Error (0): Failed to create VDPAU context: -1313558101
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b89259b0] VDPAU device creation on X11 display :0 failed.
00:00:14 - SDL Error (0): Failed to create VDPAU context: -1313558101
00:00:14 - SDL Info (0): Received first audio packet after 500 ms
00:00:14 - SDL Info (0): Initial audio resync period: 500 milliseconds
00:00:14 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:14 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280] Alignments:
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280]     optimalBufferCopyRowPitchAlignment: 1
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280]     minMemoryMapAlignment:              64
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280]     nonCoherentAtomSize:                64
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280]     minImportedHostPointerAlignment:    4096
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280] Using queue family 0 (queues: 1) for graphics
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280] Using queue family 2 (queues: 1) for compute
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280] Using queue family 1 (queues: 1) for transfers
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8039280] Using queue family 3 (queues: 1) for decode
00:00:14 - SDL Info (0): Video decode unit queue overflow
00:00:14 - SDL Info (0): IDR frame request sent
00:00:14 - SDL Info (0): Waiting for IDR frame
00:00:14 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:14 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20] Alignments:
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20]     optimalBufferCopyRowPitchAlignment: 1
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20]     minMemoryMapAlignment:              64
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20]     nonCoherentAtomSize:                64
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20]     minImportedHostPointerAlignment:    4096
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20] Using queue family 0 (queues: 1) for graphics
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20] Using queue family 2 (queues: 1) for compute
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20] Using queue family 1 (queues: 1) for transfers
00:00:14 - FFmpeg: [AVHWDeviceContext @ 0x7ff8b8192a20] Using queue family 3 (queues: 1) for decode
00:00:14 - SDL Info (0): Using Vulkan video decoding
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 7(SPS), nal_ref_idc: 3
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 8(PPS), nal_ref_idc: 3
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Decoding VUI
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Format vulkan chosen by get_format().
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Format vulkan requires hwaccel initialisation.
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Decoder capabilities for h264 profile "High":
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Maximum level: 52 (stream 32)
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Width: from 48 to 4096
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Height: from 16 to 4096
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Width alignment: 16
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Height alignment: 16
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Bitstream offset alignment: 256
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Bitstream size alignment: 256
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Maximum references: 17
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Maximum active references: 16
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Codec header name: 'VK_STD_vulkan_video_codec_h264_decode' (driver), 'VK_STD_vulkan_video_codec_h264_decode' (compiled)
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Codec header version: 1.0.0 (driver), 1.0.0 (compiled)
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Decode modes: reuse_dst_dpb
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Capability flags: none
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Choosing best pixel format for decoding from 1:
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0]     nv12* (Vulkan ID: 1000156003)
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Chosen frame pixfmt: nv12 (Vulkan ID: 1000156003)
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 4096 bytes in bind index 0 for video session
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 16384 bytes in bind index 1 for video session
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 71303168 bytes in bind index 2 for video session
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 225280 bytes in bind index 3 for video session
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Vulkan decoder initialization sucessful
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Reinit context to 1280x720, pix_fmt: vulkan
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Created frame parameters: 1 SPS 1 PPS
00:00:14 - FFmpeg: [h264 @ 0x7ff8b81faef0] Decoding frame, 349 bytes, 4 slices
00:00:15 - SDL Info (0): Video decode unit queue overflow
00:00:15 - SDL Info (0): IDR frame request sent
00:00:15 - SDL Info (0): Waiting for IDR frame
00:00:15 - SDL Info (0): Vulkan rendering device chosen: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:15 - SDL Info (0): Using Immediate present mode with V-Sync disabled
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60] Using device: NVIDIA GeForce RTX 3050 Laptop GPU
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60] Alignments:
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60]     optimalBufferCopyRowPitchAlignment: 1
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60]     minMemoryMapAlignment:              64
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60]     nonCoherentAtomSize:                64
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60]     minImportedHostPointerAlignment:    4096
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60] Using queue family 0 (queues: 1) for graphics
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60] Using queue family 2 (queues: 1) for compute
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60] Using queue family 1 (queues: 1) for transfers
00:00:15 - FFmpeg: [AVHWDeviceContext @ 0x7ff8baac8d60] Using queue family 3 (queues: 1) for decode
00:00:15 - SDL Info (0): Frame pacing disabled: target 60 Hz with 30 FPS stream
00:00:15 - SDL Info (0): Using Vulkan video decoding
00:00:15 - SDL Info (0): Using H.264 SPS fixup
00:00:15 - SDL Info (0): FFmpeg-based video decoder chosen
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 7(SPS), nal_ref_idc: 3
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 8(PPS), nal_ref_idc: 3
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] nal_unit_type: 5(IDR), nal_ref_idc: 3
00:00:15 - SDL Info (0): IDR frame request sent
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Decoding VUI
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Format vulkan chosen by get_format().
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Format vulkan requires hwaccel initialisation.
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Decoder capabilities for h264 profile "High":
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Maximum level: 52 (stream 42)
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Width: from 48 to 4096
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Height: from 16 to 4096
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Width alignment: 16
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Height alignment: 16
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Bitstream offset alignment: 256
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Bitstream size alignment: 256
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Maximum references: 17
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Maximum active references: 16
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Codec header name: 'VK_STD_vulkan_video_codec_h264_decode' (driver), 'VK_STD_vulkan_video_codec_h264_decode' (compiled)
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Codec header version: 1.0.0 (driver), 1.0.0 (compiled)
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Decode modes: reuse_dst_dpb
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     Capability flags: none
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Choosing best pixel format for decoding from 1:
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0]     nv12* (Vulkan ID: 1000156003)
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Chosen frame pixfmt: nv12 (Vulkan ID: 1000156003)
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 4096 bytes in bind index 0 for video session
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 16384 bytes in bind index 1 for video session
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 71303168 bytes in bind index 2 for video session
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Allocating 225280 bytes in bind index 3 for video session
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Vulkan decoder initialization sucessful
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Reinit context to 1920x1088, pix_fmt: vulkan
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Created frame parameters: 1 SPS 1 PPS
00:00:15 - FFmpeg: [h264 @ 0x7ff8b81faef0] Decoding frame, 35227 bytes, 1 slices
Segmentation fault (core dumped)

Additional context not sure why does this , itred same on nvidia quadro k2200 gpu, is this issue with ffmpeg? maybe i have it compiled with abd options but i can encode and decode using ffmpeg using gpu cuda acceleration

picarica commented 2 months ago

i thought maybe the issue this is a laptop so i tried using optimus but same thing

00:00:19 - FFmpeg: [h264 @ 0x7fd322801f50] Decoding frame, 18093 bytes, 1 slices
/usr/bin/prime-run: line 2:  4360 Segmentation fault      (core dumped) __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
cgutman commented 2 months ago

Can you run it under gdb and provide the output of the bt command after it crashes?

Please also provide the version of ffmpeg/libavcodec and libplacebo that you used when compiling Moonlight. You will probably need the very latest libplacebo and ffmpeg releases for things to work properly as Vulkan Video support is still maturing in libraries and drivers.

picarica commented 2 months ago

gdb-moonlight.log o got the gdb output, but i am confused wdym about that bt command? not sure i am familiar with it

here is my ffmpeg build flags and also version 6.1.1 ffmpegbuild.log

and i believe libvacodec is bundled with ffmpeg in gentoo so i have it probably

/usr/lib64/libavcodec.so
/usr/lib64/libavcodec.so.60.31.102
/usr/lib64/libavcodec.so.60
/usr/lib64/pkgconfig/libavcodec.pc
/usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
/usr/share/man/man3/libavcodec.3.bz2
/usr/lib/libavcodec.so
/usr/lib/libavcodec.so.60.31.102
/usr/lib/libavcodec.so.60
/usr/lib/pkgconfig/libavcodec.pc
/usr/include/libavcodec

i mean some vulkan gmes are working fine like gmod or tf2

randomei commented 2 months ago

I'am also having crash on amd laptop with gtx 3050: 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Allocating 4096 bytes in bind index 0 for video session 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Allocating 16384 bytes in bind index 1 for video session 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Allocating 71303168 bytes in bind index 2 for video session 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Allocating 146931712 bytes in bind index 3 for video session 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Vulkan decoder initialization sucessful 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Output frame with POC 0. 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Created frame parameters: 1 SPS 1 PPS 1 VPS 00:01:22 - FFmpeg: [hevc @ 0x72e52018a580] Decoding frame, 30129 bytes, 1 slices fish: Job 1, 'moonlight' terminated by signal SIGSEGV (Address boundary error)

OS: CachyOS, moonlight 6.0.1, ffmpeg 7.0.1, wayland

P.s. in x11 harware decoding works

picarica commented 2 months ago

CachyOS

intresting for me in X11 it doesnt work, ill try wayland

randomei commented 2 months ago

Also, hw decoding works in flathub version

maxiberta commented 2 months ago

Snaps build on edge have just this week added vulkan/libplacebo support, and started crashing with seg fault in hardware video decoding (see https://github.com/maxiberta/moonlight-snap/issues/21). Software video decoding works fine. Right before crashing, the new stream window pops up for a split second and a notification sound from Sunshine can sometimes be heard.

$ snap run --gdbserver moonlight stream PowerStation2 Desktop
...

See logs here.

Thread 7 "FFDecoder" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1716777.1717357]
0x00007d87d9c2463b in ?? () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
(gdb) bt
#0  0x00007d87d9c2463b in ?? () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
#1  0x00007d87d9c2ae2c in ?? () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
#2  0x00007d87d9c31d5a in ?? () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
#3  0x00007d87d9ba89d8 in ?? () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
#4  0x00007d87d9aa330b in ?? () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
#5  0x00007d87d9aa39da in avcodec_send_packet () from target:/snap/moonlight/2528/usr/lib/libavcodec.so.61
#6  0x00005732e115017b in FFmpegVideoDecoder::submitDecodeUnit (this=0x7d878405ed40, du=0x7d86f00008e0) at streaming/video/ffmpeg.cpp:1803
#7  0x00005732e11507a3 in FFmpegVideoDecoder::decoderThreadProc (this=this@entry=0x7d878405ed40) at streaming/video/ffmpeg.cpp:1578
#8  0x00005732e11508bd in FFmpegVideoDecoder::decoderThreadProcThunk (context=context@entry=0x7d878405ed40) at streaming/video/ffmpeg.cpp:1560
#9  0x00007d87d9e4788c in SDL_RunThread (thread=0x7d87842bed90) at /root/parts/sdl/build/src/thread/SDL_thread.c:333
#10 0x00007d87d9eef62d in RunThread (data=<optimized out>) at /root/parts/sdl/build/src/thread/pthread/SDL_systhread.c:76
#11 0x00007d87d6e27ac3 in ?? () from target:/lib/x86_64-linux-gnu/libc.so.6
#12 0x00007d87d6eb9850 in ?? () from target:/lib/x86_64-linux-gnu/libc.so.6
(gdb) 

I've also tried https://github.com/cgutman/FFmpeg.git branch moonlight_7_0_1 (instead of upstream) with same result.

cgutman commented 1 month ago

I think you're hitting https://trac.ffmpeg.org/ticket/10847 which is fixed upstream by https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=ca591e6b50ee616fc36711cc66d594e51209dddb

@maxiberta I pushed moonlight_7_0_2 to https://github.com/cgutman/FFmpeg.git with this fix cherry-picked. See if that resolves the crash in the snap.

maxiberta commented 1 month ago

@cgutman yes, it works now!! Thanks a lot.

picarica commented 1 month ago

how would i try the fix in linux ? download this ffmpeg library somehow and tell moonlight to use it ?