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

libmpv1 deprecated on Ubuntu 24.02 LTS/Linux Mint 22 #270

Open
FlameSoulis opened this issue Nov 10, 2024 · 6 comments
Open

libmpv1 deprecated on Ubuntu 24.02 LTS/Linux Mint 22 #270

FlameSoulis opened this issue Nov 10, 2024 · 6 comments
Assignees
Labels
bug Something isn't working build system

Comments

@FlameSoulis
Copy link

Attempting to setup the build environment for this project requires libmpv1, which is no longer available as of Ubuntu 24.02 and, by extension, Linux Mint 22. Compiling with libmpv2 does work with a few warnings, but I have been unsuccessful in running the project, resulting in errors related to #228.

/linux-wallpaperengine /home/flame/.steam/debian-installation/steamapps/workshop/content/431960/3133917889/ [1109/212414.801860:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior. [1109/212415.936080:FATAL:zygote_host_impl_linux.cc(215)] Check failed: . : Invalid argument (22) [1] 24563 trace trap (core dumped) ./linux-wallpaperengine --list-properties

I have both symlinked and directly copied the assets folder in case the auto-detection did not work. This is being tested using x11/Cinnamon.

CMake Log: cmake.log

Build Log: build.log

@xuniversus
Copy link

you can do a temporary fix by symlinking libmpv.so.1 to libmpv.so.2, ln -s /lib/x86_64-linux-gnu/libmpv.so.2 /lib/x86_64-linux-gnu/libmpv.so.1, at least for when you build it from source. Don't know what will happen for built binaries.
Still get the [1109/212414.801860:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior. which is worrisome and would like to know why.

@Almamu
Copy link
Owner

Almamu commented Nov 25, 2024

The crash seems to be unrelated to the change to libmpv actually. Looks like CEF doesn't like some parameters, I'll need to investigate this a bit further. The warning about root_cache_path is something we should be able to remove too.

@Almamu Almamu added bug Something isn't working build system labels Nov 25, 2024
@FlameSoulis
Copy link
Author

Anything I can do to provide more information or test? I'm a bit rusty when it comes to debugging, let alone in Linux.

@WiBlum
Copy link

WiBlum commented Feb 26, 2025

Hello, I got the same issue after building and testing the app, doing --no-sandbox or running as root return something just like this :

wiblum@WiBlumMiX:/media/795FF77D55816222/SteamLibrary/steamapps/common/wallpaper_engine$ sudo ./linux-wallpaperengine 2344239224 --no-sandbox
[0226/201801.277824:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
[0226/201802.536269:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[0226/201802.536609:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
./linux-wallpaperengine: unrecognized option '--no-sandbox'
Default on path parsing: 
Cannot find workshop directory for steam app 431960 and content 2344239224
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot find workshop directory for steam app 431960 and content 2344239224
Aborted

And then crash (same without sudo)

wiblum@WiBlumMiX:/media/795FF77D55816222/SteamLibrary/steamapps/common/wallpaper_engine$ ./linux-wallpaperengine 2344239224 --no-sandbox
[0226/202405.842166:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
./linux-wallpaperengine: unrecognized option '--no-sandbox'
Default on path parsing: 
Cannot find workshop directory for steam app 431960 and content 2344239224
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot find workshop directory for steam app 431960 and content 2344239224
Aborted (core dumped)

Running it normally :

wiblum@WiBlumMiX:/media/795FF77D55816222/SteamLibrary/steamapps/common/wallpaper_engine$ ./linux-wallpaperengine 2344239224
[0226/202417.141940:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
[0226/202418.864676:FATAL:zygote_host_impl_linux.cc(215)] Check failed: . : Invalid argument (22)
Trace/breakpoint trap (core dumped)

And it also seems like the app won't respond for any others arguments that have an impact on something from the workshop or the steam app (--list-properties)
Also what is that CefSettings.root_cache_path ? I can't really find it anyway on the github repo. I don't check all subfolder or else but I just wonder where to correctly set it.

Also this bug always get an issue with zygote, it may be related to a zygote version that isn't very compatible with the script, I'll check that later.

@WiBlum
Copy link

WiBlum commented Feb 26, 2025

Can I ask you a simple question, did you use something like electron 34, because I remember seeing zygote or zenity thing in another app that I got trouble to run.
I'm talking about cider which had a similar issue with zenity, same error and they told this is probably an hardware acceleration issue, which is 1 of the issue I had with steam and other chromium browser (like electron)

Issue from cider2 : ciderapp/Cider-2#929
Direct post : ciderapp/Cider-2#929 (comment)

I don't think it's a electron issue since I don't remember seeing wallpaper engine using some kind of electron but it's probably good to see if someone else as already explained what can make a zygote 215 error.
anyway I'll search a bit more

@WiBlum
Copy link

WiBlum commented Feb 26, 2025

EDIT OF EDIT :
Sorry if I spend to much message, I got a way to make it run even if it doesn't due to zenity, it turn out that it's related to an hardware acceleration issue or something from zenity and the gpu, chrome and cider had this issue when the Nvidia driver or else are, hmm not working as excepted, here is how I can manage to make it run, on the cpu ;-;

Image

I simply used --no-sandbox flag and tell the full path of the wallpaper I installed from the workshop.
I used 1845706469 as a test :

./linux-wallpaperengine /media/795FF77D55816222/SteamLibrary/steamapps/workshop/content/431960/1845706469 --no-sandbox

here is full log when it worked :

wiblum@WiBlumMiX:/media/795FF77D55816222/SteamLibrary/steamapps/common/wallpaper_engine$ ./linux-wallpaperengine /media/795FF77D55816222/SteamLibrary/steamapps/workshop/content/431960/1845706469 --no-sandbox
[0226/221938.684779:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
./linux-wallpaperengine: unrecognized option '--no-sandbox'
Default on path parsing: 
Cannot find directory for steam app wallpaper_engine: assets
Detected "scene.pkg" file at "/media/795FF77D55816222/SteamLibrary/steamapps/workshop/content/431960/1845706469/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "/media/795FF77D55816222/SteamLibrary/steamapps/workshop/content/431960/1845706469/gifscene.pkg". Defaulting to normal folder storage
WARNING: Shader patches directory cannot be found, this might make some backgrounds not work properly
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
Resorting to default value as type "options" is unknown
[mp3 @ 0x55cb172dd380] Estimating duration from bitrate, this may be inaccurate
Resorting to default value as type "imageblending" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "audioprocessingoptions" is unknown
Resorting to default value as type "imageblending" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "options" is unknown
Resorting to default value as type "imageblending" is unknown
Shutting down CEF
[0226/222030.289973:ERROR:gpu_process_host.cc(986)] GPU process launch failed: error_code=1002
[0226/222030.290631:WARNING:gpu_process_host.cc(1362)] The GPU process has crashed 1 time(s)
[0226/222030.299747:ERROR:gpu_process_host.cc(986)] GPU process launch failed: error_code=1002
[0226/222030.300199:WARNING:gpu_process_host.cc(1362)] The GPU process has crashed 2 time(s)
Stop requested

As you can see it struggle to process with my GPU, it's a Nvidia RTX 3080 and here is other useful information if needed
OS: Debian GNU/Linux bookworm/sid x86_64
Kernel: 6.1.0-21-amd64
Uptime: 5 hours, 18 mins
Packages: 5060 (dpkg), 50 (flatpak), 11 (snap)
Shell: bash 5.2.15
Resolution: 1920x1080, 1920x1080
WM: i3
CPU: Intel i7-6850K (6) @ 4.000GHz
GPU: NVIDIA GeForce RTX 3080
Memory: 6006MiB / 32007MiB

Package: nvidia-driver
Version: 570.86.10-1

And other apps like torch in python can see the gpu and use it :

wiblum@WiBlumMiX:/media/795FF77D55816222/SteamLibrary/steamapps/common/wallpaper_engine$ python3 -c "import torch; print(torch.cuda.is_available())"
True

I haven't try it yet with my liquorix kernel but since it's a kernel that only does optimization (in gaming as example) I'll pass.

Using --no-sandox and full path, I wasn't able to pass the 1 fps wall with my current CPU I go check why does it won't work on the gpu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build system
Projects
None yet
Development

No branches or pull requests

4 participants