albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.27k stars 305 forks source link

"Albert has not been terminated properly" message on Startup #1311

Closed Glint-Eye closed 1 year ago

Glint-Eye commented 1 year ago

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. Use albert -d to find issues or Q_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 ``` [debg:albert] Albert version: 0.22.12 [debg:albert] Build date: Oct 3 2023 20:29:39 [debg:albert] Qt version: 6.2.4 [debg:albert] Build ABI: x86_64-little_endian-lp64 [debg:albert] Arch (build/current): x86_64/x86_64 [debg:albert] Kernel (type/version): linux/6.5.4-76060504-generic [debg:albert] OS: Pop!_OS 22.04 LTS [debg:albert] OS (type/version): pop/22.04 [debg:albert] Platform name: xcb [debg:albert] Binary location: /usr/bin/albert [debg:albert] Current dir: **** [debg:albert] Font: Fira Sans Semi-Light,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 [debg:albert] Language: English [debg:albert] Locale: en_US [debg:albert] $LANG: en_US.UTF-8 [debg:albert] $QT_QPA_PLATFORMTHEME: [debg:albert] $PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin [debg:albert] $PWD: **** [debg:albert] $SHELL: /bin/bash [debg:albert] $XDG_SESSION_TYPE: x11 [debg:albert] $XDG_CURRENT_DESKTOP: pop:GNOME [debg:albert] $DESKTOP_SESSION: pop [debg:albert] $XDG_SESSION_DESKTOP: pop [debg:albert] Icon theme: Pop [warn:albert] Albert has not been terminated properly. Please check your crash reports and report an issue. [debg:albert] Checking for a running instance… [info:albert] There is another instance of albert running. ```
henrikgit commented 1 year ago

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:

$ albert -d 11:25:28 [debg:albert] Albert version: 0.22.10 11:25:28 [debg:albert] Build date: Oct 4 2023 09:19:11 11:25:28 [debg:albert] Qt version: 6.5.3 11:25:28 [debg:albert] Build ABI: x86_64-little_endian-lp64 11:25:28 [debg:albert] Arch (build/current): x86_64/x86_64 11:25:28 [debg:albert] Kernel (type/version): linux/6.5.5-arch1-1 11:25:28 [debg:albert] OS: Arch Linux 11:25:28 [debg:albert] OS (type/version): arch/unknown 11:25:28 [debg:albert] Platform name: xcb 11:25:28 [debg:albert] Binary location: /usr/bin/albert 11:25:28 [debg:albert] Current dir: /home/john 11:25:28 [debg:albert] Font: Liberation Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular 11:25:28 [debg:albert] Language: German 11:25:28 [debg:albert] Locale: de_DE 11:25:28 [debg:albert] $LANG: de_DE.UTF-8 11:25:28 [debg:albert] $QT_QPA_PLATFORMTHEME: qt5ct 11:25:28 [debg:albert] $PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/home/john/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl 11:25:28 [debg:albert] $PWD: /home/john 11:25:28 [debg:albert] $SHELL: /bin/bash 11:25:28 [debg:albert] $XDG_SESSION_TYPE: x11 11:25:28 [debg:albert] $XDG_CURRENT_DESKTOP: XFCE 11:25:28 [debg:albert] $DESKTOP_SESSION: xfce 11:25:28 [debg:albert] $XDG_SESSION_DESKTOP: xfce 11:25:28 [debg:albert] Icon theme: gnome 11:25:28 [warn:albert] Albert has not been terminated properly. Please check your crash reports and report an issue. 11:25:30 [debg:albert] Checking for a running instance… 11:25:30 [debg:albert] Creating local socket /home/john/.cache/albert/ipc_socket 11:25:30 [debg:albert] Database: Connecting…
ManuelSchneid3r commented 1 year ago

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.

Glint-Eye commented 1 year ago

okay so albert.last.log says the following:

12:25:34 WARN Albert has not been terminated properly. Please check your crash reports and report an issue.
12:25:37 INFO There is another instance of albert running.

albert.log says:

12:28:56 WARN Albert has not been terminated properly. Please check your crash reports and report an issue.
12:29:04 INFO Hotkey set to Ctrl+Space
12:29:05 INFO Indexing ****
12:29:05 INFO Python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]

Btw, I get the same popup message when I start albert while an instance is already running.

stasadev commented 1 year ago

I have the same problem, ~/.cache/albert/running just doesn't get deleted on shutdown/reboot.

