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

[Issue] ags bar crashes after screen turns off #1021

Open
thedirptastic opened this issue Dec 25, 2024 · 1 comment
Open

[Issue] ags bar crashes after screen turns off #1021

thedirptastic opened this issue Dec 25, 2024 · 1 comment

Comments

@thedirptastic
Copy link


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 thedirptastic changed the title [Issue] [Issue] ags bar crashes after screen turns off Dec 25, 2024
@idadwind1
Copy link

idadwind1 commented Dec 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants