dots-hyprland icon indicating copy to clipboard operation
dots-hyprland copied to clipboard

ags bar crashes after screen turns off

Open thedirptastic opened this issue 11 months ago • 4 comments

  • I have read the Usage and Troubleshooting pages of the wiki: https://end-4.github.io/dots-hyprland-wiki/en/i-i/04troubleshooting/
  • I have made sure that both my config and system packages are up to date
  • Linux distro: Arch linux

The issue

Whenever I turn off my monitor, the ags bar crashes and i am sent to workspace 8. The app picker still works but the bar crashes and only restarts when ags is quit and reran

Logs
Gjs-Console-Message: 15:37:58.674: [LOG] Styles loaded

(com.github.Aylur.ags:17752): Gjs-Console-WARNING **: 15:37:58.721: Error: can't assign "chromium-browser" as icon, it is not a file nor a named icon
set icon@resource:///com/github/Aylur/ags/widgets/icon.js:45:30
_handleParamProp@resource:///com/github/Aylur/ags/widgets/widget.js:124:13
Icon@resource:///com/github/Aylur/ags/widgets/icon.js:25:14
newIcon@resource:///com/github/Aylur/ags/widgets/icon.js:8:12
ElementTile@file:///home/derp/.config/ags/modules/cheatsheet/periodictable.js:26:32
default/mainBoard<.children</<.children<@file:///home/derp/.config/ags/modules/cheatsheet/periodictable.js:62:58
default/mainBoard<.children<@file:///home/derp/.config/ags/modules/cheatsheet/periodictable.js:62:27
default@file:///home/derp/.config/ags/modules/cheatsheet/periodictable.js:60:33
SheetContent/sheetContents[id]<.children<@file:///home/derp/.config/ags/modules/cheatsheet/main.js:82:48
SheetContent@file:///home/derp/.config/ags/modules/cheatsheet/main.js:82:31
default@file:///home/derp/.config/ags/modules/cheatsheet/main.js:91:32
forMonitors@file:///home/derp/.config/ags/config.js:29:24
Windows@file:///home/derp/.config/ags/config.js:47:5
@file:///home/derp/.config/ags/config.js:75:14
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34
  

(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:04.904: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:186:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:239:32
_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:04.904: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncClients@resource:///com/github/Aylur/ags/service/hyprland.js:219:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:270:32
_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:04.904: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncWorkspaces@resource:///com/github/Aylur/ags/service/hyprland.js:206:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:271:32
async*_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:04.904: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:186:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:272:32
async*_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:04.904: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:186:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:246:32
_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:04.932: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:186:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:242:32
_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.940: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.941: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.942: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gdk-CRITICAL **: 15:39:04.943: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(com.github.Aylur.ags:17752): Gjs-WARNING **: 15:39:05.567: JS ERROR: Gio.IOErrorEnum: Could not connect: Resource temporarily unavailable
_connection@resource:///com/github/Aylur/ags/service/hyprland.js:127:14
_socketStream@resource:///com/github/Aylur/ags/service/hyprland.js:145:33
messageAsync@resource:///com/github/Aylur/ags/service/hyprland.js:170:43
_syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:186:36
_onEvent@resource:///com/github/Aylur/ags/service/hyprland.js:239:32
_watchSocket/<@resource:///com/github/Aylur/ags/service/hyprland.js:134:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34

thedirptastic avatar Dec 25 '24 23:12 thedirptastic

I encountered this question after updating my hyprland. hyprctl is not functioning as well. After some digging i found out that the /usr/lib/libhyprutils.so.1 was renamed to /usr/lib/libhyprutils.so.2. linking the file fixes for me.

sudo ln -s /usr/lib/libhyprutils.so.2 /usr/lib/libhyprutils.so.1

idadwind1 avatar Dec 29 '24 05:12 idadwind1

I encountered this question after updating my hyprland. hyprctl is not functioning as well. After some digging i found out that the /usr/lib/libhyprutils.so.1 was renamed to /usr/lib/libhyprutils.so.2. linking the file fixes for me.

sudo ln -s /usr/lib/libhyprutils.so.2 /usr/lib/libhyprutils.so.1

that did not seem to work for me. It still crashes ags whenever my screen is turned off.

thedirptastic avatar Jan 28 '25 02:01 thedirptastic

Does this still persist after updating to the latest version? Since we're using a stable version of Hyprland.

clsty avatar Feb 08 '25 09:02 clsty

Does this still persist after updating to the latest version? Since we're using a stable version of Hyprland.

This does still happen on the latest version of the dotfiles

thedirptastic avatar Feb 22 '25 17:02 thedirptastic

I seem to being having the same issue. Whenever I turn off my monitor I expect that the software treats the monitor as if nothing has changed, and my workspaces are indeed intact as to be expected. However, it seems that when I turn it back on AGS bar is completely gone and cursor has moved. Also, whenever I enter and exit full screen exactly four blank windows with a title of "com.github.aylur.ags" show up.

infiniwave avatar Jul 26 '25 17:07 infiniwave

We now use quickshell. The old AGSv1 version is no longer supported. Closing as not planned.

clsty avatar Jul 30 '25 02:07 clsty