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

parole: "The stream is taking too much time to load" #304308

Closed
bobby285271 opened this issue Apr 15, 2024 · 6 comments
Closed

parole: "The stream is taking too much time to load" #304308

bobby285271 opened this issue Apr 15, 2024 · 6 comments
Labels
0.kind: bug Something is broken 2.status: fix-in-staging This issue has been fixed in staging but is not yet in the channels or master 6.topic: xfce The Xfce Desktop Environment

Comments

@bobby285271
Copy link
Member

bobby285271 commented Apr 15, 2024

Describe the bug

I was trying to play https://download.samplelib.com/webm/sample-5s.webm with parole and I got "The stream is taking too much time to load" (this also applies to the other formats in https://filesamples.com/categories/video).

I don't quite understand what is happening, but the issue does not happen on a Xubuntu 24.04.beta VM so I would blame on my packaging or my nixos-config first 😓

Under a nix-shell -p gst_all_1.gst-plugins-base -p gst_all_1.gst-plugins-good -p gst_all_1.gst-plugins-bad -p gst_all_1.gstreamer shell, I tried gst-play-1.0 /path/to/sample-5s.webm it opens and plays as expected.

Console output with GST_DEBUG=3 (but as gst-play-1.0 plays I doubt if that is actually a gst issue):

0:00:09.726416439 161444      0x1bb5a10 WARN                 basesrc gstbasesrc.c:3693:gst_base_src_start_complete:<source> pad not activated yet
0:00:09.726597391 161444      0x1bb5a10 WARN                 basesrc gstbasesrc.c:3693:gst_base_src_start_complete:<source> pad not activated yet
0:00:09.789239366 161444 0x7f6c84000ff0 FIXME          matroskademux matroska-demux.c:683:gst_matroska_demux_parse_colour:<matroskademux0> Unsupported subelement 0x55b7 in Colour
0:00:09.789251671 161444 0x7f6c84000ff0 FIXME          matroskademux matroska-demux.c:683:gst_matroska_demux_parse_colour:<matroskademux0> Unsupported subelement 0x55b8 in Colour
0:00:09.792135985 161444 0x7f6c84000ff0 WARN      matroskareadcommon matroska-read-common.c:762:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown CueTrackPositions subelement 0xf0 - ignoring
0:00:09.792150721 161444 0x7f6c84000ff0 WARN      matroskareadcommon matroska-read-common.c:762:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown CueTrackPositions subelement 0xf0 - ignoring
0:00:10.966247509 161444 0x7f6c84000db0 WARN               cudanvrtc gstcudanvrtc.c:148:gst_cuda_nvrtc_load_library_once: Could not open nvrtc library libnvrtc.so: cannot open shared object file: No such file or directory
0:00:11.056816375 161444 0x7f6c84001830 WARN             xvimagepool xvimagepool.c:159:xvimage_buffer_pool_set_config:<xvimagebufferpool0> different size, stride and/or offset, update
0:00:11.057226364 161444 0x7f6c84000db0 WARN             xvimagepool xvimagepool.c:159:xvimage_buffer_pool_set_config:<xvimagebufferpool0> different size, stride and/or offset, update
0:00:11.061118757 161444 0x7f6c84001830 WARN             xvimagepool xvimagepool.c:159:xvimage_buffer_pool_set_config:<xvimagebufferpool1> different size, stride and/or offset, update
0:00:11.061328841 161444 0x7f6c84000db0 WARN             xvimagepool xvimagepool.c:159:xvimage_buffer_pool_set_config:<xvimagebufferpool1> different size, stride and/or offset, update
0:00:16.749745205 161444 0x7f6c3800f8c0 WARN                   pulse pulsesink.c:704:gst_pulsering_stream_underflow_cb:<audio-actual-sink-pulse> Got underflow
check state

Output of xargs --null --max-args=1 echo < /proc/$(pgrep -xf parole)/environ:

