Skip to content
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

mpv: symbol lookup error: mpv: undefined symbol: wl_proxy_marshal_flags #60

Open
alandiwix opened this issue Apr 23, 2022 · 13 comments
Open

Comments

@alandiwix
Copy link

Receiving this as the only log for the crash upon start. Issues mpv-player/mpv#9941 and mpv-player/mpv#9676 in mpv repository suggest that the wayland library is outdated.

@fastrizwaan
Copy link
Collaborator

fastrizwaan commented Apr 23, 2022

Could you test the flathub package? I use mpv flatpak on Debian and Fedora silverblue on Intel gpu wayland.

Does flatpak package crash for you?

https://flatpak.org/setup/ (see arch setup)

https://flathub.org/apps/details/io.mpv.Mpv

@alandiwix
Copy link
Author

@fastrizwaan
Thank you for the answer. I use flatpaked mpv. That flatpak package crashes, otherwise I would report to main mpv repository.
Are you saying that this is not reproducable on your setup?
Seems strange, we should have the same wayland/mpv lib versions, because of the same runtime, right?
This started to happen after some last flatpak update.
I also tried flatpak repair command and rolling back to previous distribution versions (all libs/binaries outside of sandbox) and this is still reproducable.

@fastrizwaan
Copy link
Collaborator

flatpak repair is like fsck for sandbox.

get the previous commits you want
flatpak remote-info --log flathub io.mpv.Mpv

downgrade to commit, for example:
sudo flatpak update --commit=a4328d4a2456c019da63db3d233943db88ec194ae820bda36cb5c0d5fbcaf779 io.mpv.Mpv

@alandiwix
Copy link
Author

@fastrizwaan
Commit 52066a7b244aab1104474a1b12dda9ffc69ab26a34c85ee302c557da5dad2800 breaks it for me.
So, the last working commit is 0638585c501a9b2017650a8fbb78ecfec6b3f960af5cca8cac53c4b931768d5b.

@fastrizwaan
Copy link
Collaborator

@alandiwix I'll start commits daily once from yt-dlp fix f322d7e, please report it a new commit crashes mpv on you.

@alandiwix
Copy link
Author

@fastrizwaan
Thanks. Switched to the latest commit and indeed mpv crashes with the same message.

@fastrizwaan
Copy link
Collaborator

That's bad. I guess you are having trouble in Arch Linux. Which flavor do you use? I'll try installing your distro and test the various updates locally.

@alandiwix
Copy link
Author

@fastrizwaan Many thanks. It's actually Alpine Linux.
Would you kindly explain it a bit, I thought this was related to the wayland libraries inside the sandbox, but we just discovered that this is a problem in outside distro?

@fastrizwaan
Copy link
Collaborator

fastrizwaan commented Apr 25, 2022

The sandbox's libraries access distro's libraries/services (here wayland, xorg, pulseaudio, kernel drivers, etc.) to work.

I'll install alphine stable to check.

@alandiwix
Copy link
Author

@fastrizwaan
Could you try Alpine Edge? E.g. by changing repos from latest-stable to edge in /etc/apk/repositories?
Thank you.

@fastrizwaan
Copy link
Collaborator

fastrizwaan commented Apr 25, 2022

@alandiwix The current version works on my system. Also apk add celluloid , mpv based player in alpine works as expected. Perhaps you are missing some packages. you may install them from my shared file at google (see below).
Screenshot from 2022-04-25 14-05-27
.

alpine:~$ cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.0_alpha20220328
PRETTY_NAME="Alpine Linux edge"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

alpine:~$ flatpak run io.mpv.Mpv --version
mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
FFmpeg library versions:
   libavutil       56.70.100
   libavcodec      58.134.100
   libavformat     58.76.100
   libswscale      5.9.100
   libavfilter     7.110.100
   libswresample   3.9.100
FFmpeg version: 4.4
alpine:~$ flatpak remote-info --log flathub io.mpv.Mpv|more
        ID: io.mpv.Mpv
       Ref: app/io.mpv.Mpv/x86_64/stable
      Arch: x86_64
    Branch: stable
Collection: org.flathub.Stable
  Download: 24.7 MB
 Installed: 61.2 MB
   Runtime: org.freedesktop.Platform/x86_64/21.08
       Sdk: org.freedesktop.Sdk/x86_64/21.08

    Commit: dac63f58453c937e31271e57fed1f2315123f904ef82be84cbe3251f6e42ec2c
    Parent: 719b79d06b97e3e880b10fc3137411b4465bd7f082aaae2fcb46aa75df6890cc
   Subject: switch to yt-dlp fix (b1ee4498)
      Date: 2022-04-24 15:28:39 +0000
...

And finally all the packages I installed on alpine linux
https://drive.google.com/file/d/1OiFaah-8pJXQKEfbRIy2GIrTwS5vZO6h/view?usp=sharing

@fastrizwaan
Copy link
Collaborator

I've built all the updates on alpine linux using flatpak-builder, tested them and they all work.

It took me around 5 hours to set up alpine linux and setup the development environment and build mpv flatpak and test the updates. It was good experience. Alpine is a complicated distro to install and setup ;-)

IMO, as alpine does not handle dependencies properly, you must be missing packages or alphine edge (development version) has broken packages/drivers.

Please test on stable too.

@alandiwix
Copy link
Author

@fastrizwaan
Many thanks for the complete research. As I said, rollback to previous systems (btrfs snapshots, dating way before the issue showed up) didn't help, the only thing that helps is rolling back io.mpv.Mpv flatpak package. I guess I will use io.mpv.Mpv commit 0638585c501a9b2017650a8fbb78ecfec6b3f960af5cca8cac53c4b931768d5b for now and try to look into what could actually cause incompability. Can we leave the issue open for the tracking purposes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants