Skip to content

Typing "lib" and variations of "scr" causes crashes #213

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

Closed
TheKamboy opened this issue Oct 26, 2024 · 17 comments · Fixed by #226
Closed

Typing "lib" and variations of "scr" causes crashes #213

TheKamboy opened this issue Oct 26, 2024 · 17 comments · Fixed by #226

Comments

@TheKamboy
Copy link

I wanted to check if my system had libreoffice installed, so I searched it through cosmic launcher, which caused a crash when typing "lib".
Typing "scr" or replacing the r with certain letters also causes a crash. If anyone can tell me how to get backtraces working with this, since I can't figure out how to get backtraces to work with cosmic launcher.

Oh yeah, at the time of writing this, "sc" also causes crashes now as well. Wonderful.

@mmstick
Copy link
Member

mmstick commented Oct 26, 2024

Which version of pop-launcher and cosmic-launcher?

@smsteward
Copy link

I have this issue as well, but with different character combinations. If I type "pr" or "po" into cosmic-launcher (usually to open Proton apps or Portmaster), cosmic-launcher exits immediately. I'm only able to launch those apps via the launcher by typing just the first character, and scrolling through the resulting menu or by pressing the Ctrl+number from the launcher menu. I'm using cosmic-launcher-git and pop-launcher-git from the AUR.

$ pacman -Qi cosmic-launcher-git
Name            : cosmic-launcher-git
Version         : 1.0.0.alpha.2.r3.g27ab200-1
Description     : Layer Shell frontend for Pop Launcher.
Architecture    : x86_64
URL             : https://github.com/pop-os/cosmic-launcher
Licenses        : GPL-3.0-or-later
Groups          : None
Provides        : cosmic-launcher
Depends On      : hicolor-icon-theme  libxkbcommon  pop-launcher-git  wayland
Optional Deps   : None
Required By     : cosmic-session-git
Optional For    : None
Conflicts With  : cosmic-launcher
Replaces        : None
Installed Size  : 22.15 MiB
Packager        : Unknown Packager
Build Date      : Thu 24 Oct 2024 10:24:48 PM EDT
Install Date    : Thu 24 Oct 2024 10:25:49 PM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

$ pacman -Qi pop-launcher-git
Name            : pop-launcher-git
Version         : 1.2.4.r0.gfca3b25-1
Description     : Modular IPC-based desktop launcher service
Architecture    : x86_64
URL             : https://github.com/pop-os/launcher
Licenses        : MPL-2.0
Groups          : None
Provides        : pop-launcher
Depends On      : dbus  fd  libqalculate  libegl  libxkbcommon  pop-icon-theme-git  sh
                  xdg-utils
Optional Deps   : pop-shell-plugin-system76-power
Required By     : cosmic-launcher-git
Optional For    : None
Conflicts With  : pop-launcher
Replaces        : None
Installed Size  : 9.76 MiB
Packager        : Unknown Packager
Build Date      : Fri 18 Oct 2024 06:28:59 PM EDT
Install Date    : Fri 18 Oct 2024 06:29:46 PM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

@TheKamboy
Copy link
Author

Which version of pop-launcher and cosmic-launcher?

I'm using the git versions of both programs, which I installed from the Chaotic AUR.

pop-launcher:

Name            : pop-launcher-git
Version         : 1.2.4.r0.gfca3b25-1
Description     : Modular IPC-based desktop launcher service
Architecture    : x86_64
URL             : https://github.com/pop-os/launcher
Licenses        : MPL-2.0
Groups          : None
Provides        : pop-launcher
Depends On      : dbus  fd  libqalculate  libegl  libxkbcommon  pop-icon-theme-git  sh  xdg-utils
Optional Deps   : pop-shell-plugin-system76-power
Required By     : cosmic-launcher-git
Optional For    : None
Conflicts With  : pop-launcher
Replaces        : None
Installed Size  : 9.67 MiB
Packager        : Garuda Builder <team@garudalinux.org>
Build Date      : Fri 18 Oct 2024 10:57:02 AM PDT
Install Date    : Fri 18 Oct 2024 06:15:55 PM PDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : SHA-256 Sum  Signature

cosmic-launcher:

Name            : cosmic-launcher-git
Version         : 1.0.0.alpha.2.r3.g27ab200-1
Description     : Layer Shell frontend for Pop Launcher.
Architecture    : x86_64
URL             : https://github.com/pop-os/cosmic-launcher
Licenses        : GPL-3.0-or-later
Groups          : None
Provides        : cosmic-launcher
Depends On      : hicolor-icon-theme  libxkbcommon  pop-launcher-git  wayland
Optional Deps   : None
Required By     : cosmic-session-git
Optional For    : None
Conflicts With  : cosmic-launcher
Replaces        : None
Installed Size  : 22.20 MiB
Packager        : Garuda Builder <team@garudalinux.org>
Build Date      : Wed 23 Oct 2024 08:38:27 AM PDT
Install Date    : Thu 24 Oct 2024 05:05:14 PM PDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : SHA-256 Sum  Signature

@TheKamboy
Copy link
Author

I have this issue as well, but with different character combinations. If I type "pr" or "po" into cosmic-launcher (usually to open Proton apps or Portmaster), cosmic-launcher exits immediately. I'm only able to launch those apps via the launcher by typing just the first character, and scrolling through the resulting menu or by pressing the Ctrl+number from the launcher menu. I'm using cosmic-launcher-git and pop-launcher-git from the AUR.

$ pacman -Qi cosmic-launcher-git
Name            : cosmic-launcher-git
Version         : 1.0.0.alpha.2.r3.g27ab200-1
Description     : Layer Shell frontend for Pop Launcher.
Architecture    : x86_64
URL             : https://github.com/pop-os/cosmic-launcher
Licenses        : GPL-3.0-or-later
Groups          : None
Provides        : cosmic-launcher
Depends On      : hicolor-icon-theme  libxkbcommon  pop-launcher-git  wayland
Optional Deps   : None
Required By     : cosmic-session-git
Optional For    : None
Conflicts With  : cosmic-launcher
Replaces        : None
Installed Size  : 22.15 MiB
Packager        : Unknown Packager
Build Date      : Thu 24 Oct 2024 10:24:48 PM EDT
Install Date    : Thu 24 Oct 2024 10:25:49 PM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

$ pacman -Qi pop-launcher-git
Name            : pop-launcher-git
Version         : 1.2.4.r0.gfca3b25-1
Description     : Modular IPC-based desktop launcher service
Architecture    : x86_64
URL             : https://github.com/pop-os/launcher
Licenses        : MPL-2.0
Groups          : None
Provides        : pop-launcher
Depends On      : dbus  fd  libqalculate  libegl  libxkbcommon  pop-icon-theme-git  sh
                  xdg-utils
Optional Deps   : pop-shell-plugin-system76-power
Required By     : cosmic-launcher-git
Optional For    : None
Conflicts With  : pop-launcher
Replaces        : None
Installed Size  : 9.76 MiB
Packager        : Unknown Packager
Build Date      : Fri 18 Oct 2024 06:28:59 PM EDT
Install Date    : Fri 18 Oct 2024 06:29:46 PM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

Interestingly, I don't have the same issue.

@TheKamboy
Copy link
Author

I also discovered that gim and gn also causes cosmic-launcher to crash.

@wash2
Copy link
Collaborator

wash2 commented Nov 13, 2024

This seems like a bug from an older version of the launcher. Could you try using the latest version of the launcher? The AUR version seems like it was last updated before the fix pop-os/launcher@476a8fb

@TheKamboy
Copy link
Author

This seems like a bug from an older version of the launcher. Could you try using the latest version of the launcher? The AUR version seems like it was last updated before the fix pop-os/launcher@476a8fb

I will when I can, as I'm currently busy with school. Thanks for letting me know.

@TheKamboy
Copy link
Author

@wash2 The latest version didn't seem to do anything.

@TheKamboy
Copy link
Author

Ok, for some reason, sometimes it doesn't bug out when trying to search for gimp, but still has issues with trying to search for libreoffice

@curiouslad
Copy link

spo also crash on cosmic

@wash2
Copy link
Collaborator

wash2 commented Dec 3, 2024

@wash2 The latest version didn't seem to do anything.

How did you install the latest version?

spo also crash on cosmic

The AUR version is still out of date and I don't think this is an issue in more recent versions. What version are you using @curiouslad? I'd be happy to look into it some more with a bit more details.

@curiouslad
Copy link

curiouslad commented Dec 3, 2024

@wash2 I am on fedora the version of launcher it says 1.0.0~alpha.3^git20241126.6322a99. I can provide logs if that would help, but i am not sure where to find them

Dec 03 18:57:49 asus cosmic-session[3473]: sending 1 fds
Dec 03 18:57:49 asus cosmic-session[3473]: sleeping for 24ms before restarting process cosmic-launcher (restart 3)
Dec 03 18:57:49 asus cosmic-session[3473]: draining stdin receiver before restarting process
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.659295Z INFO launch_pad: sleeping for 24ms before restarting process cosmic-launcher (resta>
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.659281Z INFO launch_pad: draining stdin receiver before restarting process
Dec 03 18:57:49 asus cosmic-session[3473]: cosmic-launcher exited with error 101
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.659226Z ERROR cosmic_session: cosmic-launcher exited with error 101
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.659199Z ERROR launch_pad: process ' WAYLAND_DISPLAY=wayland-1 DISPLAY=:0 XDG_SESSION_TYPE=wa>
Dec 03 18:57:49 asus cosmic-session[3473]: process ' WAYLAND_DISPLAY=wayland-1 DISPLAY=:0 XDG_SESSION_TYPE=wayland WAYLAND_SOCKET=42 cosmic-launcher ' failed with code 101
Dec 03 18:57:49 asus cosmic-session[3473]: note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.654195Z WARN cosmic-launcher: cosmic_session: note: run with RUST_BACKTRACE=1 environment>
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.654185Z WARN cosmic-launcher: cosmic_session: user-provided comparison function does not co>
Dec 03 18:57:49 asus /usr/libexec/gdm-wayland-session[3473]: 2024-12-03T17:57:49.654163Z WARN cosmic-launcher: cosmic_session: thread 'main' panicked at core/src/slice/sort>
Dec 03 18:57:49 asus cosmic-session[3473]: user-provided comparison function does not correctly implement a total order
Dec 03 18:57:49 asus cosmic-session[3473]: thread 'main' panicked at core/src/slice/sort/shared/smallsort.rs:860:5:

@wash2
Copy link
Collaborator

wash2 commented Dec 3, 2024

@curiouslad I believe that is referencing 6322a99 which should be a different package than the one that I believe was the source of the issue. Could you maybe check the version for pop-launcher?

@wash2
Copy link
Collaborator

wash2 commented Dec 3, 2024

Hmm actually, I'll push a quick update to the pop-launcher crate used in cosmic-launcher, which might fix the issue.

try https://github.com/pop-os/cosmic-launcher/commits/master/ now which has an update which should include a more up to date pop-launcher

@avnyu
Copy link

avnyu commented Dec 3, 2024

rebuilt on arch, cosmic-launcher-git 1.0.0.alpha.3.r3.g9324e9e-1 and pop-launcher-git 1.2.4.r0.gfca3b25-1, still have the issues, mine is when typing 'gi' or when backspace 'gi' to 'g', also happened on newly created user

@wiiznokes
Copy link
Contributor

i'm having a crash with "yt" too. My guess is that it's related to iced-rs/iced#2651

@TheKamboy
Copy link
Author

i completely forgot about this issue lol. it is fixed for me since the update was done. thanks!

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

Successfully merging a pull request may close this issue.

7 participants