SHELL=/run/current-system/sw/bin/zsh
__ETC_PROFILE_DONE=1
XDG_CONFIG_DIRS=/etc/xdg:/home/bobby285271/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/bobby285271/.nix-profile/etc/xdg:/nix/profile/etc/xdg:/home/bobby285271/.local/state/nix/profile/etc/xdg:/etc/profiles/per-user/bobby285271/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_MENU_PREFIX=xfce-
GTK_IM_MODULE=fcitx
XCURSOR_PATH=/home/bobby285271/.icons:/home/bobby285271/.local/share/icons:/home/bobby285271/.local/share/flatpak/exports/share/icons:/home/bobby285271/.local/share/flatpak/exports/share/pixmaps:/var/lib/flatpak/exports/share/icons:/var/lib/flatpak/exports/share/pixmaps:/home/bobby285271/.nix-profile/share/icons:/home/bobby285271/.nix-profile/share/pixmaps:/nix/profile/share/icons:/nix/profile/share/pixmaps:/home/bobby285271/.local/state/nix/profile/share/icons:/home/bobby285271/.local/state/nix/profile/share/pixmaps:/etc/profiles/per-user/bobby285271/share/icons:/etc/profiles/per-user/bobby285271/share/pixmaps:/nix/var/nix/profiles/default/share/icons:/nix/var/nix/profiles/default/share/pixmaps:/run/current-system/sw/share/icons:/run/current-system/sw/share/pixmaps
XMODIFIERS=@im=fcitx
DESKTOP_SESSION=xfce
GDK_PIXBUF_MODULE_FILE=/nix/store/hmq99fd2lmf3p378rf948bqkghradgl6-librsvg-2.57.92/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
NO_AT_BRIDGE=1
GPG_TTY=不是一个 tty
EDITOR=nano
XDG_SEAT=seat0
PWD=/home/bobby285271
NIX_PROFILES=/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/bobby285271 /home/bobby285271/.local/state/nix/profile /nix/profile /home/bobby285271/.nix-profile /var/lib/flatpak/exports /home/bobby285271/.local/share/flatpak/exports
LOGNAME=bobby285271
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_TYPE=x11
CUPS_DATADIR=/nix/store/15gca1ljdl01scvdidwnx2ll1f86a94b-cups-progs/share/cups
NIX_PATH=/home/bobby285271/.nix-defexpr/channels:nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels
NIXPKGS_CONFIG=/etc/nix/nixpkgs-config.nix
XAUTHORITY=/home/bobby285271/.Xauthority
TZ=Asia/Shanghai
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/bobby285271
GDM_LANG=zh_CN.utf8
HOME=/home/bobby285271
SSH_ASKPASS=/nix/store/86vvk8yvk9jhh0jzyc2av6iskmby7rjg-x11-ssh-askpass-1.2.4.1/libexec/x11-ssh-askpass
LANG=zh_CN.UTF-8
XDG_CURRENT_DESKTOP=XFCE
GIO_EXTRA_MODULES=/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules:/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules:/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules:/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules:/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules:/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules:/nix/store/iv9bfnnnycgpsbsx4k9ncn6dpwrmrmmm-gvfs-1.52.2/lib/gio/modules:/nix/store/qnb5ng8dvgqr2fbvhlxy5nfvf1sgcrk6-glib-networking-2.78.1/lib/gio/modules:/nix/store/4w42z3xzhsr0zxqy9w3mag42n73n1xwz-dconf-0.40.0-lib/lib/gio/modules
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
GTK_A11Y=none
NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/bobby285271
INFOPATH=/home/bobby285271/.local/share/flatpak/exports/info:/home/bobby285271/.local/share/flatpak/exports/share/info:/var/lib/flatpak/exports/info:/var/lib/flatpak/exports/share/info:/home/bobby285271/.nix-profile/info:/home/bobby285271/.nix-profile/share/info:/nix/profile/info:/nix/profile/share/info:/home/bobby285271/.local/state/nix/profile/info:/home/bobby285271/.local/state/nix/profile/share/info:/etc/profiles/per-user/bobby285271/info:/etc/profiles/per-user/bobby285271/share/info:/nix/var/nix/profiles/default/info:/nix/var/nix/profiles/default/share/info:/run/current-system/sw/info:/run/current-system/sw/share/info
XDG_SESSION_CLASS=user
TERM=dumb
GTK_PATH=/home/bobby285271/.local/share/flatpak/exports/lib/gtk-2.0:/home/bobby285271/.local/share/flatpak/exports/lib/gtk-3.0:/home/bobby285271/.local/share/flatpak/exports/lib/gtk-4.0:/var/lib/flatpak/exports/lib/gtk-2.0:/var/lib/flatpak/exports/lib/gtk-3.0:/var/lib/flatpak/exports/lib/gtk-4.0:/home/bobby285271/.nix-profile/lib/gtk-2.0:/home/bobby285271/.nix-profile/lib/gtk-3.0:/home/bobby285271/.nix-profile/lib/gtk-4.0:/nix/profile/lib/gtk-2.0:/nix/profile/lib/gtk-3.0:/nix/profile/lib/gtk-4.0:/home/bobby285271/.local/state/nix/profile/lib/gtk-2.0:/home/bobby285271/.local/state/nix/profile/lib/gtk-3.0:/home/bobby285271/.local/state/nix/profile/lib/gtk-4.0:/etc/profiles/per-user/bobby285271/lib/gtk-2.0:/etc/profiles/per-user/bobby285271/lib/gtk-3.0:/etc/profiles/per-user/bobby285271/lib/gtk-4.0:/nix/var/nix/profiles/default/lib/gtk-2.0:/nix/var/nix/profiles/default/lib/gtk-3.0:/nix/var/nix/profiles/default/lib/gtk-4.0:/run/current-system/sw/lib/gtk-2.0:/run/current-system/sw/lib/gtk-3.0:/run/current-system/sw/lib/gtk-4.0
LESSOPEN=|/nix/store/8s2ami46scjf0gi1zvi8m0q0ma1f4zpx-lesspipe-2.11/bin/lesspipe.sh %s
USER=bobby285271
NIXPKGS_NO_GC_PATH=/nix/store/ap5lz6xz4hmzw3m99npx109xcmyjx5dy-NVIDIA-Linux-x86_64-550.67.run
TZDIR=/etc/zoneinfo
SHLVL=0
PAGER=less
QTWEBKIT_PLUGIN_PATH=/home/bobby285271/.local/share/flatpak/exports/lib/mozilla/plugins/:/var/lib/flatpak/exports/lib/mozilla/plugins/:/home/bobby285271/.nix-profile/lib/mozilla/plugins/:/nix/profile/lib/mozilla/plugins/:/home/bobby285271/.local/state/nix/profile/lib/mozilla/plugins/:/etc/profiles/per-user/bobby285271/lib/mozilla/plugins/:/nix/var/nix/profiles/default/lib/mozilla/plugins/:/run/current-system/sw/lib/mozilla/plugins/
QT_IM_MODULE=fcitx
__NIXOS_SET_ENVIRONMENT_DONE=1
XDG_VTNR=7
XDG_SESSION_ID=2
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive
LESSKEYIN_SYSTEM=/nix/store/5vwij6xxhb072sc0j5561v7fin3mcfbd-lessconfig
TERMINFO_DIRS=/home/bobby285271/.local/share/flatpak/exports/share/terminfo:/var/lib/flatpak/exports/share/terminfo:/home/bobby285271/.nix-profile/share/terminfo:/nix/profile/share/terminfo:/home/bobby285271/.local/state/nix/profile/share/terminfo:/etc/profiles/per-user/bobby285271/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/run/current-system/sw/share/terminfo
XDG_RUNTIME_DIR=/run/user/1000
NIX_XDG_DESKTOP_PORTAL_DIR=/run/current-system/sw/share/xdg-desktop-portal/portals
JOURNAL_STREAM=8:13481
XDG_DATA_DIRS=/nix/store/7nd40iv1qrqsq8qcn16i86syq5gd4j0z-parole-4.18.1/share:/nix/store/glky0wjlb1jc81awd8ddajr4fay1w27w-gsettings-desktop-schemas-45.0/share/gsettings-schemas/gsettings-desktop-schemas-45.0:/nix/store/207cqakykajjglbs6mwrprijwkanhnzz-gtk+3-3.24.41/share/gsettings-schemas/gtk+3-3.24.41:/nix/store/x78d8wqyanc7yydph94r8lgb7rcbbb32-xfce4-panel-4.18.6/share:/nix/store/glky0wjlb1jc81awd8ddajr4fay1w27w-gsettings-desktop-schemas-45.0/share/gsettings-schemas/gsettings-desktop-schemas-45.0:/nix/store/207cqakykajjglbs6mwrprijwkanhnzz-gtk+3-3.24.41/share/gsettings-schemas/gtk+3-3.24.41:/nix/store/qkq57madfv1z6k31mi05b8b0bkym0rbj-xfce4-session-4.18.3/share:/nix/store/glky0wjlb1jc81awd8ddajr4fay1w27w-gsettings-desktop-schemas-45.0/share/gsettings-schemas/gsettings-desktop-schemas-45.0:/nix/store/207cqakykajjglbs6mwrprijwkanhnzz-gtk+3-3.24.41/share/gsettings-schemas/gtk+3-3.24.41:/nix/store/9way60w0b68c38brn8mksm8qr3rsan1w-desktops/share:/home/bobby285271/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/bobby285271/.nix-profile/share:/nix/profile/share:/home/bobby285271/.local/state/nix/profile/share:/etc/profiles/per-user/bobby285271/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
LIBEXEC_PATH=/home/bobby285271/.local/share/flatpak/exports/libexec:/var/lib/flatpak/exports/libexec:/home/bobby285271/.nix-profile/libexec:/nix/profile/libexec:/home/bobby285271/.local/state/nix/profile/libexec:/etc/profiles/per-user/bobby285271/libexec:/nix/var/nix/profiles/default/libexec:/run/current-system/sw/libexec
PATH=/home/bobby285271/.local/bin:/home/bobby285271/.local/bin:/home/bobby285271/.local/bin:/home/bobby285271/bin:/home/bobby285271/.local/bin:/run/wrappers/bin:/home/bobby285271/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/bobby285271/.nix-profile/bin:/nix/profile/bin:/home/bobby285271/.local/state/nix/profile/bin:/etc/profiles/per-user/bobby285271/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
GDMSESSION=xfce
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
QT_PLUGIN_PATH=/nix/store/b4xm5zpnd4hipsaska45dhb07sa0zx7g-fcitx5-with-addons-5.1.8/lib/qt-6/plugins
OLDPWD=/home/bobby285271
SESSION_MANAGER=local/inspiron:@/tmp/.ICE-unix/2674,unix/inspiron:/tmp/.ICE-unix/2674
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GI_TYPELIB_PATH=/nix/store/k6w1cjkpmpsmw39rqncw7vwyzdrykd8v-at-spi2-core-2.50.2/lib/girepository-1.0:/nix/store/9wl0rx7wn7chgicphfqn1r2dms7rvdbg-gdk-pixbuf-2.42.10/lib/girepository-1.0:/nix/store/glky0wjlb1jc81awd8ddajr4fay1w27w-gsettings-desktop-schemas-45.0/lib/girepository-1.0:/nix/store/gq09qzwrnbqqldazwfcqsa9mq7lsbxii-harfbuzz-8.3.0/lib/girepository-1.0:/nix/store/w7iaprz99m5y0qx54lxwsrirgjgd02ha-pango-1.51.2/lib/girepository-1.0:/nix/store/207cqakykajjglbs6mwrprijwkanhnzz-gtk+3-3.24.41/lib/girepository-1.0:/nix/store/hmq99fd2lmf3p378rf948bqkghradgl6-librsvg-2.57.92/lib/girepository-1.0:/nix/store/vagz2643bbmxwdgzaz33l0ap46qhqr8y-gobject-introspection-wrapped-1.78.1/lib/girepository-1.0:/nix/store/yngr12ly47y8c01f706brn8y7y09s9q7-gobject-introspection-1.78.1/lib/girepository-1.0:/nix/store/kfhkgqhr06kbb75syvblw3jhzvhrsgl5-garcon-4.18.2/lib/girepository-1.0:/nix/store/fh82h5vj4gkayfk2f4d436p7wdfvar9k-libdbusmenu-gtk3-16.04.0/lib/girepository-1.0:/nix/store/9wwbczfww5hspj8b5s3yr2h58srq11km-libxfce4util-4.18.2/lib/girepository-1.0:/nix/store/xnxvgbhjj5zq91s845xd4icn03ij3ng1-libxfce4ui-4.18.6/lib/girepository-1.0:/nix/store/l7dpyblk6z2c3kfpvh5p4pifvvyqbxp9-libwnck-43.0/lib/girepository-1.0:/nix/store/nd2lnnrgk91d2wav1ahld7m5w1dhzc1c-xfconf-4.18.3/lib/girepository-1.0:/nix/store/x78d8wqyanc7yydph94r8lgb7rcbbb32-xfce4-panel-4.18.6/lib/girepository-1.0
PANEL_GDK_CORE_DEVICE_EVENTS=0
DISPLAY=:0.0
DESKTOP_STARTUP_ID=wrapper-2.0/parole/2788-0-inspiron_TIME24600
GST_PLUGIN_SYSTEM_PATH_1_0=/nix/store/x6hka3dlw5jm795anby9kjirmxigiqri-gst-plugins-bad-1.22.9/lib/gstreamer-1.0:/nix/store/yghc55hj59j65hq5qvrzxvx22crj50xb-gstreamer-1.22.9/lib/gstreamer-1.0:/nix/store/czff6w8sr2s3kbj9v43cfb21ks2jzqcb-gst-plugins-base-1.22.9/lib/gstreamer-1.0:/nix/store/c3y1bfr3qz496g7rrmpcxvry9dmz9s11-gst-plugins-good-1.22.9/lib/gstreamer-1.0:/nix/store/fkbh02s3mqy2rb80j3pwfsp758xvfpn5-gst-plugins-ugly-1.22.9/lib/gstreamer-1.0

I took a look on how the message can be shown, and it is the timeout added in https://github.com/xfce-mirror/parole/blob/728b5fcb09930182c4d23d140e4c67190daab978/src/gst/parole-gst.c#L2312.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Download the mentioned video
  2. Open with parole
  3. Try to play it

Expected behavior

The video plays.

Screenshots

Notify maintainers

@romildo @muscaln (and me 😂 )

Metadata

Nixpkgs cfd6b5f

@bobby285271 bobby285271 added 0.kind: bug Something is broken 6.topic: xfce The Xfce Desktop Environment labels Apr 15, 2024
@romildo
Copy link
Contributor

romildo commented Apr 15, 2024

On my unstable system the video plays normally.

@bobby285271
Copy link
Member Author

bobby285271 commented Apr 16, 2024

I guess I will do the bisect then (I guess I have to build VMs to properly test this?).

Oh no d035354...7d2eb73 contains a staging merge... (I guess I would manually pick commits for testing)

If I am bisecting this correctly, it looks like the xdg-utils bump breaks this. @K900 any ideas? (parole is also broken for me on a Plasma 6 X11 session so testing there should be fine)

@romildo
Copy link
Contributor

romildo commented Apr 16, 2024

On my unstable system the video plays normally.

That was yesterday in labwc, in wayland, and it works.

