-
-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault during playback #341
Comments
I have the exact same issue, I start using
Seems to require some interaction, clicking next, skipping ahead, but it might not happen every time. Since the issue happens after the line This didn't fix the issue, and it crashed again with the same error, including the libcuda warning. I don't even have an nvidia GPU either. |
I also have the same issue, Arch Linux and everything.
I tried running
There is a comment on the AUR page stating this is due to an mpv update and that rebuilding with |
Even with
The libcuda warning is a bug in the ffmpeg autoloading mechanism according to the mpv guys. It doesn't have any effect and is just a warning at startup, but for thoroughness' sake I've created
The rebuild fix was for the instantaneous crash at the app startup because of the new libmpv, see #336. |
Same fault, same symptoms (segfault when skipping around the video). I'm on Manjaro, just updated to the latest jellyfinmediaplayer (v 1.7.1 or 1.7.1-3 on the AUR). Here's a sample of the log file (
I also had the There is this comment on the AUR where someone has run
|
I am also getting a lot of crashing from segmentation fault core dumps, usually when I pause a video and play again at random but happens a lot , I am also getting playback issues. I am on Manjaro using the AUR package https://aur.archlinux.org/packages/jellyfin-media-player This started happening after the latest update to jellyfin mediaplayer. |
So yeah, this looks to be caused by pipewire or jmp's communication with pipewire. I tried running a release+debinfo build of jellyfin-media-player in gdb and it eventually segfaulted. This is the backtrace where it happened. I'll try installing pipewire with debug info as well to see a little more about why.
|
I have been experiencing this issue as well. As others mentioned, looks like a problem between mpv and pipewire. I have not been able to reproduce it skipping around in naked mpv though, just jellyfin-media-player. Here is a stack trace: [New Thread 0x7ffedd7916c0 (LWP 200650)] [Thread 0x7fff4ffff6c0 (LWP 200364) exited] [New Thread 0x7fff4ffff6c0 (LWP 200670)] [New Thread 0x7fff057fa6c0 (LWP 200671)] [New Thread 0x7fffd88676c0 (LWP 200672)] Thread 187 "ao-pipewire" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff4ffff6c0 (LWP 200670)] 0x00007fffd2f2fc3a in spa_list_remove (elem=0x7fffac16f288) at ../pipewire/spa/include/spa/utils/list.h:82 82 elem->next->prev = elem->prev; (gdb) thread apply all bt Thread 189 (Thread 0x7fffd88676c0 (LWP 200672) "mpv/mpv core"): #0 clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:62 #1 0x0000000000000000 in () Thread 188 (Thread 0x7fff057fa6c0 (LWP 200671) "mpv/mpv core"): #0 0x00007ffff5121096 in epoll_wait (epfd=153, events=events@entry=0x7fff057f9070, maxevents=32, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 #1 0x00007fffd305d5c9 in impl_pollfd_wait (object=<optimized out>, pfd=<optimized out>, ev=0x7fff057f9240, n_ev=<optimized out>, timeout=<optimized out>) at ../pipewire/spa/plugins/support/system.c:157 #2 0x00007fffd304fb2b in loop_iterate (object=0x7fffac17d008, timeout=-1) at ../pipewire/spa/plugins/support/loop.c:401 #3 0x00007ffff3770177 in do_loop (user_data=0x7fffac085580) at ../pipewire/src/pipewire/data-loop.c:81 #4 0x00007ffff509f8fd in start_thread (arg=<optimized out>) at pthread_create.c:442 #5 0x00007ffff5121a60 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 Thread 187 (Thread 0x7fff4ffff6c0 (LWP 200670) "ao-pipewire"): #0 0x00007fffd2f2fc3a in spa_list_remove (elem=0x7fffac16f288) at ../pipewire/spa/include/spa/utils/list.h:82 #1 core_event_demarshal_remove_id (data=<optimized out>, msg=<optimized out>) at ../pipewire/src/modules/module-protocol-native/protocol-native.c:400 #2 0x00007fffd2f27b5b in process_remote (impl=impl@entry=0x7fffac084100) at ../pipewire/src/modules/module-protocol-native.c:966 #3 0x00007fffd2f281f0 in on_remote_data (data=0x7fffac084100, fd=161, mask=1) at ../pipewire/src/modules/module-protocol-native.c:1000 #4 0x00007fffd304fc77 in loop_iterate (object=<optimized out>, timeout=<optimized out>) at ../pipewire/spa/plugins/support/loop.c:431 #5 0x00007ffff37b032a in do_loop (user_data=0x7fffac0484f0) at ../pipewire/src/pipewire/thread-loop.c:253 #6 0x00007ffff509f8fd in start_thread (arg=<optimized out>) at pthread_create.c:442 #7 0x00007ffff5121a60 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 Thread 186 (Thread 0x7ffedd7916c0 (LWP 200650) "mpv/ao"): #0 __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7ffedd790440, op=393, expected=0, futex_word=0x7fffac0e9fb8) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x7fffac0e9fb8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7ffedd790440, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff509c51f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7fffac0e9fb8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7ffedd790440, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff509efd4 in __pthread_cond_wait_common (abstime=0x7ffedd790440, clockid=0, mutex=0x7fffac0e9f68, cond=0x7fffac0e9f90) at pthread_cond_wait.c:503 #4 ___pthread_cond_timedwait64 (cond=0x7fffac0e9f90, mutex=0x7fffac0e9f68, abstime=0x7ffedd790440) at pthread_cond_wait.c:643 #5 0x00007ffff7c5b3dc in () at /usr/lib/libmpv.so.2 #6 0x00007ffff509f8fd in start_thread (arg=<optimized out>) at pthread_create.c:442 #7 0x00007ffff5121a60 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 --Type <RET> for more, q to quit, c to continue without paging-- There is an open issue about segfaults in pipewire (https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2877) but I cannot tell if they are related. |
The pipewire bug has been closed with the release of 0.3.63.
Still segfaulting. |
I am running pipewire version 0.3.54 and have not had any segfault issues. |
I am having this problem as well after running the latest updates on Manjaro. I can copy the URL stream into VLC and play it without any crashes, but in Jellyfin, basically I can expect a crash if I:
|
I see. For reference I'm seeing crashes with pipewire 0.3.63-1 on Arch Linux. I couldn't figure out how to create a DEBUG build of pipewire but looks like there's a separate troubleshooting guide. I'm not at my PC at the moment but should be by the weekend. Then I can try investigating a little more about the cause. |
I only get this issue after upgrading MPV. Most likely because I was originally not running a version of MPV with the pipewire output included. If I build the latest MPV master with:
as a build option, I don't get any segfaults. |
Am running Arch Linux also. Can confirm that downgrading mpv to 0.34.1 and then rebuilding JMP fixes this issue for me, at least for now. |
Without this change it segfaults when trying to play any media: $ jellyfinmediaplayer Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. libpng warning: iCCP: known incorrect sRGB profile Logging to /home/bf/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log Cannot load libcuda.so.1 Segmentation fault (core dumped) The backtrace shows pipewire being at fault: $ coredumpctl debug [...] Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so [Current thread is 1 (Thread 0x7f6ffdc87640 (LWP 1360949))] (gdb) bt #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #1 0x00007f711428886c in process_remote () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so NixOS#2 0x00007f7114288e68 in on_remote_data () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so NixOS#3 0x00007f7114310efe in loop_iterate () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/spa-0.2/support/libspa-support.so NixOS#4 0x00007f71266fe7f2 in do_loop () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/libpipewire-0.3.so.0 NixOS#5 0x00007f7128b08e86 in start_thread () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 NixOS#6 0x00007f7128b8fce0 in clone3 () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 (gdb) Standalone mpv doesn't segfault (when directly playing the underlying media files). I don't know why. Fixes: b97cda7 ("mpv-unwrapped: 0.34.1 -> 0.35.0") Fixes NixOS#205141 Ref jellyfin/jellyfin-media-player#341
Without this change it segfaults when trying to play any media: $ jellyfinmediaplayer Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. libpng warning: iCCP: known incorrect sRGB profile Logging to /home/bf/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log Cannot load libcuda.so.1 Segmentation fault (core dumped) The backtrace shows pipewire being at fault: $ coredumpctl debug [...] Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so [Current thread is 1 (Thread 0x7f6ffdc87640 (LWP 1360949))] (gdb) bt #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #1 0x00007f711428886c in process_remote () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #2 0x00007f7114288e68 in on_remote_data () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #3 0x00007f7114310efe in loop_iterate () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/spa-0.2/support/libspa-support.so #4 0x00007f71266fe7f2 in do_loop () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/libpipewire-0.3.so.0 #5 0x00007f7128b08e86 in start_thread () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 #6 0x00007f7128b8fce0 in clone3 () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 (gdb) Standalone mpv doesn't segfault (when directly playing the underlying media files). I don't know why. Fixes: b97cda7 ("mpv-unwrapped: 0.34.1 -> 0.35.0") Fixes #205141 Ref jellyfin/jellyfin-media-player#341
Without this change it segfaults when trying to play any media: $ jellyfinmediaplayer Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. libpng warning: iCCP: known incorrect sRGB profile Logging to /home/bf/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log Cannot load libcuda.so.1 Segmentation fault (core dumped) The backtrace shows pipewire being at fault: $ coredumpctl debug [...] Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so [Current thread is 1 (Thread 0x7f6ffdc87640 (LWP 1360949))] (gdb) bt #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #1 0x00007f711428886c in process_remote () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #2 0x00007f7114288e68 in on_remote_data () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #3 0x00007f7114310efe in loop_iterate () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/spa-0.2/support/libspa-support.so #4 0x00007f71266fe7f2 in do_loop () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/libpipewire-0.3.so.0 #5 0x00007f7128b08e86 in start_thread () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 #6 0x00007f7128b8fce0 in clone3 () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 (gdb) Standalone mpv doesn't segfault (when directly playing the underlying media files). I don't know why. Fixes: b97cda7 ("mpv-unwrapped: 0.34.1 -> 0.35.0") Fixes #205141 Ref jellyfin/jellyfin-media-player#341 (cherry picked from commit 3c528bc)
Without this change it segfaults when trying to play any media: $ jellyfinmediaplayer Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. libpng warning: iCCP: known incorrect sRGB profile Logging to /home/bf/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log Cannot load libcuda.so.1 Segmentation fault (core dumped) The backtrace shows pipewire being at fault: $ coredumpctl debug [...] Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so [Current thread is 1 (Thread 0x7f6ffdc87640 (LWP 1360949))] (gdb) bt #0 0x00007f711428c9bb in core_event_demarshal_remove_id () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #1 0x00007f711428886c in process_remote () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #2 0x00007f7114288e68 in on_remote_data () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/pipewire-0.3/libpipewire-module-protocol-native.so #3 0x00007f7114310efe in loop_iterate () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/spa-0.2/support/libspa-support.so #4 0x00007f71266fe7f2 in do_loop () from /nix/store/nhffrd7f15dhfbkwzgayq7hhzmdvdy19-pipewire-0.3.63-lib/lib/libpipewire-0.3.so.0 #5 0x00007f7128b08e86 in start_thread () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 #6 0x00007f7128b8fce0 in clone3 () from /nix/store/ayfr5l52xkqqjn3n4h9jfacgnchz1z7s-glibc-2.35-224/lib/libc.so.6 (gdb) Standalone mpv doesn't segfault (when directly playing the underlying media files). I don't know why. Fixes: b97cda7 ("mpv-unwrapped: 0.34.1 -> 0.35.0") Fixes #205141 Ref jellyfin/jellyfin-media-player#341 (cherry picked from commit 3c528bc)
Don't know which pipewire/mpv/jellyfin-update in the last months it was, but I don't have segfaults anymore. If somebody can confirm, I would close this issue. |
@MightyMrMuesli |
Fixed with updates. |
Since the update to mpv 0.35.0 from 0.34.1 and rebuild of Jellyfin Media Player with the new libmpv the app crashes reproducibly and constantly during playback if you skip, pause, resume or jump in a video. Cross-tested with Jellyfin for Android and exoplayer, no issues there, so I guess it isn't a problem in jellyfin-web. Logs appended, here's the segfault from terminal launch:
Steps to reproduce the behavior:
Desktop
jellyfinmediaplayer.log
The text was updated successfully, but these errors were encountered: