-
-
Notifications
You must be signed in to change notification settings - Fork 309
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 has not been terminated properly" message on Startup #1311
Comments
Same here, as of this morning (Oct. 4, 2023). albert did not start anymore. Uninstalling and reinstalling helped insofar that it now starts again, but the same warning appears:
|
there are two logfiles in .cache/albert. the current and the past log. please post the past log. the one of the crashed process if you just received this messagebox. |
okay so albert.last.log says the following:
albert.log says:
Btw, I get the same popup message when I start albert while an instance is already running. |
I have the same problem,
|
does this issue occur only on reboot? Which desktop environment? |
KDE. I tested it again a few times and this time there was no problem, maybe it was on my end. Currently, I only see this warning if I try to run Albert from Albert. |
Pop OS 22.04. |
I can corroborate that this is also happening for me in Gnome 44 on Fedora 38. Manual exit of Albert removes the file but a full machine shutdown does not. |
Looks like this issue appears only on reboot. I assume that either session management is not handled correctly or the DE does not implement it correctly. Can you please add
Then do two restarts (one to actually get this desktop file started using the autostart mechanism and the second to get this instance terminated by a restart) and then post the albert.last.log in a pastebin? |
Edited the
Here's also albert.log:
|
Same issue here. I am using KDE neon 5.27 Release 22.04. I do add the albert.log
albert.last.log
And similar text repeated a lot of times for the log: repeated log
I uploaded the full log in my forked repo, link here: full log. |
FYI: I experience the same when logging out and back in. |
I think i found the problem. Session managers on some systems restore the session including albert. But also you probably have albert set to autostart on login. Thus albert is run twice. Can you confirm? Well the obvious thing is not to report a crash if the app is running atm… |
Albert is set to autostart, yes. I don't remember setting it up like that, so I assume it is done on installation? |
@bashopman iirc no. there is a checkbox in the settings for it. maybe you checked it once. |
@ManuelSchneid3r that is likely, yes. I tend to check settings menu's and that sounds like a convenient option. ;) |
@bashopman this should not be necessary. ill try to move the crash indicator into the rpc server. i am not sure though how particular systems handle leftover local sockets on reboot. hopefully they remain such that crashes can be recognized. |
in 0.22.14. let me know how it works out. |
Hi @ManuelSchneid3r
Not sure what I can do more... |
do you use the internal hotkey or some sort of external hotkey firing albert show or toggle? |
gave it a testrun on Kubuntu 20.04. everything is fine there. what are the others experiencing? @henrikgit @tomporter518 @stasadev @Glint-Eye @DirkFi |
@ManuelSchneid3r I'm using the hotkey defined from the Albert settings. |
KDE 5.27.8 All good when I reboot via KDE menu > restart. |
Just installed 0.22.14. did 1 shutdown, then 2 reboots. Everytime still got the message. |
@ManuelSchneid3r In my case for Albert 0.22.14, you are right! I deactivated the autostart in albert. After I do a restart, albert started automatically without any errors! I tested several times and it all behaved as expected! Seems like my case is different from Glint-Eye. |
Correct, that is why I said it is not a great idea. Segfaults can also happen by invalid shutdown that cannot be fixed from the app side, though.
Well, because the app is force-killed by the OS, it cannot close the socket correctly and it results in a broken socket left behind. And the message we see is caused exactly by invalidated socket.
How about some toggle to disable this pop-up? The socket will remain in |
I mean did you just read the above or do have reasons for your suspicion? Like logs etc
No (assuming you are talking of a system shutdown), if this is the issue above, the qt ICE error calls exit() which should not result in a segfault. However the left over socket indicates any crash. That's why I am curious why you think there has been a segfault. There are possibly other issues we indeed can fix. The improper shutdown of a session is a thing desktop environments have to fix or users have to stop using shutdown/reboot cli tools. |
My reasoning for SEGV is that I have got
But now I see that the error above was 2, so seems like a false lead |
Can you all please post the version of your desktop environment and if this bug is appearing if you use the session tools to quit the session? I am trying to get a table of desktop environments to consider and track the issues (we should report there). |
I can confirm this issue in Linux Mint 21.2 (Ubuntu) both in Cinnamon (5.8.4+victoria) and Mate (1.26.0-1) |
Yup, I've seen this error dialog every morning for a couple weeks, each time I boot into Linux. I'm Pop!OS_22.04 (the latest LTS) with vanilla Gnome 42.9 running in X11 mode. Happens if I just logout of Gnome and log back in, or if I fully shutdown and reboot. I can use the Gnome menu to do the shutdown or logoff, or I can use the shutdown or logout commands in Albert. Still happens every time. |
I"m on Arch with KDE, same here, error has been happening for weeks now on every boot. |
@JStyle21 how do you reboot? |
@ManuelSchneid3r |
@JStyle21 does it really happen when you use the KDE logout tools? |
@ManuelSchneid3r I use the shortcut i mentioned most of the time, i changed it from But i consider this a workaround not a fix, this is an application level problem not an OS so at the very least you should be able to suppress warning messages if needed, no one wants them in the foreground like that. |
Don't use cli reboot. It is not intended to quit x sessions. This is neither a workaround nor a fix. It is the proper usage of the cli to end a kde session (at least until xorg or systemd care about each other's mechanisms). This is not an application level issue. Not even a toolkit level issue. Simply killing the Xserver is not an option if you want to end your session. Obviously the process tree should be hierarchical and the processes terminated bottom up. But I'd rather let a committee of systemd, desktop environment and toolkit devs decide on what is the correct way to go. From the app dev point of view I can't do anything but teach users how to use their system correctly. |
I appreciate your perspective, but I must respectfully disagree. While it's true that there might not always be a clear right or wrong in the context of system operations, it is crucial for application developers to consider the user experience and provide solutions that are intuitive and user-friendly. It's worth noting that no other application, including earlier versions of this one, has encountered a similar issue. Currently, the system logs are inundated with warnings, errors, and other messages. If these messages don't present critical obstacles to the user interface, then they should be confined to the log files. While it is beneficial to educate users about proper system usage, it is equally critical to design applications that proactively mitigate the risk of users encountering such issues. The absence of problems in other applications or earlier versions does not inherently validate the current approach. As technology evolves, so do user expectations, and it is imperative for software to adapt accordingly. As a developer, even though systemic changes may be on the horizon, you have the capacity to enhance the user experience by making your application more user-friendly and resilient. The objective is not to assign blame to system dependencies but to take ownership of the user experience and ensure that your application seamlessly operates within the broader technology ecosystem. |
System Details ReportReport details
Hardware Information:
Software Information:
|
Can you please explain what you mean by session tools? You're previous comments seem to suggest that I can circumvent the error message by behaving differently. If that's the case, I don't know how. |
Still debugging. I guess I am on the track now. Atm I suspect it to be some qt quirks with dynamic library (un)loading at teardown (i.e. still runtime). @graue70 I just assumed that this stems from the usage of systemd to shut down the system. But atm I don't know for sure if it causes this issue. What I do know for sure is that it skips session shutdown scripts. So I can say it is generally not a good idea. |
I have seen three commits to resolve this problem. |
Sure but i cant help. This issue is there and extremely hard to track. Why would I not want to give a intuitive an user-friendly solution if I could?
This problem has been there for a long time (#197). I just recently made the warning visible because it is a problem if settings are not saved. And yes, I also wonder why other applications like e.g. CopyQ dont suffer this issue (or do they just accept crashes?).
I totally agree with that, but as said, there is no solution yet. I spent tons of hours finding this issue, no luck yet. I dont like strategies like that: |
Which commits? The root issue (ICE error) is not solved yet. |
This issue is cluttered but has some important information. I opened a new issue #1333 which is only about the ICE error. Please watch it. |
Just to clarify, I never meant to suggest that you're not interested in an intuitive solution.
Thanks for highlighting the history of issue #197 and your recent decision to make the warning visible. Exploring how other applications handle similar challenges could provide valuable insights. Since you've mentioned CopyQ, how about we ask them to reply here and share their insights?
I understand your POV now and the difficulties you're facing and I appreciate the time and effort you've invested. |
Do you guys still experience this issue? In 0.23 I changed the core structure that may be related to this issue. |
I've not seen this problem recently thanks |
Note that this is a general notification that something went wrong in the former run. To find out what happened see the logs. Use
journalctl -t albert.desktop
if the crash happened while using an instance that has been autostarted by your session manager otherwise run it in terminal and see stdout. Usealbert -d
to find issues orQ_LOGGING_RULES='*=true' albert
to include Qt internal details.Original post:
Description
On startup with autostart activated I get the following Popup:
"Albert has not been terminated properly. Please check your crash reports and report an issue"
I don't know where the crash reports are beeing saved.
It started happening for me with installing 0.22.10. I am now on 0.22.12.
Source
xUbuntu 22.04 Repository
on Pop OS 22.4
Debug output
The text was updated successfully, but these errors were encountered: