albertlauncher / albert

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

Albert crashes on startup on a fresh install #1282

Closed Ghoelian closed 1 year ago

Ghoelian commented 1 year ago

Description

Using a fresh install of albert 0.22.2 on Kubuntu 23.04, albert fails to launch with a segfault.

Expected behavior

No segfault

Steps to reproduce

Install albert and launch

Source

home:manuelschneid3r from the OBS repo

Debug output

``` Albert version: 0.22.2 Build date: Aug 14 2023 20:53:45 Qt version: 6.4.2 Build ABI: x86_64-little_endian-lp64 Arch (build/current): x86_64/x86_64 Kernel (type/version): linux/6.2.0-27-generic OS: Ubuntu 23.04 OS (type/version): ubuntu/23.04 $QT_QPA_PLATFORMTHEME: Platform name: xcb Font: Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 Binary location: /usr/bin/albert $PWD: /home/julian $SHELL: /bin/bash $LANG: en_US.UTF-8 Language: C Locale: C $XDG_SESSION_TYPE: x11 $XDG_CURRENT_DESKTOP: KDE $DESKTOP_SESSION: plasma $XDG_SESSION_DESKTOP: KDE Icon theme: breeze-dark Segmentation fault (core dumped) ```
Ghoelian commented 1 year ago

Looks like this is issue is already tracked in #958, sorry about that.

Ghoelian commented 1 year ago

Wait actually no, I thought I was running on Wayland but I'm not.

ManuelSchneid3r commented 1 year ago

can you pls post the crash report in /var/crash?

ManuelSchneid3r commented 1 year ago

phew the report does not contain a backtrace. I am not really familar with the ubuntu crash system. do you know how one can extract the backtrace? ill delete the comment since it may contain sensible data.

adabru commented 1 year ago

@Ghoelian you didn't do an upgrade before by any chance?

Ghoelian commented 1 year ago

@adabru I did at first, but I also tested this on a fresh Kubuntu VM, and it crashed in the same way there.

Ghoelian commented 1 year ago

phew the report does not contain a backtrace. I am not really familar with the ubuntu crash system. do you know how one can extract the backtrace? ill delete the comment since it may contain sensible data.

It could be in /var/log, or somewhere in journalctl. I'll check tomorrow when I get back to my pc.

adabru commented 1 year ago

Ok. If I delete

~/.config/albert
~/.config/albert.conf
~/.local/share/albert
~/.cache/albert

and start albert 22.0 or 22.2 I get a segfault as well. If I downgrade to 21, start it, stop it, upgrade to 22.2, it works fine. You could try that "workaround".

tchiotludo commented 1 year ago

same here :

$ albert -d
        Albert version: 0.22.2
            Build date: Aug 14 2023 20:53:45
            Qt version: 6.4.2
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/6.2.0-27-generic
                    OS: Ubuntu 23.04
     OS (type/version): ubuntu/23.04
 $QT_QPA_PLATFORMTHEME: 
         Platform name: xcb
                  Font: Ubuntu,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
       Binary location: /usr/bin/albert
                  $PWD: /home/ludo
                $SHELL: /bin/bash
                 $LANG: en_US.UTF-8
              Language: English
                Locale: en_US
     $XDG_SESSION_TYPE: x11
  $XDG_CURRENT_DESKTOP: ubuntu:GNOME
      $DESKTOP_SESSION: ubuntu-xorg
  $XDG_SESSION_DESKTOP: ubuntu-xorg
            Icon theme: Papirus-Dark
Segmentation fault (core dumped)

@adabru how do you install previous version to try the workaround?

Ghoelian commented 1 year ago

Alright I think I found something.

When Albert crashes, the error reporter pops up with some information.

Sorry for attaching images instead of text, the stupid error reporter thingy won't let me select text and I don't know where it's pulling this information from.

Segfault stuff Stacktrace

There's also a ThreadStacktrace, but it's way too long to fit on a screenshot. It starts with the warning warning: Section `.reg-xstate/365908' in core file too small.. If that sounds useful, let me know and I'll try to attach the entire stacktrace somehow.

ManuelSchneid3r commented 1 year ago

does 0.22.3 fix this for you?

tchiotludo commented 1 year ago

yes thanks :+1:

Ghoelian commented 1 year ago

yup everything seems to work again. thanks!