Skip to content
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

Segfault after updating to Fedora 31 (Gnome 3.34?) #845

Closed
justin2net opened this issue Oct 2, 2019 · 7 comments
Closed

Segfault after updating to Fedora 31 (Gnome 3.34?) #845

justin2net opened this issue Oct 2, 2019 · 7 comments
Labels
Stale Stale issue, closing soon.

Comments

@justin2net
Copy link

justin2net commented Oct 2, 2019

Source

From source, latest master

Environment

➜  ~ albert -v
albert 0.16.1
➜  ~ albert -r
        Albert version: 0.16.1
            Build date: Oct  2 2019 12:55:10
            Qt version: 5.12.4
  QT_QPA_PLATFORMTHEME:
       Binary location: /usr/local/bin/albert
                   PWD: /home/justin
                 SHELL: /usr/bin/zsh
                  LANG: en_US.UTF-8
      XDG_SESSION_TYPE: wayland
   XDG_CURRENT_DESKTOP: GNOME
       DESKTOP_SESSION: gnome
   XDG_SESSION_DESKTOP: gnome
                    OS: Fedora 31 (Workstation Edition)
     OS (type/version): fedora/31
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/5.3.1-300.fc31.x86_64

Steps to reproduce

Type albert in shell.

Expected behaviour

Albert should launch.

Actual behaviour

➜  ~ albert
13:34:29 [WARN:default] QSocketNotifier: Can only be used with threads started with QThread
13:34:29 [INFO:default] Systems icon theme is: "Adwaita"
13:34:29 [WARN:default] Application has not been terminated graciously.
13:34:29 [INFO:default] Loading extension "org.albert.extension.applications"
13:34:29 [INFO:applications] Start indexing applications.
13:34:29 [INFO:default] Loading extension "org.albert.extension.calculator"
13:34:29 [INFO:applications] Desktop file skipped: '/usr/share/applications/alacritty.desktop' overwritten in '/home/justin/.local/share/applications/alacritty.desktop'
13:34:29 [INFO:applications] Desktop file skipped: '/usr/share/applications/x2goclient.desktop' overwritten in '/home/justin/.local/share/applications/x2goclient.desktop'
13:34:29 [INFO:applications] Desktop file skipped: '/usr/share/applications/org.gnome.Terminal.desktop' overwritten in '/home/justin/.local/share/applications/org.gnome.Terminal.desktop'
[1]    4466 segmentation fault (core dumped)  albert

This started happening after I updated to Fedora 31 with Wayland enabled. Before, I was running Fedora 30 with Wayland disabled. I re-built from source and reinstalled the muParser dependencies too.

Edit: Albert works with Wayland disabled on Fedora 31. So perhaps the problem has to do with Wayland?

Thanks,
Justin

@aleixpol
Copy link

aleixpol commented Oct 3, 2019

Same problem with plasma + wayland:

[New Thread 0x7fffef5d4700 (LWP 22290)]
15:33:08 [INFO:default] Systems icon theme is: ""
15:33:08 [DEBG:default] Creating IPC server
15:33:08 [DEBG:default] Initializing mandatory paths
15:33:08 [DEBG:default] Setup signal handlers
15:33:08 [DEBG:default] Creating running indicator file
15:33:08 [WARN:default] Application has not been terminated graciously.
15:33:08 [DEBG:default] Initializing core components

Thread 1 "albert" received signal SIGSEGV, Segmentation fault.
0x00007ffff6e78899 in XGetModifierMapping () from /usr/lib/libX11.so.6
(gdb) where
#0  0x00007ffff6e78899 in XGetModifierMapping () from /usr/lib/libX11.so.6
#1  0x00005555555aa212 in GlobalShortcut::HotkeyManagerPrivate::HotkeyManagerPrivate(QObject*) ()
#2  0x00005555555a9c27 in GlobalShortcut::HotkeyManager::HotkeyManager(QObject*) ()
#3  0x0000555555578af0 in main ()

@cycomanic
Copy link

I can confirm that this is a wayland issue. Starting albert with QT_QPA_PLATFORM=xcb works fine, but starting with QT_QPA_PLATFORM=wayland causes the segfault

@cycomanic
Copy link

Just a thought, would it be possible to compile albert without hotkey support? Considering that hotkeys don't work with wayland anyway, this might be an easy way to get albert working using wayland. The reason why I don't want to use QT_QPA_PLATFORM=xcb is, that this causes all QT applications launched by albert to use xwayland.

I just had a brief look, but it wasn't obvious to me how easy it is (not a C++ developer). If you can point me in the right direction I could have a stab at this though.

@edrex
Copy link

edrex commented Nov 25, 2019

This happens in wayland environments. Fixed by #804

@stale
Copy link

stale bot commented Nov 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Stale issue, closing soon. label Nov 5, 2020
@ManuelSchneid3r
Copy link
Member

#804 merged

Note: I wrote this comment as fast as I can to master the current pile of work. If I missed the point or you have other objections please open a new issue.

@albertlauncher albertlauncher locked and limited conversation to collaborators Dec 7, 2020
@ManuelSchneid3r
Copy link
Member

Continue discussion at #958.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale Stale issue, closing soon.
Development

No branches or pull requests

5 participants