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

Segmentation fault when opening settings #1517

Open
GabeDuarteM opened this issue Feb 9, 2025 · 0 comments
Open

Segmentation fault when opening settings #1517

GabeDuarteM opened this issue Feb 9, 2025 · 0 comments
Assignees

Comments

@GabeDuarteM
Copy link

GabeDuarteM commented Feb 9, 2025

Source

AUR

App logs

$ QT_LOGGING_RULES='albert*=true' albert -n
21:02:53 [debg:albert]        Albert version: 0.26.13
21:02:53 [debg:albert]            Build date: Feb  9 2025 19:31:40
21:02:53 [debg:albert]            Qt version: 6.8.2
21:02:53 [debg:albert]             Build ABI: x86_64-little_endian-lp64
21:02:53 [debg:albert]    Build architecture: x86_64
21:02:53 [debg:albert]      CPU architecture: x86_64
21:02:53 [debg:albert]           Kernel type: linux
21:02:53 [debg:albert]        Kernel version: 6.13.1-2-cachyos
21:02:53 [debg:albert]                    OS: CachyOS
21:02:53 [debg:albert]               OS type: cachyos
21:02:53 [debg:albert]            OS version: unknown
21:02:53 [debg:albert]         Platform name: wayland
21:02:53 [debg:albert]            Style name: qt6ct-style
21:02:53 [debg:albert]      Available styles: kvantum-dark, kvantum, Breeze, qt5ct-style, qt6ct-style, Windows, Fusion
21:02:53 [debg:albert]            Icon theme: Colloid-Dark
21:02:53 [debg:albert]                  Font: Geist,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular
21:02:53 [debg:albert]              Language: English
21:02:53 [debg:albert]                Locale: en_US
21:02:53 [debg:albert]       Binary location: /usr/bin/albert
21:02:53 [debg:albert]           Working dir: /home/gabe
21:02:53 [debg:albert]             Arguments: albert -n
21:02:53 [debg:albert] ENVIRONMENT: [REDACTED]
21:02:53 [debg:albert] Loading translations
21:02:53 [debg:albert] Checking for a running instance…
21:02:53 [crit:albert] Albert has not been terminated properly. Please check your logs and report an issue.
21:02:53 [debg:albert] Creating local server /home/gabe/.cache/albert/ipc_socket
21:02:53 [info:albert] Searching native plugins in /usr/lib/albert
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/applications.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/caffeine.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/calculator_qalculate.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/chromium.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/clipboard.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/datetime.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/docs.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/files.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/hash.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/mpris.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/path.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/python.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/snippets.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/ssh.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/system.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/timer.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/timezones.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/urlhandler.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/websearch.so
21:02:53 [debg:albert] Found valid native plugin /usr/lib/albert/widgetsboxmodel.so
21:02:53 [debg:albert] Connecting to database…
21:02:53 [debg:albert] Initializing database…
21:02:53 [debg:albert] Updating usage scores…
21:02:53 [debg:albert] Try loading the configured frontend 'widgetsboxmodel'.
21:02:53 [info:albert] Hotkeys are not supported on this platform.
21:02:55 [debg:albert] Received message: toggle
21:02:55 [warn:albert.wbm] Could not retrieve screen for cursor position. Using primary screen.
21:02:55 [debg:albert.query_runtimes] │ Handling│  Scoring│ Count│
21:02:55 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #0 '' albert
21:02:55 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #0 '' pluginregistry
21:02:55 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #0 '' triggers
21:02:55 [debg:albert.query_runtimes] │ Handling│  Sorting│ Count│
21:02:55 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #0 GLOBAL ''
21:02:55 [debg:albert.query_runtimes] │     0 ms│ TRIGGER |     0│ #0  '' ''
21:02:56 [debg:albert.query_runtimes] │ Handling│  Scoring│ Count│
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     4│ #1 's' pluginregistry
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #1 's' triggers
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     1│ #1 's' albert
21:02:56 [debg:albert.query_runtimes] │ Handling│  Sorting│ Count│
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     5│ #1 GLOBAL 's'
21:02:56 [debg:albert.query_runtimes] │     0 ms│ TRIGGER |     0│ #1  '' 's'
21:02:56 [debg:albert.query_runtimes] │ Handling│  Scoring│ Count│
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     1│ #2 'se' pluginregistry
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #2 'se' triggers
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     1│ #2 'se' albert
21:02:56 [debg:albert.query_runtimes] │ Handling│  Sorting│ Count│
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     2│ #2 GLOBAL 'se'
21:02:56 [debg:albert.query_runtimes] │     0 ms│ TRIGGER |     0│ #2  '' 'se'
21:02:56 [debg:albert.query_runtimes] │ Handling│  Scoring│ Count│
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #3 'set' pluginregistry
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     0│ #3 'set' triggers
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     1│ #3 'set' albert
21:02:56 [debg:albert.query_runtimes] │ Handling│  Sorting│ Count│
21:02:56 [debg:albert.query_runtimes] │     0 ms│     0 ms│     1│ #3 GLOBAL 'set'
21:02:56 [debg:albert.query_runtimes] │     0 ms│ TRIGGER |     0│ #3  '' 'set'
21:02:57 [debg:albert] Database: Adding activation…
21:02:57 [debg:albert] Updating usage scores…
zsh: segmentation fault (core dumped)  QT_LOGGING_RULES='albert*=true' albert -n

Current Behavior

So, the problem is very weird, the first time I open the app on a fresh config, it all works fine. On the first launch it asks for telemetry, whether I click on yes or no, doesn't matter, and I can open the settings without a problem. When I close albert and then open it again, I can still use it fine, but if I open the settings, I now get a segmentation fault (I get zsh: segmentation fault (core dumped) albert -n on the terminal).

On my config, when I select either yes or no for the telemetry question, a section gets added to the config file:

[General]
telemetry=false

If I then remove this section and start albert again, it will ask the telemetry question, I can answer whatever, and then until albert gets restarted again I can open the settings section with no problem.

I also noticed that, strangely enough, if I remove the telemetry section from the config, start albert, and then answer the telemetry question without using the mouse (using e.g. the left/right arrow and then enter, or if I press ESC to cancel it), then it also core dumps when I open the settings, so I need to select an option with my mouse for it to work.

This happens also when I run albert with -n, to avoid loading plugins, and also happens on a fresh config

On the video below I show this happening:

2025-02-09_20-59-33.mp4
  1. 1st, I open it with a config with no telemetry config, click on no when it asks, and open the settings, it all works fine.
  2. I then kill albert and open it again, then go to the settings and it segfaults.
  3. Remove the telemetry section and open albert again, open settings, it works fine again
  4. I then remove the telemetry section again from the settings, open albert, and select an option with the keyboard. I then open the settings and it segfaults.

So in the end, the only way for me to get to the settings is for me to manually go to the config, remove that telemetry section, restart albert, answer the telemetry section with the mouse, and it should work until it gets restarted

Expected Behavior

should not segfault when I open the settings

Anything else?

I'm on hyprland (0.47.0-57-gf7fcbe32 (Wayland)), using arch with cachyos (kernel 6.13.1-2-cachyos)

I can provide more info if needed

coredumpctl info:

$ coredumpctl info
           PID: 348013 (albert)
           UID: 1000 (gabe)
           GID: 1000 (gabe)
        Signal: 11 (SEGV)
     Timestamp: Sun 2025-02-09 21:13:46 CET (7min ago)
  Command Line: albert
    Executable: /usr/bin/albert
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-graphical.slice/tmux-spawn-7dee75d8-40ee-4cfe-bcd8-b8f74253f3f9.scope
          Unit: [email protected]
     User Unit: tmux-spawn-7dee75d8-40ee-4cfe-bcd8-b8f74253f3f9.scope
         Slice: user-1000.slice
     Owner UID: 1000 (gabe)
       Boot ID: 0cdafbd3854a419eb8116cbe330e46c6
    Machine ID: 8cccdbdfe5984c519b4d8e7beb4dfbf8
      Hostname: gabe-arch
       Storage: /var/lib/systemd/coredump/core.albert.1000.0cdafbd3854a419eb8116cbe330e46c6.348013.1739132026000000.zst (present)
  Size on Disk: 4.7M
       Message: Process 348013 (albert) of user 1000 dumped core.

                Stack trace of thread 348013:
                #0  0x000079964c9e3714 n/a (n/a + 0x0)
                #1  0x000079964dfe3c73 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

gdb -ex run --args albert -n:

$ gdb -ex run --args albert -n
GNU gdb (GDB) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from albert...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
  <https://debuginfod.cachyos.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
(No debugging symbols found in albert)
Starting program: /usr/bin/albert -n
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffeb90b6c0 (LWP 351781)]
[New Thread 0x7fffeaeed6c0 (LWP 351782)]
[New Thread 0x7fffea6ec6c0 (LWP 351783)]
21:22:18 [crit:albert] Albert has not been terminated properly. Please check your logs and report an issue.
21:22:18 [info:albert] Searching native plugins in /usr/lib/albert
[New Thread 0x7fffe908e6c0 (LWP 351800)]
21:22:18 [info:albert] Hotkeys are not supported on this platform.
[New Thread 0x7fffdbfff6c0 (LWP 351802)]
[New Thread 0x7fffdb7fe6c0 (LWP 351803)]
[New Thread 0x7fffdaffd6c0 (LWP 351804)]
21:22:26 [warn:albert.wbm] Could not retrieve screen for cursor position. Using primary screen.
[New Thread 0x7fffda7fc6c0 (LWP 351851)]
[New Thread 0x7fffd9ffb6c0 (LWP 351852)]
[New Thread 0x7fffd97fa6c0 (LWP 351853)]
[New Thread 0x7fffd8ff96c0 (LWP 351854)]
[New Thread 0x7fffbffff6c0 (LWP 351855)]
[New Thread 0x7fffbf7fe6c0 (LWP 351856)]
[New Thread 0x7fffbeffd6c0 (LWP 351857)]
[New Thread 0x7fffbe7fc6c0 (LWP 351858)]
[New Thread 0x7fffbdffb6c0 (LWP 351859)]
[New Thread 0x7fffbd7fa6c0 (LWP 351860)]
[New Thread 0x7fffbcff96c0 (LWP 351861)]
[New Thread 0x7fff9bfff6c0 (LWP 351862)]
[New Thread 0x7fff9b7fe6c0 (LWP 351863)]
[New Thread 0x7fff9affd6c0 (LWP 351864)]
[New Thread 0x7fff9a7fc6c0 (LWP 351865)]
[New Thread 0x7fff99ffb6c0 (LWP 351866)]
[New Thread 0x7fff997fa6c0 (LWP 351867)]
[New Thread 0x7fff98ff96c0 (LWP 351868)]
[New Thread 0x7fff77fff6c0 (LWP 351869)]
[New Thread 0x7fff6ffff6c0 (LWP 351870)]
[New Thread 0x7fff777fe6c0 (LWP 351871)]
[New Thread 0x7fff76ffd6c0 (LWP 351872)]
[New Thread 0x7fff767fc6c0 (LWP 351875)]
[New Thread 0x7fff75ffb6c0 (LWP 351878)]
[New Thread 0x7fff757fa6c0 (LWP 351879)]
[New Thread 0x7fff74ff96c0 (LWP 351880)]
[New Thread 0x7fff6f7fe6c0 (LWP 351881)]
[New Thread 0x7fff6effd6c0 (LWP 351882)]

Thread 1 "albert" received signal SIGSEGV, Segmentation fault.
0x00007ffff69e3714 in QScreen::geometry() const () from /usr/lib/libQt6Gui.so.6

libQt6Gui.so.6 seems suspicious here, since the settings seems related to qt.

I also tried reinstalling albert with --rebuild, but that didn't help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants