Bug 454130 - Typing = after certain phrases crashes krunner
Summary: Typing = after certain phrases crashes krunner
Alias: None
Product: krunner
Classification: Plasma
Component: calculator (show other bugs)
Version: 5.24.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Lohnau
Depends on:
Reported: 2022-05-21 06:51 UTC by afedotov861
Modified: 2022-05-23 17:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:

calculator runner gibberish (14.51 KB, image/png)
2022-05-21 07:36 UTC, afedotov861

Note You need to log in before you can comment on or make changes to this bug.
Description afedotov861 2022-05-21 06:51:09 UTC
When typing certain strings into krunner, followed by an equals sign, krunner closes unexpectedly, which i'm suspecting is it crashing. I have had this happen so far with these strings:
(libreoffice being installed, meaning some populated search results. On the other hand, SAL_USE_VCLPLUGIN returned no search results before i append = to kill krunner, so i'm not sure how significant this is.)
I am certain this is the fault of the calculator component, because when i disable it in krunner settings, the behavior does not happen anymore.
I am suspecting that this is indeed crashing krunner, because on its next activation it is exhibiting the behavior of sliding upwards to the edge of the screen on its first activation as described in another bug (https://bugs.kde.org/show_bug.cgi?id=447096)

KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Comment 1 Alexander Lohnau 2022-05-21 07:02:31 UTC
Please attach a stacktrace and say which distro you yre running.
Comment 2 Alexander Lohnau 2022-05-21 07:03:22 UTC
If you don't have a DrKonqui notification, you can run "krunner --replace" on the terminal and see if there is any crash.
Comment 3 afedotov861 2022-05-21 07:16:38 UTC
Unfortunately, I am using Arch Linux, which makes it hard for me to generate a useful trace as it does not sanely distribute debug symbols. I did run krunner --replace inside a terminal, here is what i got: https://pastebin.com/VgYbywmb
The crash happened on Line 8 and below, I just decided to include everything it wrote out for completeness. Meanwhile I will try to figure out how they want me to use debuginfod...
Comment 4 afedotov861 2022-05-21 07:18:28 UTC
Oh, and DrKonqui never showed when I crashed krunner after opening it from keyboard shortcut, and it only sometimes showed from krunner launched in a terminal by krunner --replace
Comment 5 Alexander Lohnau 2022-05-21 07:28:22 UTC
Thanks for the info! Does disabling the calculator runner fix the issue?

There is another bug report about the calculator runner crashing, but I was not able to reproduce it with KDE Neon packages, qalculate master or the qaclculate version the bugreporter uses.
Comment 6 afedotov861 2022-05-21 07:33:20 UTC
Yes, disabling the calculator component of krunner does fix this issue. I figure it's trying to calculate on something invalid when = is typed. As in, parsing things it shouldn't be parsing. I'll soon attach a picture of something that supports my theory, although this time it doesn't crash but instead spits out gibberish.
Comment 7 afedotov861 2022-05-21 07:36:16 UTC
Created attachment 149055 [details]
calculator runner gibberish

Here, I've attached it
Comment 8 Alexander Lohnau 2022-05-21 07:43:28 UTC
Interesting, on the qalc CLI I get

>  error: "U" is not a valid variable/function/unit.
>  error: "OME" is not a valid variable/function/unit.
>  giganewton × (0 × poise) × gigahenry = 0 g²/(F·s)

Could you please file a separate bug report for the gibberish results?