flathub / io.mpv.Mpv

https://flathub.org/apps/details/io.mpv.Mpv
11 stars 21 forks source link

smb is still broken on kde plasma #573

Closed Renner0E closed 24 minutes ago

Renner0E commented 5 days ago

Connect to a smb network share with dolphin on kde plasma

$ flatpak run io.mpv.Mpv --list-protocols | grep -i smb
smb://

relevant and also old links: https://pointieststick.com/2018/01/17/videos-on-samba-shares/ https://github.com/mpv-player/mpv/issues/14124 https://github.com/mpv-player/mpv/issues/8731 https://github.com/flathub/org.freedesktop.Platform.ffmpeg/issues/6 https://github.com/flathub/io.mpv.Mpv/pull/301

the current workaround is to remove smb in X-KDE-Protocols= from ~/.local/share/flatpak/exports/share/applications/io.mpv.Mpv.desktop

Can we ship a modifed .desktop file that removes it? This shouldn't break other desktops as they don't interact with X-KDE-Protocols I assume?

a sed command should be enough https://github.com/mpv-player/mpv/issues/8731#issuecomment-2095058817

journalctl -f when double clicking on video on smb share on kde plasma in dolphin:

Nov 16 16:07:45 mypc flatpak[516108]: Bad talloc magic value - unknown value
Nov 16 16:07:45 mypc systemd-coredump[516125]: Process 516108 (mpv-bin) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Nov 16 16:07:45 mypc audit: BPF prog-id=356 op=LOAD
Nov 16 16:07:45 mypc audit: BPF prog-id=357 op=LOAD
Nov 16 16:07:45 mypc audit: BPF prog-id=358 op=LOAD
Nov 16 16:07:45 mypc systemd[1]: Started systemd-coredump@12-516125-0.service - Process Core Dump (PID 516125/UID 0).
Nov 16 16:07:45 mypc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@12-516125-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 16:07:45 mypc audit: BPF prog-id=359 op=LOAD
Nov 16 16:07:45 mypc audit: BPF prog-id=360 op=LOAD
Nov 16 16:07:45 mypc audit: BPF prog-id=361 op=LOAD
Nov 16 16:07:45 mypc systemd[1]: Started drkonqi-coredump-processor@12-516125-0.service - Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Nov 16 16:07:45 mypc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=drkonqi-coredump-processor@12-516125-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 16:07:45 mypc systemd-coredump[516126]: Process 516108 (mpv-bin) of user 1000 dumped core.

Stack trace of thread 17:
#0  0x00007fcf41387d94 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x99d94)
#1  0x00007fcf4132f08e n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x4108e)
#2  0x00007fcf41316882 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x28882)
#3  0x00007fcf3e49a776 n/a (/app/lib/private/libtalloc-private-samba.so + 0x2776)
#4  0x00007fcf3940bcde n/a (/app/lib/libsmbconf.so.0.0.1 + 0x62cde)
#5  0x00007fcf4032314e n/a (/app/lib/libsmbclient.so.0.8.0 + 0xd14e)
#6  0x00007fcf403237b7 n/a (/app/lib/libsmbclient.so.0.8.0 + 0xd7b7)
#7  0x00007fcf4324237c n/a (/app/lib/libavformat.so.61.7.100 + 0x4237c)
ELF object binary architecture: AMD x86-64
Nov 16 16:07:45 mypc systemd[1]: systemd-coredump@12-516125-0.service: Deactivated successfully.
Nov 16 16:07:45 mypc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@12-516125-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 16:07:45 mypc systemd[1]: systemd-coredump@12-516125-0.service: Consumed 252ms CPU time, 144.2M memory peak.
Nov 16 16:07:45 mypc systemd[4092]: app-io.mpv.Mpv@2cef527fc4c84be9a7b0bee979e883f3.service: Main process exited, code=exited, status=134/n/a
Nov 16 16:07:45 mypc systemd[4092]: app-io.mpv.Mpv@2cef527fc4c84be9a7b0bee979e883f3.service: Failed with result 'exit-code'.
fastrizwaan commented 11 hours ago

@Renner0E is it working?

Renner0E commented 24 minutes ago

Yes it works for me. The smb entry from X-KDE-Protocols is gone from ~/.local/share/flatpak/exports/share/applications/io.mpv.Mpv.desktop

Thank you so much <3