~/.cache/albert/albert.last.log and ~/.cache/albert/albert.log are always empty.

ManuelSchneid3r commented 1 year ago

shutdown/reboot

does this issue occur only on reboot? Which desktop environment?

stasadev commented 1 year ago

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.

Glint-Eye commented 1 year ago

Pop OS 22.04. For me it happens on reboot and shutdown. Only when I end the "albert" process manually before shutdown/reboot it doesn't occur.

tomporter518 commented 1 year ago

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.

henrikgit commented 1 year ago

New day, new startup.

I can report that I actually got 2 of these windows (I already OK-ed the 1st one):

grafik

ManuelSchneid3r commented 1 year ago

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 QT_LOGGING_RULES="*.debug=true" to the exec line in the desktop entry at /usr/share/applications/albert.desktop, such that it look like this:

#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Utility;
Comment=A desktop agnostic launcher
Exec=/usr/bin/env QT_LOGGING_RULES="*.debug=true" QT_QPA_PLATFORM=xcb albert
GenericName=Launcher
Icon=albert
Name=Albert
StartupNotify=false
Type=Application
Version=1.0

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?

henrikgit commented 1 year ago

Edited the albert.desktop-file to this:

``` $ cat /usr/share/applications/albert.desktop #!/usr/bin/env xdg-open [Desktop Entry] Categories=Utility; Comment=A desktop agnostic launcher Exec=/usr/bin/env QT_LOGGING_RULES="*.debug=true" QT_QPA_PLATFORM=xcb albert GenericName=Launcher Icon=albert Name=Albert StartupNotify=false Type=Application Version=1.0 ```

So, as requested albert.last.log (which is quite minimal :/) after 2 restarts:

``` $ cat ~/.cache/albert/albert.last.log 17:08:32 WARN Albert has not been terminated properly. Please check your crash reports and report an issue. 17:08:36 INFO There is another instance of albert running. ```

Here's also albert.log:

``` $ cat ~/.cache/albert/albert.log 17:08:32 WARN Albert has not been terminated properly. Please check your crash reports and report an issue. 17:08:35 INFO Hotkey set to Ctrl+Space 17:08:36 INFO Indexing /home/john ```
DirkFi commented 1 year ago

Same issue here. I am using KDE neon 5.27 Release 22.04.

I do add the QT_LOGGING_RULES="*.debug=true". And after 2 restarts, and the 2 logs look as follows:

albert.log ``` 16:29:15 WARN Albert has not been terminated properly. Please check your crash reports and report an issue. 16:29:27 INFO There is another instance of albert running. ```
albert.last.log ``` 16:29:15 INFO There is another instance of albert running. hecking directory path "/usr/lib/x86_64-linux-gnu/qt6/plugins/networkaccess" ... 16:29:15 DEBG checking directory path "/usr/bin/networkaccess" ... 16:29:15 DEBG Checking for a running instance… 16:29:15 DEBG Creating local socket /home/dirk/.cache/albert/ipc_socket 16:29:15 DEBG checking directory path "/usr/lib/x86_64-linux-gnu/qt6/plugins/sqldrivers" ... 16:29:15 DEBG looking at "/usr/lib/x86_64-linux-gnu/qt6/plugins/sqldrivers/libqsqlmysql.so" 16:29:15 DEBG Found metadata in lib /usr/lib/x86_64-linux-gnu/qt6/plugins/sqldrivers/libqsqlmysql.so, metadata= { "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface", "MetaData": { "Keys": [ "QMYSQL", "QMARIADB" ] }, "archlevel": 1, "className": "QMYSQLDriverPlugin", "debug": false, "version": 394496 } ```

And similar text repeated a lot of times for the log:

repeated log ``` 16:29:15 DEBG Found metadata in lib /usr/lib/x86_64-linux-gnu/qt6/plugins/sqldrivers/libqsqlmysql.so, metadata= { "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface", "MetaData": { "Keys": [ "QMYSQL", "QMARIADB" ] }, "archlevel": 1, "className": "QMYSQLDriverPlugin", "debug": false, "version": 394496 } ```

I uploaded the full log in my forked repo, link here: full log.

bashopman commented 1 year ago

Looks like this issue appears only on reboot.

FYI: I experience the same when logging out and back in.

ManuelSchneid3r commented 1 year ago

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…

bashopman commented 1 year ago

Albert is set to autostart, yes. I don't remember setting it up like that, so I assume it is done on installation? FYI: I'm using Gnome 44 on Ubuntu 23.04.

ManuelSchneid3r commented 1 year ago

@bashopman iirc no. there is a checkbox in the settings for it. maybe you checked it once.

bashopman commented 1 year ago

@ManuelSchneid3r that is likely, yes. I tend to check settings menu's and that sounds like a convenient option. ;) The "autostart" checkbox was set. Unchecked it now.

ManuelSchneid3r commented 1 year ago

@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.

ManuelSchneid3r commented 1 year ago

https://github.com/albertlauncher/albert/commit/fdf19549403eae6bf398f7bd45399e4dfa785b0f

ManuelSchneid3r commented 1 year ago

in 0.22.14. let me know how it works out.

bashopman commented 1 year ago

Hi @ManuelSchneid3r Executed the following steps to test:

  1. I had checked-out the autostart option earlier.
  2. I then installed your update 0.22.14.
  3. Logged out and then back in.
  4. No error message!
  5. ALT-Space (my hotkey combination) didn't work though.
  6. Started Albert from the app menu
  7. Got same error message as before.
  8. Removing the error window, ALT-Space works again.
  9. Checked auto-start again
  10. Logged out and then back in.
  11. Albert shows error message that it wasn't properly shutdown.
  12. Logged out and then back in.
  13. No error message!
  14. Rebooted the machine and logged in.
  15. Albert shows error message that it wasn't properly shutdown.
  16. ALT-Space does work again

Not sure what I can do more...

ManuelSchneid3r commented 1 year ago

5. ALT-Space (my hotkey combination) didn't work though.

do you use the internal hotkey or some sort of external hotkey firing albert show or toggle?

ManuelSchneid3r commented 1 year ago

gave it a testrun on Kubuntu 20.04. everything is fine there. what are the others experiencing? @henrikgit @tomporter518 @stasadev @Glint-Eye @DirkFi

bashopman commented 1 year ago

@ManuelSchneid3r I'm using the hotkey defined from the Albert settings. Note that I'm using Gnome 44 and not KDE. And, not sure if relevant, I'm using X.org. When using Wayland, I don't get Albert to work at all.

stasadev commented 1 year ago

KDE 5.27.8 Albert v0.22.14

All good when I reboot via KDE menu > restart. But I see a warning every time if I reboot with /usr/bin/reboot (for me it's a part of systemd-sysvcompat).

ManuelSchneid3r commented 1 year ago

This reminds me of an issue which is years old (#197). reboot does not reboot session friendly. It SIGTERMs all processes, notably the XServer as well, which causes QT programs to fail with ICE errors (whatever this is). Also posted a qt bug on this.

Glint-Eye commented 1 year ago

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…

Just installed 0.22.14. did 1 shutdown, then 2 reboots. Everytime still got the message. Tried then to deactivate autostart in albert options. Process is not being restored after reboot. Had to start albert manually again. And then, after starting manually without any prior instance running i got the message aswell.

DirkFi commented 1 year ago

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…

@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.

henrikgit commented 1 year ago

@ManuelSchneid3r

TLDR: No warning anymore upon startup (after login, that is). For that, I did the following on my Arch machine:

  1. Removed albert
  2. Installed albert-master 0.22.14 from your OpenSuse repo
  3. Removed the autostart entry for albert in XFCE's settings
  4. Left the check mark in albert's settings for startup.
  5. After logging in, the popup did not appear.

But what do you know.... going into XFCE's settings again, I found that Albert was added again: grafik

Hm.

henrikgit commented 1 year ago

After a new reboot, I again have the 2 popup windows and a new one (lower right in screenshot):

grafik

ManuelSchneid3r commented 1 year ago
  • Removed the autostart entry for albert in XFCE's settings
  • Left the check mark in albert's settings for startup.

They both do the same. The mechanism is standardized. If you put a check albert autostart in the settings the entry will also appear in your xfce stettings.

For the hotkey fail please post the terminal output. Meaning make sure albert is not running, and start it from terminal using albert -d.

ManuelSchneid3r commented 1 year ago

@Glint-Eye please post albert -d -r

henrikgit commented 1 year ago
  1. Quit albert.
  2. Started it again from the terminal with albert -d, output is:
``` $ albert -d 18:47:00 [debg:albert] Albert version: 0.22.14 18:47:00 [debg:albert] Build date: Oct 6 2023 10:37:26 18:47:00 [debg:albert] Qt version: 6.5.3 18:47:00 [debg:albert] Build ABI: x86_64-little_endian-lp64 18:47:00 [debg:albert] Arch (build/current): x86_64/x86_64 18:47:00 [debg:albert] Kernel (type/version): linux/6.5.5-arch1-1 18:47:00 [debg:albert] OS: Arch Linux 18:47:00 [debg:albert] OS (type/version): arch/unknown 18:47:00 [debg:albert] Platform name: xcb 18:47:00 [debg:albert] Binary location: /usr/bin/albert 18:47:00 [debg:albert] Current dir: /home/john 18:47:00 [debg:albert] Font: Liberation Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular 18:47:00 [debg:albert] Language: German 18:47:00 [debg:albert] Locale: de_DE 18:47:00 [debg:albert] $LANG: de_DE.UTF-8 18:47:00 [debg:albert] $QT_QPA_PLATFORMTHEME: qt5ct 18:47:00 [debg:albert] $PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/home/john/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl 18:47:00 [debg:albert] $PWD: /home/john 18:47:00 [debg:albert] $SHELL: /bin/bash 18:47:00 [debg:albert] $XDG_SESSION_TYPE: x11 18:47:00 [debg:albert] $XDG_CURRENT_DESKTOP: XFCE 18:47:00 [debg:albert] $DESKTOP_SESSION: xfce 18:47:00 [debg:albert] $XDG_SESSION_DESKTOP: xfce 18:47:00 [debg:albert] Icon theme: gnome 18:47:00 [debg:albert] Checking for a running instance… 18:47:00 [debg:albert] Creating local server /home/john/.cache/albert/ipc_socket 18:47:00 [debg:albert] Database: Connecting… ```
ManuelSchneid3r commented 1 year ago

@henrikgit looks like this output is incomplete

henrikgit commented 1 year ago

Thought the output would be enough, but here is everything:

``` $ albert -d 20:36:27 [debg:albert] Albert version: 0.22.14 20:36:27 [debg:albert] Build date: Oct 6 2023 10:37:26 20:36:27 [debg:albert] Qt version: 6.5.3 20:36:27 [debg:albert] Build ABI: x86_64-little_endian-lp64 20:36:27 [debg:albert] Arch (build/current): x86_64/x86_64 20:36:27 [debg:albert] Kernel (type/version): linux/6.5.5-arch1-1 20:36:27 [debg:albert] OS: Arch Linux 20:36:27 [debg:albert] OS (type/version): arch/unknown 20:36:27 [debg:albert] Platform name: xcb 20:36:27 [debg:albert] Binary location: /usr/bin/albert 20:36:27 [debg:albert] Current dir: /home/john 20:36:27 [debg:albert] Font: Liberation Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular 20:36:27 [debg:albert] Language: German 20:36:27 [debg:albert] Locale: de_DE 20:36:27 [debg:albert] $LANG: de_DE.UTF-8 20:36:27 [debg:albert] $QT_QPA_PLATFORMTHEME: qt5ct 20:36:27 [debg:albert] $PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/home/john/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl 20:36:27 [debg:albert] $PWD: /home/john 20:36:27 [debg:albert] $SHELL: /bin/bash 20:36:27 [debg:albert] $XDG_SESSION_TYPE: x11 20:36:27 [debg:albert] $XDG_CURRENT_DESKTOP: XFCE 20:36:27 [debg:albert] $DESKTOP_SESSION: xfce 20:36:27 [debg:albert] $XDG_SESSION_DESKTOP: xfce 20:36:27 [debg:albert] Icon theme: gnome 20:36:27 [debg:albert] Checking for a running instance… 20:36:27 [debg:albert] Creating local server /home/john/.cache/albert/ipc_socket 20:36:27 [debg:albert] Database: Connecting… 20:36:27 [debg:albert] Database: Connected ( 0 ms). 20:36:27 [debg:albert] Database: Initializing… 20:36:27 [debg:albert] Database: Initialized ( 0 ms). 20:36:27 [debg:albert] Database: Fetching activations… 20:36:27 [debg:albert] Database: Activations fetched ( 0 ms). 20:36:27 [debg:albert] 1 ms fetching activations. 20:36:27 [debg:albert] 0 ms computing usage scores. 20:36:27 [debg:albert] Searching native plugins in /usr/lib/albert 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/liburlhandler.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libwebsearch.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libhash.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libwidgetsboxmodel.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libqmlboxmodel.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libchromium.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libclipboard.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libcalculator_qalculate.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libsnippets.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libsystem.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libfiles.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libdatetime.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libapplications_xdg.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libssh.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libdocs.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libpython.so 20:36:27 [debg:albert] Found valid native plugin /usr/lib/albert/libterminal.so 20:36:27 [info:albert] Hotkey set to Ctrl+Space 20:36:27 [debg:albert] Try loading the configured frontend 'widgetsboxmodel'. 20:36:27 [debg:albert] [ 146 ms] spent loading plugin 'widgetsboxmodel' 20:36:27 [debg:albert] [ 1 ms] spent loading plugin 'urlhandler' 20:36:27 [debg:albert] [ 1 ms] spent loading plugin 'websearch' 20:36:27 [info:files] Indexing /home/john 20:36:28 [debg:albert] [ 506 ms] spent loading plugin 'files' 20:36:28 [debg:albert] [ 0 ms] spent loading plugin 'applications_xdg' 20:36:28 [debg:apps] Indexing desktop file: FBReader.desktop 20:36:28 [debg:apps] Indexing desktop file: RockboxUtility.desktop 20:36:28 [debg:apps] Indexing desktop file: SpiderOakONE.desktop 20:36:28 [debg:apps] Indexing desktop file: albert.desktop 20:36:28 [debg:apps] Indexing desktop file: assistant.desktop 20:36:28 [debg:apps] Indexing desktop file: audacity.desktop 20:36:28 [debg:apps] Indexing desktop file: audio-recorder.desktop 20:36:28 [debg:apps] Indexing desktop file: avahi-discover.desktop 20:36:28 [debg:apps] Indexing desktop file: blueman-adapters.desktop 20:36:28 [debg:apps] Indexing desktop file: blueman-manager.desktop 20:36:28 [debg:apps] Indexing desktop file: bssh.desktop 20:36:28 [debg:apps] Indexing desktop file: bvnc.desktop 20:36:28 [debg:apps] Indexing desktop file: ca.desrt.dconf-editor.desktop 20:36:28 [debg:apps] Indexing desktop file: chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop 20:36:28 [debg:apps] Indexing desktop file: chromium.desktop 20:36:28 [debg:apps] Indexing desktop file: cmake-gui.desktop 20:36:28 [debg:apps] Indexing desktop file: com.github.ronnydo.colorpicker.desktop 20:36:28 [debg:apps] Indexing desktop file: com.gitlab.tipp10.tipp10.desktop 20:36:28 [debg:apps] Indexing desktop file: com.obsproject.Studio.desktop 20:36:28 [debg:apps] Indexing desktop file: cups.desktop 20:36:28 [debg:apps] Indexing desktop file: designer.desktop 20:36:28 [debg:apps] Indexing desktop file: discord.desktop 20:36:28 [debg:apps] Indexing desktop file: easytag.desktop 20:36:28 [debg:apps] Indexing desktop file: electron21.desktop 20:36:28 [debg:apps] Indexing desktop file: electron25.desktop 20:36:28 [debg:apps] Indexing desktop file: eu.scarpetta.PDFMixTool.desktop 20:36:28 [debg:apps] Indexing desktop file: firefox.desktop 20:36:28 [debg:apps] Indexing desktop file: galculator.desktop 20:36:28 [debg:apps] Indexing desktop file: gcr-prompter.desktop 20:36:28 [debg:apps] Indexing desktop file: gcr-viewer.desktop 20:36:28 [debg:apps] Indexing desktop file: geany.desktop 20:36:28 [debg:apps] Indexing desktop file: geoclue-demo-agent.desktop 20:36:28 [debg:apps] Indexing desktop file: geoclue-where-am-i.desktop 20:36:28 [debg:apps] Indexing desktop file: gimp.desktop 20:36:28 [debg:apps] Indexing desktop file: gnome-disk-image-mounter.desktop 20:36:28 [debg:apps] Indexing desktop file: gnome-disk-image-writer.desktop 20:36:28 [debg:apps] Indexing desktop file: google-maps-geo-handler.desktop 20:36:28 [debg:apps] Indexing desktop file: gparted.desktop 20:36:28 [debg:apps] Indexing desktop file: gufw.desktop 20:36:28 [debg:apps] Indexing desktop file: hardinfo.desktop 20:36:28 [debg:apps] Indexing desktop file: hp-uiscan.desktop 20:36:28 [debg:apps] Indexing desktop file: hplip.desktop 20:36:28 [debg:apps] Indexing desktop file: htop.desktop 20:36:28 [debg:apps] Indexing desktop file: io.elementary.granite.demo.desktop 20:36:28 [debg:apps] Indexing desktop file: io.github.quodlibet.ExFalso.desktop 20:36:28 [debg:apps] Indexing desktop file: io.github.quodlibet.QuodLibet.desktop 20:36:28 [debg:apps] Indexing desktop file: java-java-openjdk.desktop 20:36:28 [debg:apps] Indexing desktop file: jconsole-java-openjdk.desktop 20:36:28 [debg:apps] Indexing desktop file: jshell-java-openjdk.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-base.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-calc.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-draw.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-impress.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-math.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-startcenter.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-writer.desktop 20:36:28 [debg:apps] Indexing desktop file: libreoffice-xsltfilter.desktop 20:36:28 [debg:apps] Indexing desktop file: linguist.desktop 20:36:28 [debg:apps] Indexing desktop file: lstopo.desktop 20:36:28 [debg:apps] Indexing desktop file: net.minetest.minetest.desktop 20:36:28 [debg:apps] Indexing desktop file: net.sourceforge.gscan2pdf.desktop 20:36:28 [debg:apps] Indexing desktop file: nm-connection-editor.desktop 20:36:28 [debg:apps] Indexing desktop file: notion-app.desktop 20:36:28 [debg:apps] Indexing desktop file: obsidian.desktop 20:36:28 [debg:apps] Indexing desktop file: openstreetmap-geo-handler.desktop 20:36:28 [debg:apps] Indexing desktop file: org.flameshot.Flameshot.desktop 20:36:28 [debg:apps] Indexing desktop file: org.freedesktop.Piper.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Cheese.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Chess.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.DiskUtility.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Evince-previewer.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Evince.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.FileRoller.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Meld.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.OCRFeeder.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Rhythmbox3.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Rhythmbox3.device.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Shotwell-Profile-Browser.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Shotwell-Viewer.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.Shotwell.desktop 20:36:28 [debg:apps] Indexing desktop file: org.gnome.eog.desktop 20:36:28 [debg:apps] Indexing desktop file: org.inkscape.Inkscape.desktop 20:36:28 [debg:apps] Indexing desktop file: org.mozilla.Thunderbird.desktop 20:36:28 [debg:apps] Indexing desktop file: org.xfce.Catfish.desktop 20:36:28 [debg:apps] Indexing desktop file: org.xfce.PanelProfiles.desktop 20:36:28 [debg:apps] Indexing desktop file: org.xfce.Parole.desktop 20:36:28 [debg:apps] Indexing desktop file: org.xfce.mousepad-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: org.xfce.mousepad.desktop 20:36:28 [debg:apps] Indexing desktop file: org.xfce.ristretto.desktop 20:36:28 [debg:apps] Indexing desktop file: panel-desktop-handler.desktop 20:36:28 [debg:apps] Indexing desktop file: panel-preferences.desktop 20:36:28 [debg:apps] Indexing desktop file: paprefs.desktop 20:36:28 [debg:apps] Indexing desktop file: pavucontrol.desktop 20:36:28 [debg:apps] Indexing desktop file: pinta.desktop 20:36:28 [debg:apps] Indexing desktop file: polkit-gnome-authentication-agent-1.desktop 20:36:28 [debg:apps] Indexing desktop file: posterazor.desktop 20:36:28 [debg:apps] Indexing desktop file: qdbusviewer.desktop 20:36:28 [debg:apps] Indexing desktop file: qt5ct.desktop 20:36:28 [debg:apps] Indexing desktop file: qt6ct.desktop 20:36:28 [debg:apps] Indexing desktop file: qv4l2.desktop 20:36:28 [debg:apps] Indexing desktop file: qvidcap.desktop 20:36:28 [debg:apps] Indexing desktop file: qwant-maps-geo-handler.desktop 20:36:28 [debg:apps] Indexing desktop file: redshift-gtk.desktop 20:36:28 [debg:apps] Indexing desktop file: redshift.desktop 20:36:28 [debg:apps] Indexing desktop file: scrcpy-console.desktop 20:36:28 [debg:apps] Indexing desktop file: scrcpy.desktop 20:36:28 [debg:apps] Indexing desktop file: screenkey.desktop 20:36:28 [debg:apps] Indexing desktop file: screensavers-xfce-floaters.desktop 20:36:28 [debg:apps] Indexing desktop file: screensavers-xfce-personal-slideshow.desktop 20:36:28 [debg:apps] Indexing desktop file: screensavers-xfce-popsquares.desktop 20:36:28 [debg:apps] Indexing desktop file: signal-desktop.desktop 20:36:28 [debg:apps] Indexing desktop file: simple-scan.desktop 20:36:28 [debg:apps] Indexing desktop file: simplescreenrecorder.desktop 20:36:28 [debg:apps] Indexing desktop file: spotify-launcher.desktop 20:36:28 [debg:apps] Indexing desktop file: steam.desktop 20:36:28 [debg:apps] Indexing desktop file: system-config-printer.desktop 20:36:28 [debg:apps] Indexing desktop file: texstudio.desktop 20:36:28 [debg:apps] Indexing desktop file: thunar-bulk-rename.desktop 20:36:28 [debg:apps] Indexing desktop file: thunar-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: thunar-volman-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: thunar.desktop 20:36:28 [debg:apps] Indexing desktop file: transmission-gtk.desktop 20:36:28 [debg:apps] Indexing desktop file: userapp-"evince"-IXRGH0.desktop 20:36:28 [debg:apps] Indexing desktop file: userapp-E-Mail-Empfänger-GG7VX0.desktop 20:36:28 [debg:apps] Indexing desktop file: userapp-E-Mail-Empfänger-KTZ2W0.desktop 20:36:28 [debg:apps] Indexing desktop file: userapp-E-Mail-Empfänger-TDGZY0.desktop 20:36:28 [debg:apps] Indexing desktop file: veracrypt.desktop 20:36:28 [debg:apps] Indexing desktop file: vim.desktop 20:36:28 [debg:apps] Indexing desktop file: virtualbox.desktop 20:36:28 [debg:apps] Indexing desktop file: vlc.desktop 20:36:28 [debg:apps] Indexing desktop file: wheelmap-geo-handler.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-chm.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-gif.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-hlp.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-htm.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-html.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-ini.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-jfif.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-jpe.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-msp.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-pdf.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-png.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-rtf.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-txt.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-url.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-vbs.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-wri.desktop 20:36:28 [debg:apps] Indexing desktop file: wine-extension-xml.desktop 20:36:28 [debg:apps] Indexing desktop file: work.openpaper.Paperwork.desktop 20:36:28 [debg:apps] Indexing desktop file: xcolor.desktop 20:36:28 [debg:apps] Indexing desktop file: xdvi.desktop 20:36:28 [debg:apps] Indexing desktop file: xfburn.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-backdrop-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-display-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-keyboard-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-mouse-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-session-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-settings-manager.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-ui-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-wm-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-wmtweaks-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce-workspaces-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-about.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-accessibility-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-appfinder.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-clipman-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-clipman.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-color-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-dict.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-file-manager.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-mail-reader.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-mime-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-notes.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-notifyd-config.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-power-manager-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-run.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-screensaver-preferences.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-screenshooter.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-sensors.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-session-logout.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-settings-editor.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-taskmanager.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-terminal-emulator.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-terminal-settings.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-terminal.desktop 20:36:28 [debg:apps] Indexing desktop file: xfce4-web-browser.desktop 20:36:28 [debg:apps] Indexing desktop file: xsane.desktop ```
henrikgit commented 1 year ago

Another new try with no entry for autostarting albert in XFCE's settings and with an unchecked box in albert's settings for startup (don't know when exactly XFCE's settings get checked so that the box in albert's settings get set automatically or vice versa).

... so per the settings in the desktop environment and albert, it should not have been started... right?

Regardless, after a new boot 3 minutes ago, I got one (1) window with "Albert has not been terminated properly".

ManuelSchneid3r commented 1 year ago

so per the settings in the desktop environment and albert, it should not have been started... right?

It depends. XFCE probably restores your session. Meaning all apps running on shutdown/logout will be opened again on login.

ManuelSchneid3r commented 1 year ago

20:36:27 [info:albert] Hotkey set to Ctrl+Space

Looks like hotkey is working, right? This issue is out of scope here. Please open a new issue for anything else but the not-terminated-properly issue.

ManuelSchneid3r commented 1 year ago

I totally lost the overview here. Obv the recent fix worked for some of us. 0.22.14 does not print this error anymore if multiple instances of albert are started. Thus the session restore and autostart problem should be fixed. Is anybody still having problems?

@stasadev KDE. Works.
@DirkFi's setup works. @tomporter518 Gnome44/Fedora38. Does 0.22.14 solve this for you? @Glint-Eye PopOS/22.04/pop:GNOME. Fail, even with 0.22.14. @henrikgit: arch/XFCE. Fail, even with 0.22.14.

@henrikgit @tomporter518 @Glint-Eye Do you reboot using the session manager?

henrikgit commented 1 year ago

I reboot and power off with the systemd commands, meaning:

  1. systemctl reboot and
  2. systemctl poweroff
ManuelSchneid3r commented 1 year ago

@henrikgit does it work for you if you restart using the xfce session facilities?

henrikgit commented 1 year ago

Well. This is interesting.

@ManuelSchneid3r Yes it worked. By which I mean, Albert was restored (as you suspected here) without an error window after I rebooted. I did it via the menu:

grafik

Now I just need to find out how to execute that very command from the terminal...

Glint-Eye commented 1 year ago

@Glint-Eye please post albert -d -r

12:42:28 [debg:albert] Albert version: 0.22.14 12:42:28 [debg:albert] Build date: Oct 6 2023 10:37:37 12:42:28 [debg:albert] Qt version: 6.2.4 12:42:28 [debg:albert] Build ABI: x86_64-little_endian-lp64 12:42:28 [debg:albert] Arch (build/current): x86_64/x86_64 12:42:28 [debg:albert] Kernel (type/version): linux/6.5.4-76060504-generic 12:42:28 [debg:albert] OS: Pop!_OS 22.04 LTS 12:42:28 [debg:albert] OS (type/version): pop/22.04 12:42:28 [debg:albert] Platform name: xcb 12:42:28 [debg:albert] Binary location: /usr/bin/albert 12:42:28 [debg:albert] Current dir: 12:42:28 [debg:albert] Font: Fira Sans Semi-Light,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 12:42:28 [debg:albert] Language: English 12:42:28 [debg:albert] Locale: en_US 12:42:28 [debg:albert] $LANG: en_US.UTF-8 12:42:28 [debg:albert] $QT_QPA_PLATFORMTHEME: 12:42:28 [debg:albert] $PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 12:42:28 [debg:albert] $PWD: 12:42:28 [debg:albert] $SHELL: /bin/bash 12:42:28 [debg:albert] $XDG_SESSION_TYPE: x11 12:42:28 [debg:albert] $XDG_CURRENT_DESKTOP: pop:GNOME 12:42:28 [debg:albert] $DESKTOP_SESSION: pop 12:42:28 [debg:albert] $XDG_SESSION_DESKTOP: pop 12:42:28 [debg:albert] Icon theme: Pop


For me albert hasn't been restored yet in any configuration when I disable autostart. I also use system.d commands for power off, reboot etc. But i've also tried with the regular session controls for gnome. With 0.22.14 I don't get the message anymore when I try to run another instance of albert, while albert is already running. But I still get the message after startup. Even if I autostart is deactivated and I start albert manually. It feels to me that there's something going on with process end handling on shutdown or reboot. As when I end albert process manually before shutdown / reboot I get no message on next boot.

ManuelSchneid3r commented 1 year ago

@Glint-Eye iirc from #197 system shutdown bypasses session management entirely. Use the session tools to end your sessions.

Glint-Eye commented 1 year ago

@Glint-Eye iirc from #197 system shutdown bypasses session management entirely. Use the session tools to end your sessions.

i did that. thats what i mean by "session controls for gnome". the regular way to shutdown gnome session in pop os. like by mouse in the top panel where i can select power options like: "power off, restart, suspend". At least i don't know about any other out of the box way to end a session.

Glint-Eye commented 1 year ago

I've discovered the following: If I delete the file "ipc_socket" in "~/.cache/albert" before I launch albert after a startup i do not get the message anymore.

ManuelSchneid3r commented 1 year ago

Sure that's exactly the file which "causes" this issue. But it's intentional. If Albert gets terminated properly the local server socket gets closed and the file (socket) deleted. In the absence of this file Albert does not give this error.

ManuelSchneid3r commented 1 year ago

A proper shutdown has to terminate all running apps before killing the Xserver. Somewhere in between also the window-, session- and loginmanager. If it does not it is probably a bug of your desktop environment.

Glint-Eye commented 1 year ago

Alright. I guess I'll just write a script then that deletes that file before launching albert each startup. Good enough for me for now.

Thx for the input and help!

ManuelSchneid3r commented 1 year ago

@Glint-Eye i understand that this may be frustrating, but the only proper solution is to terminate a session correctly. Killing the Xserver under the feet of a GUI application is problematic for every app. This problem affects every Qt app not only albert. Besides the annoying notification this also results in further issues (e.g. https://github.com/albertlauncher/plugins/issues/122).