mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
987 stars 75 forks source link

[BUG] Hyprlock crash in wlogout on VM #397

Open nanolookc opened 1 day ago

nanolookc commented 1 day ago

Describe the bug Hyprlock crashing if i turn off my monitor - when it started by wlogout. It's very strange, because if i start hyprlock via terminal, with the same command (~/.config/hypr/scripts/power.sh lock, or just hyprlock) - everything is working okay.

The only thing that is different from others - is that it's VM with gpu passthrough.

To Reproduce Steps to reproduce the behavior:

  1. Click lock in the wlogout
  2. Turn off monitor
  3. Turn on monitor
  4. See message about died hyprlock

Expected behavior Well, working hyprlock

Distribution (please complete the following information):

I also tried to access logs, and added to sh script this - if [[ "$1" == "lock" ]]; then echo ":: Lock" echo "Running hyprlock..." >> /home/dima/test.log sleep 0.5 hyprlock > /home/dima/test.log fi

but log is saved only then i launch power.sh via terminal. File is empty when i start it via wlogout.

Thanks for the project!

nanolookc commented 1 day ago

In recent checks I found out what it doesn't crash if wlogout launched from hotkey or terminal. It crashes only if wlogout was open from waybar button.

mylinuxforwork commented 1 day ago

In recent checks I found out what it doesn't crash if wlogout launched from hotkey or terminal. It crashes only if wlogout was open from waybar button.

This is really strange. Shouldn’t be a different if starting from waybar or from the terminal.

nanolookc commented 1 day ago

If waybar launched from terminal - also same problem. Here is output.

❯ ~/.config/waybar/launch.sh :: Theme: /ml4w-blur-custom

~ ❯ [2024-11-04 16:36:38.138] [info] Using configuration file /home/dima/.config/waybar/themes/ml4w-blur-custom/config [2024-11-04 16:36:38.138] [info] Including resource file: ~/.config/ml4w/settings/waybar-quicklinks.json [2024-11-04 16:36:38.138] [info] Including resource file: ~/.config/waybar/modules.json [2024-11-04 16:36:38.141] [info] Discovered appearance 'dark' [2024-11-04 16:36:38.141] [info] Using CSS file /home/dima/.config/waybar/themes/ml4w-blur-custom/white/style.css [2024-11-04 16:36:38.147] [info] Hyprland IPC starting [2024-11-04 16:36:38.149] [info] Loading persistent workspaces from Waybar config [2024-11-04 16:36:38.149] [info] Loading persistent workspaces from Hyprland workspace rules

~ ❯ [2024-11-04 16:36:38.396] [info] Bar configured (width: 2880, height: 43) for output: DP-1 :: Lock :: Lock [2024-11-04 16:37:01.309] [info] Bar configured (width: 2880, height: 43) for output: DP-1

(waybar:25506): Gdk-CRITICAL **: 16:37:01.313: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed [2024-11-04 16:37:01.335] [info] Bar removed from output: DP-1

(waybar:25506): Gdk-CRITICAL **: 16:37:01.335: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(waybar:25506): Gdk-CRITICAL **: 16:37:01.335: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(waybar:25506): Gdk-CRITICAL **: 16:37:01.335: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(waybar:25506): Gdk-CRITICAL **: 16:37:01.335: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(waybar:25506): Gdk-CRITICAL **: 16:37:01.335: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(waybar:25506): Gdk-CRITICAL **: 16:37:01.335: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed [2024-11-04 16:37:07.229] [info] Loading persistent workspaces from Waybar config [2024-11-04 16:37:07.229] [info] Loading persistent workspaces from Hyprland workspace rules [2024-11-04 16:37:07.232] [warning] module backlight: Disabling module "backlight", No backlight found [2024-11-04 16:37:07.234] [warning] No batteries. [2024-11-04 16:37:07.365] [info] Bar configured (width: 2880, height: 43) for output: DP-1 ok ok ok ok