-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
albert freezing on entering query #1388
Comments
Please post the logs when running a new albert instance (quit albert before) from terminal using |
i couldnt replicate the issue with all disabled, so likely the application plugin is the culprit with applications plugin on, it got stuck on 2nd query when i typed random gibberish https://gist.github.com/Iss-in/54ed7d638238a39706e131f06ab4c6ff ist i searched for firefox, which worked, then i typed "asdas" and input got stuck |
The logs look regular. did albert freeze while you caputred this output? However theres one thing to note:
Looks like you modified the desktop entries. Where did you put the icons? |
yes, first result was fine, on 2nd query i typed random letters and it got stuck |
some of the entries which i made manually are in .local/share/applications edit: actually seems like some of these are missing, but still that should not be the cause of this , right ? |
it means that the plugins are scanned twice? do you have some weird links? wait arch links /usr/lib to /lib or such right? |
File: /lib -> usr/lib |
what exactly happens if the input is stuck? in the logs all queries finished. |
no just a side note. missing icons should not affect queries |
Kooha-2024-04-22-15-54-33.webmafter it freezes, normally it resumes itself after a while |
I tried it on manjaro. I cant reproduce. I also added a missing icon entry. Works as expected. Any ideas? The above loggingrules are not correct. The dot excluded core debug messages. Try again using
also see if it somehow depends on the platform
|
there is absolutely nothing in logs, simply a long delay when freeze happens. i will try to see if its reproducible in gnome |
same thing in both gnome X and wayland session. in gnome wayland , i got the warning that window was not responding. |
I can't tell. I switched to my Linux box yesterday. Using the aur build and from source I could jot reproduce it. Have you tried to purge everything and build from scratch? |
seems like it turned out to be a case of corrupted config. deleted the config folder and its working fine now. idk what happened which caused the issue on both systems |
its not completely gone, but extremely hard to reproduce now. |
actually scratch that, running with applications plugin enabled
and its completely reproducible on my end
gets stuck when i type counter as query thing to note here is that it only happens once after i start albert, not on successive retries |
You could run it using the logging filter '*=true' to see what happens internally |
That's what I did , no ? |
|
delay happens around line 4682 |
The last messages before the lag were about the svg renderer. Maybe this is the cause. Have you put custom icons in your icon set? Qt svg does not support all fancy extensions out there and I would not be surprised if the desktop entry and icon lookup specs limit the formats to a least common denominator. |
damn yes, i have done it for a few icons, adding them to default icon theme. now that i think, letme check |
that was likely the issue, some icon for csgo was causing the issue, removed it, and the lag seems to be gone for now. will update incase something else happens. as of now, its not reproducible with regular usage. thanks a lot |
Fine. Reopen if it occurs again. hf using albert |
I know this issue is closed, but thought I would add my experience. Starting from a 'cleaned' Albert (commit: 3122af6 and no .cache or .local files), I noticed that when typing 't' to search for and open Tweaks, Albert pauses and appears to hang. After (what seems like a very long time), the UI resumes with the first 5 't' selections presented. After that 't' works reasonably well for 'some time', but after some period of not using Albert, 't' again hangs things up. If I start selecting 't' items such that they are in my MRU/MFU history, things stay speedy. I am wondering if I have a lot of 't' items that are in some state that Albert does not like. I have not yet stumbled on other starting letters that cause this behavior. |
@tomporter518 the env vars above help you debugging. If the query takes long the query runtimes will show it as well as the item count. If that's not the problem you could send the full log like issin did. Have you put custom icons in your icon dirs? |
Thanks for the ask about custom icons. I had read through this thread and saw that but didn't immediately recall doing that. Most of the icons in .local are from Wine or Chrome, but I did have one symlinked SVG, which seems to now be present in the shared highcolor set, when it wasn't before. I have removed that and will continue to test. So far that seems to make a difference and queries return nearly immediately. |
Hi, having the same problem here. Can you please share which unknown svg element gives the issue? In my case I got a lot of "clipPath". Could it be this element which makes qt freezing? Here the full log:
|
You could fgrep you icon dirs for these words |
getting same error again, this time with query "hibernate" for "system" plugin all these svg errors we are getting, it seems like those are not the icon name, but rather svg file elements https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath and somewhy qt renderer is causing issues with it ? and in logs we are not getting which actual icon/svg these errors are from
not sure why valid svgs are also getting errored out |
can we reopen it ? its occurring frequently again @ManuelSchneid3r |
Have you checked the logs? Is it the svg renderer again. Maybe we should file a Qt bug |
I can add that I have been experiencing the freeze / delay as well, especially when hitting the shortcut and then typing P... DF, for example. |
i cleared albert cache, and removed db and history file, and its smooth again, letsee if its permanent |
Can you explain how to do that? I also get albert freezing (especially when I start typing "t") |
deleted '.cache/albert' folder, and 'albert.db' , 'albert.history' files from '.local/share/albert' folder |
Thank you, just tried and it seems not freezing anymore. Considering that I have tried to delete all my system svg files at the beginning without any luck and by deleting these 2 files and the cache seems to have completely solved the issue, I start thinking it could not be related to system svg files. As soon as albert starts freezing again, I would suggest to delete one by one these files so that we can identify which one actually cause the freeze |
My own experiences seem to indicate the release of QT 6.7.1 has improved SVG behaviors. I no longer get 'pausing' when certain application icons would be needed, specifically the icon for Videos (i.e. Totem). I still receive many debug messages like:
however, they don't seem to coincide with any delay in results showing. I cannot be certain that it was just 6.7.1 or perhaps some other update but I did notice improvement around that time. FWIW, I have not cleared my caches either. |
I just found that at least on macOS this issue is introduced by some internal KeyBoard updating. No lag on Qt 6.8. Which Qt do you guys use? |
I only use Albert on Fedora, release 40 at the moment. The repos only supply Qt 6.7.2, for now. I haven't experienced any delays in results showing for a while now. |
Package source
AUR
App report
Current Behavior
albert freezes for a few seconds when entering query immediately after albert window pops up.
Issue was more severe when extensions were turned on, so i disabled all plugins except applications. reproducibility got reduced, but it still happens.
experiencing the issue on 2 different systems, arch and endeavour, same version of albert ( aur latest )
Expected Behavior
albert should not hang/freeze regardless of query
Anything else?
i could not see anything specific in logs, with or without extensions on, except for this
and sometimes
when i run
albert show
manually in terminalThe text was updated successfully, but these errors were encountered: