end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.95k stars 267 forks source link

[Issue] AGS freeze after open any file in VLC #279

Open clsty opened 7 months ago

clsty commented 7 months ago

After running pkill ags;ags, output:

Click to expand ```plain (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:95:30: '' is not a valid color name (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:95:44: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:96:46: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:97:41: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:98:47: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:99:49: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:100:44: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:105:41: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:106:43: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:107:47: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:108:49: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:109:42: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:110:44: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:112:60: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:113:62: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:116:45: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:117:55: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:119:55: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:120:57: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:121:56: Expected a valid selector (com.github.Aylur.ags:45130): Gtk-WARNING **: 22:22:35.865: Theme parsing error: gtk.css:122:58: Expected a valid selector (com.github.Aylur.ags:45130): Gjs-WARNING **: 22:22:36.156: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your mysit expression. Stack trace of the failed promise: _init/GLib.MainLoop.prototype.runAsync/ img = Image.open(sys.argv[2]) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/PIL/Image.py", line 3247, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'undefined' Traceback (most recent call last): File "/home/mys/.config/ags/scripts/color_generation/generate_colors_material.py", line 20, in img = Image.open(sys.argv[2]) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/PIL/Image.py", line 3247, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'undefined' Error: Expected type filename for Array element but got type 'undefined' ```

Here, AGS still works as normal.

However, when I switch to VLC, press Ctrl+O, select a video (or audio) file and press Enter to open it, AGS freeze immediately, in the meantime the output shows a new line:

(com.github.Aylur.ags:45130): LIBDBUSMENU-GLIB-WARNING **: 22:22:56.607: Unable to replace properties on 0: Error getting properties for ID

AGS will continue to freeze until I pkill ags;ags again.

After its restart, it will not freeze, despite that VLC is still playing the previous opened video file. And it will freeze again if VLC opens another file.

This phenomenon is 100% repeatable on my PC.

end-4 commented 7 months ago

i did this 6 times it occurred only once

clsty commented 7 months ago

I've tested again on latest version of this repo.

It seems that opening a music file is much less possible to freeze than opening a video file.

clsty commented 6 months ago

Cool, I just noticed that the problem disappeared. Don't know why but this is fixed, either by AGS itself or by some commit in this project.

I don't need to press Ctrl+Super+R every time after I open a file via VLC anymore lol

clsty commented 6 months ago

This happens again on the latest repo for me. Though I'm not very sure because I have switched to extra/hyprland, not aur/hyprland-git as it crashes frequently.