I have tried today with XFCE, LXQt, Enlightenment, and Awesome, and it did not worked.

image

@bobby285271
Copy link
Member Author

bobby285271 commented Apr 17, 2024

Alright, so the bisect probably explains why xdg-screensaver crashes the same time as soon as I try to play some video with parole

I tried plain bash -x /run/current-system/sw/bin/xdg-screensaver resume <id> and here are the outputs:

+ export PERL5LIB=/nix/store/0c4dmiylwy3z6ca0dq413759z33ysfqh-perl5.38.2-Net-DBus-1.2.0/lib/perl5/site_perl:/nix/store/dc67y0n5p3yhvyga267rwg1v12wx2iqv-perl5.38.2-XML-Twig-3.52/lib/perl5/sit
e_perl:/nix/store/3mdd4yagk64hkl1r95xbc07312b7n3cn-perl5.38.2-XML-Parser-2.46/lib/perl5/site_perl:/nix/store/hmap42md266vgkwhznh8v5l2gd9qxmnq-perl5.38.2-X11-Protocol-0.56/lib/perl5/site_perl
+ PERL5LIB=/nix/store/0c4dmiylwy3z6ca0dq413759z33ysfqh-perl5.38.2-Net-DBus-1.2.0/lib/perl5/site_perl:/nix/store/dc67y0n5p3yhvyga267rwg1v12wx2iqv-perl5.38.2-XML-Twig-3.52/lib/perl5/site_perl:
/nix/store/3mdd4yagk64hkl1r95xbc07312b7n3cn-perl5.38.2-XML-Parser-2.46/lib/perl5/site_perl:/nix/store/hmap42md266vgkwhznh8v5l2gd9qxmnq-perl5.38.2-X11-Protocol-0.56/lib/perl5/site_perl
+ export PATH=/home/bobby285271/.local/bin:/home/bobby285271/.local/bin:/home/bobby285271/.local/bin:/home/bobby285271/bin:/home/bobby285271/.local/bin:/run/wrappers/bin:/home/bobby285271/.l
ocal/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/bobby285271/.nix-profile/bin:/nix/profile/bin:/home/bobby285271/.local/state/nix/profile/bin:/etc/profiles/per-user/bobby285
271/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/ifzwv2xqwdnv1gz87rxkizi67py5p3vj-coreutils-9.4/bin
+ PATH=/home/bobby285271/.local/bin:/home/bobby285271/.local/bin:/home/bobby285271/.local/bin:/home/bobby285271/bin:/home/bobby285271/.local/bin:/run/wrappers/bin:/home/bobby285271/.local/sh
are/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/bobby285271/.nix-profile/bin:/nix/profile/bin:/home/bobby285271/.local/state/nix/profile/bin:/etc/profiles/per-user/bobby285271/bin
:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/ifzwv2xqwdnv1gz87rxkizi67py5p3vj-coreutils-9.4/bin
+ check_common_commands resume 67108871
+ '[' 2 -gt 0 ']'
+ parm=resume
+ shift
+ case "$parm" in
+ '[' 1 -gt 0 ']'
+ parm=67108871
+ shift
+ case "$parm" in
+ '[' 0 -gt 0 ']'
+ '[' -z '' ']'
+ unset XDG_UTILS_DEBUG_LEVEL
+ '[' 0 -lt 1 ']'
+ xdg_redirect_output=' > /dev/null 2> /dev/null'
+ /nix/store/ifzwv2xqwdnv1gz87rxkizi67py5p3vj-coreutils-9.4/bin/mv -T ... ...
+ /nix/store/avqi5nnx7qydr078ssgifc2hgzqipqgx-gnugrep-3.11/bin/grep '\.\.\.'
+ DEBUG 1 'mv -T available'
+ '[' -z '' ']'
+ return 0
+ MV='mv -T'
++ echo :0.0
++ /nix/store/237dff1igc3v09p9r23a37yw8dr04bv6-gnused-4.9/bin/sed s/:/-/g
+ screensaver_file=/tmp/xdg-screensaver-bobby285271--0.0
++ command -v /nix/store/8l572fp5svwp2x1izz2avji8l0ysxkq4-procmail-3.24/bin/lockfile
+ lockfile_command=/nix/store/8l572fp5svwp2x1izz2avji8l0ysxkq4-procmail-3.24/bin/lockfile
++ command -v xprop
+ XPROP=/run/current-system/sw/bin/xprop
+ '[' xresume '!=' x ']'
+ action=
+ window_id=
+ case $1 in
+ action=resume
+ shift
+ '[' -z 67108871 ']'
+ window_id=67108871
+ check_window_id
+ '[' -z /run/current-system/sw/bin/xprop ']'
+ DEBUG 2 'Running /run/current-system/sw/bin/xprop -id 67108871'
+ '[' -z '' ']'
+ return 0
+ /run/current-system/sw/bin/xprop -id 67108871
+ DEBUG 3 Window 67108871 exists
+ '[' -z '' ']'
+ return 0
+ detectDE
+ unset GREP_OPTIONS
+ '[' -n XFCE ']'
+ case "${XDG_CURRENT_DESKTOP}" in
+ DE=xfce
+ '[' -z xfce ']'
+ '[' -z xfce ']'
+ '[' -z xfce ']'
+ '[' xxfce = xgnome ']'
+ '[' -f /run/user/1000/flatpak-info ']'
+ xscreensaver-command -version
+ /nix/store/avqi5nnx7qydr078ssgifc2hgzqipqgx-gnugrep-3.11/bin/grep XScreenSaver
+ /nix/store/97vmhshyk6k22zyn31jzzcsrrrk83g6h-dbus-1.14.10/bin/dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.Sc
reenSaver
+ /nix/store/97vmhshyk6k22zyn31jzzcsrrrk83g6h-dbus-1.14.10/bin/dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.mate.Scr
eenSaver
+ /nix/store/97vmhshyk6k22zyn31jzzcsrrrk83g6h-dbus-1.14.10/bin/dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.cinnamon
.ScreenSaver
+ xautolock -enable
+ '[' resume = resume ']'
+ do_resume
+ lockfile
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock
+ '[' -n lockfile ']'

