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

Launching from Google Chrome causes mpv to crash #3

Open
aleasto opened this issue Dec 5, 2021 · 10 comments
Open

Launching from Google Chrome causes mpv to crash #3

aleasto opened this issue Dec 5, 2021 · 10 comments

Comments

@aleasto
Copy link
Contributor

aleasto commented Dec 5, 2021

mpv: symbol lookup error: mpv: undefined symbol: vkCreateWaylandSurfaceKHR

Running xdg-open directly from terminal works fine. Launching from firefox works fine. What is chrome doing?

@sergiomb2
Copy link
Contributor

@sergiomb2
Copy link
Contributor

What is chrome doing?

I also had some issues with Chrome ...

@aleasto
Copy link
Contributor Author

aleasto commented Dec 6, 2021

Fedora 35.

Though some packages were never rebuilt for fc35:

acestream-engine-3.1.49-6.fc34.x86_64
openjpeg-libs-1.5.1-29.fc34.x86_64
python2-setuptools-41.2.0-4.fc34.noarch

I don't know if this used to work in previous fedora versions.

The error also happens in an x11 environment, so i'll update the title.

@aleasto aleasto changed the title Launching from Google Chrome under wayland causes mpv to crash Launching from Google Chrome causes mpv to crash Dec 6, 2021
@aleasto
Copy link
Contributor Author

aleasto commented Dec 6, 2021

Sorry, this looks to be caused by rpmfusion build of mpv.
Switching to unitedrpm build downgraded some dependencies but fixed the crash.

@aleasto
Copy link
Contributor Author

aleasto commented Dec 6, 2021

libvulkan.so.1 => /opt/google/chrome/libvulkan.so.1 (0x00007f65435b2000)

Launching from chrome is making it use their libvulkan. No clue why it works with unitedrpm mpv.
In both cases readelf -s shows:

Num:    Value          Size Type    Bind   Vis      Ndx Name
550: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND vkCreateWaylandSurfaceKHR

@2-4601
Copy link

2-4601 commented Dec 14, 2021

I've never used this program but found out this issue through a Google search.

In my case I'm using https://github.com/SanderRonde/CustomRightClickMenu to open mpv via Google Chrome and I'm getting the same error:

mpv: symbol lookup error: mpv: undefined symbol: vkCreateWaylandSurfaceKHR

I'm using a Google Chrome package from the AUR which is basically the Debian package that Google maintains (with a few Arch Linux specific patches). The .deb comes with Google's own version of libvulkan.so.1 which does not have vkCreateWaylandSurfaceKHR (as described in the comment above). I was able to solve this by linking the Google supplied libvulkan.so.1 to the Arch supplied one (provided by vulkan-icd-loader). This solved the issue for me.

Edit: See #3 (comment) for a better solution.

@sergiomb2
Copy link
Contributor

sergiomb2 commented Dec 14, 2021

ah or just remove /opt/google/chrome-beta/libvulkan.so.1 , worked for me .

Anyway I don't use wayland

@aleasto
Copy link
Contributor Author

aleasto commented Dec 14, 2021

Yeah i have proposed this supid fix upstream: jonian/acestream-launcher#44
I don't know if you're interested in picking it up for fedora.

@2-4601
Copy link

2-4601 commented Dec 14, 2021

I took a look at your PR and it inspired me to create a more maintainable solution for my use case:
I created a wrapper shell script for mpv, which simply unsets LD_LIBRARY_PATH and then launches mpv.

@miXwui
Copy link

miXwui commented Jan 4, 2022

I don't use acestream or whatever this repo is for, but have the same issue trying to launch a video in mpv from Gnome Nautilus on Sway, and it seems to be a Wayland/Vulkan issue? I got here from a web search so leaving this in case it helps someone else.

I got inspiration from this thread, thanks!

Error in journal:

 mpv: symbol lookup error: mpv: undefined symbol: vkCreateWaylandSurfaceKHR

Setting/clearing LD_LIBRARY_PATH= in /usr/share/applications/mpv.desktop fixed the issue for me:

...
Exec=env LD_LIBRARY_PATH= mpv --player-operation-mode=pseudo-gui -- %U
...

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

4 participants