Closed slagiewka closed 3 weeks ago
Can you try running Sunshine manually instead of from the service?
Also, where did you get 0.0.0.b553f68d0f1f0b543ce4dcf6dfe61f208e87f237
from? I thought I fixed the version number in the UI, but maybe I missed something.
Also, where did you get
0.0.0.b553f68d0f1f0b543ce4dcf6dfe61f208e87f237
from? I thought I fixed the version number in the UI, but maybe I missed something.
As per bug reporting instructions, I used the binary
I don't think this has anything to do with the change to the packaging, but maybe from #3263.
Does copr let you try older builds? If so can you try this one?
@cgutman do you have some idea?
Does copr let you try older builds? If so can you try this one?
I also tested Sunshine-2024.1007.1553-1.fc40.x86_64
(ffmpeg update) and it segfaults indeed (core dumped).
Thanks! I found the reason for the version being wrong as well. I will get that fixed later today.
Version number should be fixed now, if you could test it that would be great.
Version number should be fixed now, if you could test it that would be great.
Version is OK now, crashes are still there (understandably).
➜ ~ sudo dnf install Sunshine-2024.1007.214114-1.fc40.x86_64 --refresh
Copr repo for beta owned by lizardbyte 7.5 kB/s | 1.5 kB 00:00
Copr repo for beta owned by lizardbyte 14 kB/s | 4.5 kB 00:00
Dependencies resolved.
==================================================================================================================================================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================================================================================================================================================
Upgrading:
Sunshine x86_64 2024.1007.214114-1.fc40 copr:copr.fedorainfracloud.org:lizardbyte:beta 7.4 M
Transaction Summary
==================================================================================================================================================================================================================================================================================
Upgrade 1 Package
Total download size: 7.4 M
Is this ok [y/N]: y
Downloading Packages:
Sunshine-2024.1007.214114-1.fc40.x86_64.rpm 5.2 MB/s | 7.4 MB 00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 5.2 MB/s | 7.4 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : Sunshine-2024.1007.214114-1.fc40.x86_64 1/2
Running scriptlet: Sunshine-2024.1007.214114-1.fc40.x86_64 1/2
Not in an rpm-ostree environment, proceeding with post install steps.
Reloading udev rules.
Udev rules reloaded successfully.
Running scriptlet: Sunshine-2024.1006.230920-1.fc40.x86_64 2/2
Cleanup : Sunshine-2024.1006.230920-1.fc40.x86_64 2/2
Running scriptlet: Sunshine-2024.1006.230920-1.fc40.x86_64 2/2
Upgraded:
Sunshine-2024.1007.214114-1.fc40.x86_64
Complete!
➜ ~ sunshine
[min_threads] -- [4]
[global_prep_cmd] -- [[{"do":"sh -c \"kscreen-doctor output.DP-3.mode.${SUNSHINE_CLIENT_WIDTH}x${SUNSHINE_CLIENT_HEIGHT}@${SUNSHINE_CLIENT_FPS} output.DP-3.scale.1\"","undo":"kscreen-doctor output.DP-3.mode.3840x2160@144 output.DP-3.scale.2"},{"do":"loginctl unlock-session","undo":""}]]
[min_log_level] -- [1]
[output_name] -- [0]
[resolutions] -- [[
352x240,
480x360,
858x480,
1280x720,
1920x1080,
2560x1080,
3440x1440,
1920x1200,
3860x2160,
3840x1600,
1280x800
]]
Warning: Unrecognized configurable option [resolutions]
[2024-10-08 09:12:40.537]: Info: Sunshine version: v2024.1007.214114
[2024-10-08 09:12:40.537]: Info: Package Publisher: LizardByte
[2024-10-08 09:12:40.537]: Info: Publisher Website: https://app.lizardbyte.dev
[2024-10-08 09:12:40.537]: Info: Get support: https://app.lizardbyte.dev/support
// snip
Can you show the entire thread stack output from the core dump? It looks cut off and the crashing thread is not present in the part you posted.
Can you show the entire thread stack output from the core dump? It looks cut off and the crashing thread is not present in the part you posted.
I don't get anything more than I already posted in https://github.com/LizardByte/Sunshine/issues/3268#issuecomment-2396881415
(ignore \ swapped with /, it's just Berkeley Mono Trial shenanigans)
I meant the part with the stack trace from your original report shown below:
~ journalctl --user -xeu sunshine.service
#0 0x00007f59850a2da9 __futex_abstimed_wait_common (libc.so.6 + 0x93da9)
#1 0x00007f59850a57f9 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x967f9)
#2 0x00007f59518a893d cnd_wait (radeonsi_dri.so + 0xa893d)
#3 0x00007f595188570b util_queue_thread_func (radeonsi_dri.so + 0x8570b)
#4 0x00007f59518a886c impl_thrd_routine (radeonsi_dri.so + 0xa886c)
#5 0x00007f59850a66d7 start_thread (libc.so.6 + 0x976d7)
#6 0x00007f598512a60c __clone3 (libc.so.6 + 0x11b60c)
Stack trace of thread 14882:
#0 0x00007f59851283dd syscall (libc.so.6 + 0x1193dd)
#1 0x00007f5988431ccd g_cond_wait (libglib-2.0.so.0 + 0xbbccd)
#2 0x00007f598839d61b g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0x2761b)
#3 0x00007f5988404a03 g_thread_pool_spawn_thread (libglib-2.0.so.0 + 0x8ea03)
#4 0x00007f5988403813 g_thread_proxy (libglib-2.0.so.0 + 0x8d813)
#5 0x00007f59850a66d7 start_thread (libc.so.6 + 0x976d7)
#6 0x00007f598512a60c __clone3 (libc.so.6 + 0x11b60c)
Stack trace of thread 14983:
#0 0x00007f59850a2da9 __futex_abstimed_wait_common (libc.so.6 + 0x93da9)
#1 0x00007f59850a57f9 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x967f9)
#2 0x00007f59518a893d cnd_wait (radeonsi_dri.so + 0xa893d)
#3 0x00007f595188570b util_queue_thread_func (radeonsi_dri.so + 0x8570b)
#4 0x00007f59518a886c impl_thrd_routine (radeonsi_dri.so + 0xa886c)
#5 0x00007f59850a66d7 start_thread (libc.so.6 + 0x976d7)
#6 0x00007f598512a60c __clone3 (libc.so.6 + 0x11b60c)
ELF object binary architecture: AMD x86-64
Ah, yes. You're indubitably right. There was more in journalctl on the second look.
I just upgraded to Fedora 41. The latest package, as well as the exact version with ffmpeg 7.1 update are working now. Fedora 41 ships ffmpeg 7.0.2 if that's of any help.
I'm going to still investigate this. Fedora 40 is the latest GA release of Fedora, so we shouldn't be shipping packages that crash on it.
Sorry, I thought this was resolved based on
update are working now
I was able to reproduce this and it's another bug in FFmpeg 7.1. It was fixed upstream in https://github.com/FFmpeg/FFmpeg/commit/48a1a12968345bf673db1e1cbb5c64bd3529c50c, but the fix has a use-after-free bug that I reported on the mailing list.
I also requested the fix be cherry-picked into release/7.1
. Hopefully they will do that so we can avoid having to carry a patch for months (and to avoid problems when building with vanilla FFmpeg).
Just wanted to report as well. I'm seeing the same error on my Fedora 40 Kinoite when I run using Wayland. It works fine with X11 though. I'm on the nightly build v2024.1015.41553
This is what happens when I run sunshine
from the terminal on Wayland (works perfectly on X11, though):
[2024-10-17 09:50:51.190]: Info: Sunshine version: v2024.1015.41553
[2024-10-17 09:50:51.190]: Info: Package Publisher: LizardByte
[2024-10-17 09:50:51.190]: Info: Publisher Website: https://app.lizardbyte.dev
[2024-10-17 09:50:51.190]: Info: Get support: https://app.lizardbyte.dev/support
Cannot load libcuda.so.1
[2024-10-17 09:50:51.206]: Error: Couldn't load cuda: -1
[2024-10-17 09:50:51.206]: Info: Found display [wayland-0]
[2024-10-17 09:50:51.206]: Info: Found interface: zxdg_output_manager_v1(31) version 3
[2024-10-17 09:50:51.206]: Info: Found interface: wl_output(64) version 4
[2024-10-17 09:50:51.206]: Warning: Missing Wayland wire for wlr-export-dmabuf
[2024-10-17 09:50:51.206]: Info: /dev/dri/card0 -> amdgpu
[2024-10-17 09:50:51.207]: Info: Found display [wayland-0]
[2024-10-17 09:50:51.207]: Info: Found display [wayland-0]
[2024-10-17 09:50:51.207]: Info: Found interface: zxdg_output_manager_v1(31) version 3
[2024-10-17 09:50:51.207]: Info: Found interface: wl_output(64) version 4
[2024-10-17 09:50:51.207]: Info: Resolution: 2560x1440
[2024-10-17 09:50:51.207]: Info: Offset: 0x0
[2024-10-17 09:50:51.207]: Info: Logical size: 2560x1440
[2024-10-17 09:50:51.207]: Info: Name: DP-3
[2024-10-17 09:50:51.207]: Info: Found monitor: HP Inc. OMEN by HP 27/#ASP89+1efL/d
[2024-10-17 09:50:51.207]: Info: -------- Start of KMS monitor list --------
[2024-10-17 09:50:51.207]: Info: Monitor 0 is DP-3: HP Inc. OMEN by HP 27/#ASP89+1efL/d
[2024-10-17 09:50:51.207]: Info: --------- End of KMS monitor list ---------
[2024-10-17 09:50:51.210]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024-10-17 09:50:51.210]: Info: Trying encoder [nvenc]
[2024-10-17 09:50:51.210]: Info: Screencasting with KMS
[2024-10-17 09:50:51.211]: Info: /dev/dri/card0 -> amdgpu
[2024-10-17 09:50:51.211]: Error: Couldn't find monitor [0]
[2024-10-17 09:50:51.211]: Info: /dev/dri/card0 -> amdgpu
[2024-10-17 09:50:51.212]: Error: Couldn't find monitor [0]
[2024-10-17 09:50:51.259]: Info: System tray created
[2024-10-17 09:50:51.412]: Info: Screencasting with KMS
[2024-10-17 09:50:51.412]: Info: /dev/dri/card0 -> amdgpu
[2024-10-17 09:50:51.413]: Error: Couldn't find monitor [0]
[2024-10-17 09:50:51.413]: Info: /dev/dri/card0 -> amdgpu
[2024-10-17 09:50:51.414]: Error: Couldn't find monitor [0]
[2024-10-17 09:50:51.614]: Info: Encoder [nvenc] failed
[2024-10-17 09:50:51.614]: Info: Trying encoder [vaapi]
[2024-10-17 09:50:51.614]: Info: Screencasting with KMS
[2024-10-17 09:50:51.616]: Info: /dev/dri/card0 -> amdgpu
[2024-10-17 09:50:51.616]: Info: Found monitor for DRM screencasting
[2024-10-17 09:50:51.616]: Info: Found connector ID [126]
[2024-10-17 09:50:51.617]: Info: Found cursor plane [88]
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2024-10-17 09:50:51.661]: Info: Creating encoder [h264_vaapi]
[2024-10-17 09:50:51.661]: Info: Color coding: SDR (Rec. 601)
[2024-10-17 09:50:51.661]: Info: Color depth: 8-bit
[2024-10-17 09:50:51.661]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2024-10-17 09:50:51.688]: Info: vaapi vendor: Mesa Gallium driver 24.1.7 for AMD Radeon RX 6750 XT (radeonsi, navi22, LLVM 18.1.8, DRM 3.59, 6.11.3-200.fc40.x86_64)
[2024-10-17 09:50:51.688]: Error: [h264_vaapi @ 0x2640c400] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2024-10-17 09:50:51.690]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2024-10-17 09:50:51.696]: Info: vaapi vendor: Mesa Gallium driver 24.1.7 for AMD Radeon RX 6750 XT (radeonsi, navi22, LLVM 18.1.8, DRM 3.59, 6.11.3-200.fc40.x86_64)
[2024-10-17 09:50:51.697]: Warning: [h264_vaapi @ 0x2675d200] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
[2024-10-17 09:50:51.722]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
[2024-10-17 09:50:51.722]: Error: Failed to read unit 4 (type 12).
[2024-10-17 09:50:51.722]: Error: Couldn't read packet: Invalid data found when processing input
[2024-10-17 09:50:51.727]: Info: Creating encoder [hevc_vaapi]
[2024-10-17 09:50:51.727]: Info: Color coding: SDR (Rec. 601)
[2024-10-17 09:50:51.727]: Info: Color depth: 8-bit
[2024-10-17 09:50:51.727]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2024-10-17 09:50:51.750]: Info: vaapi vendor: Mesa Gallium driver 24.1.7 for AMD Radeon RX 6750 XT (radeonsi, navi22, LLVM 18.1.8, DRM 3.59, 6.11.3-200.fc40.x86_64)
Segmentation fault (core dumped)
Just installed the latest build v2024.1020.30518
and the error still appears for me. I've reinstalled sunshine twice as well as rebooted my system after each install. I'd be curious to know if I'm the only one and if https://github.com/LizardByte/build-deps/commit/0170afdb1f17ed3d8acd4989faaf16816a92860c actually fixed the issue.
@luigiistcrazy that hasn't been merged into Sunshine yet.
@ReenigneArcher Ah I see, sorry for wasting your time.
@luigiistcrazy you can try after https://github.com/LizardByte/Sunshine/pull/3318 is merged, and after the pre-release builds.
@ReenigneArcher I can confirm this build solves the issue. Sunshine is working for me now on Fedora Workstation 40.
Just tested version v2024.1020.154020, and the issue is now solved for me too on Fedora Kinoite 40 running Wayland. Thank you for the fix @ReenigneArcher!
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
Just switched to the beta COPR repository from matte-schwartz/sunshine.
The process restarts 5 times while seg faulting and then the systemd service stops trying. Happened first with already existing config, and keeps happening even though I moved
~/.config/sunshine
to a backup and it created a default one on its own.Expected Behavior
No response
Additional Context
I can't wait to test it on Fedora 41 which has Mesa 24.2 with low latency encoding :slightly_smiling_face:
Host Operating System
Linux
Operating System Version
Fedora 40
Architecture
amd64/x86_64
Sunshine commit or version
0.0.0.b553f68d0f1f0b543ce4dcf6dfe61f208e87f237
Package
Linux - Fedora Copr
GPU Type
AMD
GPU Model
RX 6800
GPU Driver/Mesa Version
24.1.7
Capture Method
None
Config
No response
Apps
No response
Relevant log output