After many

+ '[' -n lockfile ']'
+ lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-bobby285271--0.0.lock

it crashes in the end

@bobby285271
Copy link
Member Author

Okay, so here is the problem,

after resholve the script looks like this cat /run/current-system/sw/bin/xdg-screensaver | grep -C 10 'lockfile()':

# blah blah blah

lockfile()
{
  if [ -n "lockfile" ] ; then
     lockfile -1 -l 10 -s 3 "$screensaver_file".lock
  else
     # blah blah blah
  fi
}

# blah blah blah

So there is a lockfile function in the xdg-screensaver and inside the function we are running lockfile -1 -l 10 -s 3 "$screensaver_file".lock, that is a infinite recursion.

This is probably due to cee1312 we have fix."$lockfile_command" = [ "lockfile" ];

(If anyone has fast computer please feel free to PR, otherwise it might take me a while to do that)

@K900
Copy link
Contributor

K900 commented Apr 17, 2024

Oof. I'll send in a fix in a bit.

@bobby285271 bobby285271 added the 2.status: fix-in-staging This issue has been fixed in staging but is not yet in the channels or master label Apr 18, 2024
@vcunat vcunat closed this as completed in 5a98ab8 Apr 19, 2024
@JohnRTitor JohnRTitor added this to Xfce Jun 21, 2024
@JohnRTitor JohnRTitor moved this to Done in Xfce Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 2.status: fix-in-staging This issue has been fixed in staging but is not yet in the channels or master 6.topic: xfce The Xfce Desktop Environment
Projects
Status: Done
Development

No branches or pull requests

3 participants