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

Wayland: crash on show #858

Closed
edrex opened this issue Nov 25, 2019 · 5 comments
Closed

Wayland: crash on show #858

edrex opened this issue Nov 25, 2019 · 5 comments
Labels
Stale Stale issue, closing soon.

Comments

@edrex
Copy link

edrex commented Nov 25, 2019

Steps to reproduce

albert show under any wayland compositor.

Expected behaviour

show

Actual behaviour

crash

Version

Built from master with #804 applied (to get past earlier wayland crash).

Environment

❯ albert --report 
        Albert version: 0.16.1
            Build date: Nov  4 2019 06:13:50
            Qt version: 5.13.2
  QT_QPA_PLATFORMTHEME: qt5ct
       Binary location: /usr/bin/albert
                   PWD: /home/eric
                 SHELL: /usr/bin/zsh
                  LANG: en_US.UTF-8
      XDG_SESSION_TYPE: tty
   XDG_CURRENT_DESKTOP: 
       DESKTOP_SESSION: 
   XDG_SESSION_DESKTOP: 
                    OS: Arch Linux
     OS (type/version): arch/unknown
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/5.3.11-arch1-1

Trace

❯ coredumpctl info
           PID: 590302 (albert)
           UID: 1000 (eric)
           GID: 1000 (eric)
        Signal: 11 (SEGV)
     Timestamp: Mon 2019-11-25 00:42:53 PST (13min ago)
  Command Line: bin/albert
    Executable: /home/eric/src/github.com/albertlauncher/albert-build/bin/albert
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (eric)
       Boot ID: 493ef9910b7f4ce9afa96ea6265916d6
    Machine ID: a48fe9a7ff994789a35fe7ad090cd8d7
      Hostname: chip
       Storage: /var/lib/systemd/coredump/core.albert.1000.493ef9910b7f4ce9afa96ea6265916d6.590302.1574671373000000000000.lz4
       Message: Process 590302 (albert) of user 1000 dumped core.
                
                Stack trace of thread 590302:
                #0  0x00007f6bcb5a10c9 XQueryExtension (libX11.so.6)
                #1  0x00007f6bcb5947e4 XInitExtension (libX11.so.6)
                #2  0x00007f6bc9a01c5f XextAddDisplay (libXext.so.6)
                #3  0x00007f6bc99fc051 XShapeQueryExtension (libXext.so.6)
                #4  0x00007f6bab668902 n/a (libwidgetboxmodel.so)
                #5  0x00007f6bcb06f8ef _ZN7QWidget5eventEP6QEvent (libQt5Widgets.so.5)
                #6  0x00007f6bcb02b4e5 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #7  0x00007f6bcb034e11 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #8  0x00007f6bcb93ad12 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #9  0x00007f6bcb0679a0 _ZN14QWidgetPrivate30sendPendingMoveAndResizeEventsEbb (libQt5Widgets.so.5)
                #10 0x00007f6bcb06b894 _ZN14QWidgetPrivate11show_helperEv (libQt5Widgets.so.5)
                #11 0x00007f6bcb06eb85 _ZN14QWidgetPrivate10setVisibleEb (libQt5Widgets.so.5)
                #12 0x00007f6bab6662c0 n/a (libwidgetboxmodel.so)
                #13 0x000055fe583ef850 n/a (/home/eric/src/github.com/albertlauncher/albert-build/bin/albert)
                #14 0x000055fe583f519a n/a (/home/eric/src/github.com/albertlauncher/albert-build/bin/albert)
                #15 0x000055fe583f4ea4 n/a (/home/eric/src/github.com/albertlauncher/albert-build/bin/albert)
                #16 0x000055fe583f48ba n/a (/home/eric/src/github.com/albertlauncher/albert-build/bin/albert)
                #17 0x00007f6bcb966c20 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #18 0x00007f6bcc5451c1 n/a (libQt5Network.so.5)
                #19 0x00007f6bcb966ac1 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #20 0x00007f6bcb973742 _ZN15QSocketNotifier9activatedEiNS_14QPrivateSignalE (libQt5Core.so.5)
                #21 0x00007f6bcb973a92 _ZN15QSocketNotifier5eventEP6QEvent (libQt5Core.so.5)
                #22 0x00007f6bcb02b4e5 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #23 0x00007f6bcb034e11 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #24 0x00007f6bcb93ad12 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #25 0x00007f6bcb993766 n/a (libQt5Core.so.5)
                #26 0x00007f6bc9ad13ee g_main_context_dispatch (libglib-2.0.so.0)
                #27 0x00007f6bc9ad3201 n/a (libglib-2.0.so.0)
                #28 0x00007f6bc9ad3241 g_main_context_iteration (libglib-2.0.so.0)
                #29 0x00007f6bcb992b13 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #30 0x00007f6bcb93983c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #31 0x00007f6bcb941676 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                #32 0x000055fe583edc17 n/a (/home/eric/src/github.com/albertlauncher/albert-build/bin/albert)
                #33 0x00007f6bca9e6153 __libc_start_main (libc.so.6)
                #34 0x000055fe583db20e n/a (/home/eric/src/github.com/albertlauncher/albert-build/bin/albert)
@cycomanic
Copy link

I can confirm the crash. I've tried switching to the QMLwidgetmodel, but only get an empty window in sway. I've created a hack around this, which lets me use albert under sway. It can be found at here. Sorry I don't really know enough about wayland and X11 to do a proper fix.

@NoxHarmonium
Copy link

NoxHarmonium commented Jan 19, 2020

Thanks @cycomanic and @johanhelsing for the fixes!

I tried it and now I can run Albert again on Fedora 31

To build on Fedora 31:

git clone git@github.com:johanhelsing/albert.git # Fork to fix another Wayland issue
git checkout wayland-crash-fix
cd albert
git submodule update --init --recursive --remote
cd plugins
git remote set-url origin git@github.com:cycomanic/plugins-1.git
git fetch
git checkout origin/dev
cd ..

# Make sure you have all the dependencies you need (or the equivalent packages on your distro):
sudo dnf install cmake qt5-devel qt5-qtcharts-devel muParser-devel python-devel

mkdir albert-build
cd albert-build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
make
sudo make install

Edit: I think I might have spoke too soon. It doesn't crash anymore and I can access the settings page but I can't get it to launch.
Edit 2: Spoke too soon again. albert show from the terminal works fine, it just doesn't appear if I use the menu on the status bar icon. Now I just need to work out how to trigger albert show with a hotkey since I don't think its configurable at the moment with these changes

@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

This is a wayland issue. The app is not really ready for wayland yet. Ill close this one since there are dozens of wayland issues.

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.

@ManuelSchneid3r
Copy link
Member

Continue discussion at #958.

@albertlauncher albertlauncher locked and limited conversation to collaborators Dec 7, 2020
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

4 participants