Almamu / linux-wallpaperengine

Wallpaper Engine backgrounds for Linux!
GNU General Public License v3.0
1.64k stars 61 forks source link

[BGFIX] src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000 #217

Open voskresenie7 opened 4 months ago

voskresenie7 commented 4 months ago

Wallpaper Engine Background(s)

2912032831, 1570316986, etc

Console output

./linux-wallpaperengine /run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/2912032831 ./linux-wallpaperengine: /usr/lib/steam/libcurl.so.4: no version information available (required by /usr/lib/libsixel.so.1) [0515/211547.495815: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. /home/user/Desktop/DEV/linux-wallpaperengine/build/linux-wallpaperengine: /usr/lib/steam/libcurl.so.4: no version information available (required by /usr/lib/libsixel.so.1) /home/user/Desktop/DEV/linux-wallpaperengine/build/linux-wallpaperengine: /usr/lib/steam/libcurl.so.4: no version information available (required by /usr/lib/libsixel.so.1) Cannot find directory for steam app wallpaper_engine: assets Detected "scene.pkg" file at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/2912032831/scene.pkg". Adding to list of searchable paths No "gifscene.pkg" file found at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/2912032831/gifscene.pkg". Defaulting to normal folder storage terminate called after throwing an instance of 'WallpaperEngine::Assets::CAssetLoadException' what(): Cannot find file : Cannot find directory src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

Aborted (core dumped)

Desktop (please complete the following information):

Almamu commented 4 months ago

Are you using the --asset-dir parameter to specify where the assets folder of Wallpaper Engine is stored so It can properly display backgrounds? Looking at the paths you're using looks like you have steam installed in a non-common directory, so you need to specify both the background's folder and the assets folder for it to work...

voskresenie7 commented 4 months ago

Now it could run but shows black screen. Is there anything that I missed? thanks for your help

$ ./linux-wallpaperengine --assets-dir /run/media/user/hdd/SteamLibrary/steamapps/common/wallpaper_engine/assets /run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/2912032831 [0518/082523.911868: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. Using wallpaper engine's assets at "/run/media/user/hdd/SteamLibrary/steamapps/common/wallpaper_engine/assets" based on --assets-dir parameter Detected "scene.pkg" file at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/2912032831/scene.pkg". Adding to list of searchable paths No "gifscene.pkg" file found at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/2912032831/gifscene.pkg". Defaulting to normal folder storage TurbulentVelocityRandom initializer must have a phasemax value Boolean property doesn't have user member, this could mean an scripted value

(linux-wallpaperengine:285960): Gtk-WARNING **: 08:25:24.158: gtk_disable_setlocale() must be called before gtk_init() src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

Almamu commented 4 months ago

Please try with the latest commit and see if it fixes the issue.

voskresenie7 commented 4 months ago

Now I can show background image! but there are some problems. it does not work with --screen-root option.

$ ./linux-wallpaperengine --assets-dir /run/media/user/hdd/SteamLibrary/steamapps/common/wallpaper_engine/assets /run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/1570316986 --screen-root HDMI-A-1
[0522/094003.273673: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.
Using wallpaper engine's assets at "/run/media/user/hdd/SteamLibrary/steamapps/common/wallpaper_engine/assets" based on --assets-dir parameter
Detected "scene.pkg" file at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/1570316986/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/1570316986/gifscene.pkg". Defaulting to normal folder storage
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 run in background mode, window server could not be detected. XDG_SESSION_TYPE must be wayland or x11
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot run in background mode, window server could not be detected. XDG_SESSION_TYPE must be wayland or x11
src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

Aborted (core dumped)

XDG_SESSION_TYPE is already set in my environment..

$ echo $XDG_SESSION_TYPE
wayland

What should I do then?

Almamu commented 4 months ago

@voskresenie7 You might want to run cmake again as there were some changes to how the detection is performed that rely on the build system to detect what features to enable.

voskresenie7 commented 4 months ago

I build from scratch again but there is still problem.

git clone https://github.com/Almamu/linux-wallpaperengine.git
cd linux-wallpaperengine
mkdir build && cd build
cmake ..
make -j64
./linux-wallpaperengine --assets-dir /run/media/user/hdd/SteamLibrary/steamapps/common/wallpaper_engine/assets /run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/1570316986 --screen-root HDMI-A-1

and same result as before

[0524/121128.543493: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.
Using wallpaper engine's assets at "/run/media/user/hdd/SteamLibrary/steamapps/common/wallpaper_engine/assets" based on --assets-dir parameter
Detected "scene.pkg" file at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/1570316986/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "/run/media/user/hdd/SteamLibrary/steamapps/workshop/content/431960/1570316986/gifscene.pkg". Defaulting to normal folder storage
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 run in background mode, window server could not be detected. XDG_SESSION_TYPE must be wayland or x11
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot run in background mode, window server could not be detected. XDG_SESSION_TYPE must be wayland or x11
src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:130: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

Aborted (core dumped)

thanks for help

woaeo commented 1 month ago

Ive been experiancing same issue, when i do just ./linux-wallpaperengine with id, just a window would popup (with working wallpaper, but only window). and also when i do --screen-root i get

[0814/014938.177324: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.
No "scene.pkg" file found at "/home/XXXX/.local/share/Steam/steamapps/workshop/content/431960/2873417398/scene.pkg". Defaulting to normal folder storage
No "gifscene.pkg" file found at "/home/XXXX/.local/share/Steam/steamapps/workshop/content/431960/2873417398/gifscene.pkg". Defaulting to normal folder storage
WARNING: Shader patches directory cannot be found, this might make some backgrounds not work properly
Cannot run in background mode, window server could not be detected. XDG_SESSION_TYPE must be wayland or x11
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot run in background mode, window server could not be detected. XDG_SESSION_TYPE must be wayland or x11
src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

Aborted (core dumped)
$ echo $XDG_SESSION_TYPE
wayland

Did you find out how to solve this issue?