end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.34k stars 218 forks source link

[Issue] ags not running #350

Closed NextStep-IM closed 4 months ago

NextStep-IM commented 4 months ago

(com.github.Aylur.ags:379774): Gjs-WARNING **: 15:47:50.142: JS ERROR: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data @ file:///home/samtheradiant/.config/ags/services/gemini.js:219:18
appendHistory@file:///home/samtheradiant/.config/ags/services/gemini.js:219:18
loadHistory@file:///home/samtheradiant/.config/ags/services/gemini.js:212:14
GeminiService@file:///home/samtheradiant/.config/ags/services/gemini.js:163:38
@file:///home/samtheradiant/.config/ags/services/gemini.js:328:16
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gtk-CRITICAL **: 15:47:50.212: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(com.github.Aylur.ags:379774): Gtk-CRITICAL **: 15:47:50.212: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(com.github.Aylur.ags:379774): Gtk-CRITICAL **: 15:47:50.213: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(com.github.Aylur.ags:379774): Gtk-CRITICAL **: 15:47:50.213: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(com.github.Aylur.ags:379774): Gtk-CRITICAL **: 15:47:50.213: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(com.github.Aylur.ags:379774): Gtk-CRITICAL **: 15:47:50.213: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(com.github.Aylur.ags:379774): Gjs-Console-CRITICAL **: 15:47:50.224: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-CRITICAL **: 15:47:50.224: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-Console-CRITICAL **: 15:47:50.225: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-CRITICAL **: 15:47:50.225: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-Console-CRITICAL **: 15:47:50.225: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-CRITICAL **: 15:47:50.225: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:377:60
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-Console-CRITICAL **: 15:47:50.226: Error: There is no window named overview
getWindow@resource:///com/github/Aylur/ags/app.js:140:27
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:379774): Gjs-CRITICAL **: 15:47:50.226: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined
update@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:334:26
default/OverviewRow/setup/<@file:///home/samtheradiant/.config/ags/modules/overview/overview_hyprland.js:398:39
hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

NotAF0e commented 4 months ago

I have a similar issue. I reloaded AGS with the key-bind but then all widgets disappeared and i was left with only a wallpaper and my cursor. I switched to another user or instance (not sure what it is called) using control+alt+f2 to close hyprland. I also rebooted many times but the widgets would never reappear. This may be an AGS issue but I am not certain.

Euroysx commented 4 months ago

on terminal run ags -q and ags -Init

howjack commented 4 months ago

For me it worked by running ags -q, ags --clear-cache and ags --init

cristoxdxd commented 4 months ago

It seems like the issue might be related to a cache conflict or an internal state inconsistency. When I ran the command ags --clear-cache after ags -q, I encountered the following error message:

(com.github.Aylur.ags:2559): GLib-GIO-CRITICAL **: 17:51:57.449: g_application_run: assertion '!application->priv->must_quit_now' failed

However, after trying only ags -q and ags --init followed by a system reboot, everything worked fine.

NextStep-IM commented 4 months ago

For me it worked by running ags -q, ags --clear-cache and ags --init

Worked for me too (temporarily).

I tried the command ags --clear-cache after the ags -q command and get this:

(com.github.Aylur.ags:2559): GLib-GIO-CRITICAL **: 17:51:57.449: g_application_run: assertion '!application->priv->must_quit_now' failed

Same error here.

Euroysx commented 4 months ago

ags -q ags --clear ags --clear-cache ags --Init

And next time dont reload by keybind instead the fix

clsty commented 4 months ago

It seems that the reason comes from an empty ~/.cache/ags/user/ai/chats/gemini.txt.

This is a workaround:

rm ~/.cache/ags/user/ai/chats/gemini.txt
pkill ags;ags

For me it worked by running ags -q, ags --clear-cache and ags --init

I guess this does the same thing, but more than needed.

clsty commented 4 months ago

The main problem comes from the

            Utils.exec(`bash -c 'mkdir -p ${HISTORY_DIR} && touch ${HISTORY_PATH}'`)

of .config/ags/services/gemini.js as it creates that empty ~/.cache/ags/user/ai/chats/gemini.txt every time when ags runs, which cause the appendHistory() JSON parse error.

I'll make a PR later.

Euroysx commented 4 months ago

And the volume controler - and + doesn't work too.

clsty commented 4 months ago

And the volume controler - and + doesn't work too.

@Euroysx Please open another issue for this problem.

cristoxdxd commented 4 months ago

It seems that the reason comes from an empty ~/.cache/ags/user/ai/chats/gemini.txt.

rm ~/.cache/ags/user/ai/chats/gemini.txt
pkill ags;ags

So, I need to re-run this every time I turn on my computer Any idea to avoid this, please

NextStep-IM commented 4 months ago

@cristoxdxd I believe the issue has been resolved with 883f388

iliass-ess commented 2 months ago

I have the same issue, after a fresh installation of EndeavourOS gnome flavour as recommended in the wiki, ags is not working.