Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Launch script failing to start after a hyprland crash.

Open sashk4 opened this issue 1 year ago • 2 comments

I was using the shell just fine for about a week then all of a sudden my Hyprland instance crashed earlier and now the Shell no longer initiates properly, returning this error:

❯ uwsm-app $(python /home/user/.config/Ax-Shell/main.py)
2025-05-11 22:53:26.809 | WARNING  | fabric.widgets.wayland:do_handle_post_show_request:293 - [WaylandWindow] showing an empty window is not recommended, some compositors might freak out.
2025-05-11 22:53:26.818 | DEBUG    | fabric.hyprland.widgets:do_initialize:454 - [Language] found language: English (US) for keyboard video-bus
2025-05-11 22:53:26.819 | INFO     | fabric.hyprland.widgets:do_initialize:464 - [Language] Set language: English (US) for keyboard: .*
2025-05-11 22:53:26.819 | INFO     | fabric.hyprland.widgets:on_ready:416 - [Language] Connected to the hyprland socket
2025-05-11 22:53:26.820 | INFO     | services.brightness:__init__:71 - Brightness service initialized for device: amdgpu_bl2
2025-05-11 22:53:26.866 | WARNING  | fabric.widgets.wayland:do_handle_post_show_request:293 - [WaylandWindow] showing an empty window is not recommended, some compositors might freak out.
2025-05-11 22:53:26.868 | DEBUG    | modules.notifications:_cleanup_orphan_cached_images:844 - Starting orphan cached image cleanup.
2025-05-11 22:53:26.868 | DEBUG    | modules.notifications:_cleanup_orphan_cached_images:851 - No cached image files found, skipping cleanup.

(main.py:3357): Gtk-CRITICAL **: 22:53:27.048: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(main.py:3357): Gtk-CRITICAL **: 22:53:27.049: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(main.py:3357): Gtk-CRITICAL **: 22:53:27.050: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
2025-05-11 22:53:27.111 | INFO     | fabric.hyprland.widgets:on_ready:362 - [ActiveWindow] Connected to the hyprland socket
2025-05-11 22:53:27.112 | DEBUG    | modules.cavalcade:_start_io_reader:83 - Activating GLib IO watch for cava stream handler
2025-05-11 22:53:27.113 | DEBUG    | modules.cavalcade:_run_process:68 - Launching cava process...
2025-05-11 22:53:27.118 | DEBUG    | modules.cavalcade:_run_process:77 - cava successfully launched!
2025-05-11 22:53:27.129 | WARNING  | fabric.widgets.wayland:do_handle_post_show_request:293 - [WaylandWindow] showing an empty window is not recommended, some compositors might freak out.
Traceback (most recent call last):
  File "/home/user/.config/Ax-Shell/main.py", line 32, in <module>
    dock = Dock()
  File "/home/user/.config/Ax-Shell/modules/dock.py", line 91, in __init__
    self.config = read_config()
                  ~~~~~~~~~~~^^
  File "/home/user/.config/Ax-Shell/modules/dock.py", line 40, in read_config
    app = app_map.get(app_id)
TypeError: unhashable type: 'dict'
Error: Command not found: "False"

sashk4 avatar May 12 '25 02:05 sashk4

Huh, what a weird error. Try deleting the dock.json, looks like it can't read it properly. Maybe it got corrupted?

rm ~/.config/Ax-Shell/config/dock.json

You can backup it if you want, just in case this doesn't solve the issue and you don't want to lose your pinned icons.

Axenide avatar May 12 '25 22:05 Axenide

Huh, what a weird error. Try deleting the dock.json, looks like it can't read it properly. Maybe it got corrupted?

rm ~/.config/Ax-Shell/config/dock.json

You can backup it if you want, just in case this doesn't solve the issue and you don't want to lose your pinned icons.

for whatever reason, this worked. thanks

sashk4 avatar May 14 '25 04:05 sashk4