Bug 453955

Summary: Krunner crashes when trying to calculate a function value
Product: [Plasma] krunner Reporter: Linus Dierheimer <Linus>
Component: calculatorAssignee: Alexander Lohnau <alexander.lohnau>
Status: RESOLVED NOT A BUG    
Severity: crash CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Linus Dierheimer 2022-05-17 20:20:02 UTC
OBSERVED RESULT

When you type =log( and then enter a number, krunner crashes. Same behaviour when using sin, cos etc. Closing the bracket without entering a number, and then entering the number does work perfectly fine. 

Following output is produced when starting krunner from a terminal:

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
free(): invalid pointer
21 -- exe=/usr/bin/krunner
13 -- platform=xcb
11 -- display=:0
16 -- appname=krunner
17 -- apppath=/usr/bin
9 -- signal=6
10 -- pid=59079
18 -- appversion=5.24.5
20 -- programname=krunner
31 -- bugaddress=submit@bugs.kde.org
12 -- startupid=0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = krunner path = /usr/bin pid = 59079
KCrash: Arguments: /usr/bin/krunner 
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
KCrash: Attempting to start /usr/lib/drkonqi
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
The X11 connection broke (error 1). Did the X11 server die?
file:///usr/lib/qt/qml/org/kde/milou/ResultsView.qml:56: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:31: TypeError: Cannot read property 'gridUnit' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:175: TypeError: Cannot read property 'smallSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:181: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:182: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:144: TypeError: Cannot read property 'largeSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:259: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:260: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:31: TypeError: Cannot read property 'gridUnit' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:175: TypeError: Cannot read property 'smallSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:181: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:182: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:144: TypeError: Cannot read property 'largeSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:31: TypeError: Cannot read property 'gridUnit' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:175: TypeError: Cannot read property 'smallSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:181: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:182: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:144: TypeError: Cannot read property 'largeSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:31: TypeError: Cannot read property 'gridUnit' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:175: TypeError: Cannot read property 'smallSpacing' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:181: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:182: TypeError: Cannot read property 'iconSizes' of null
file:///usr/lib/qt/qml/org/kde/milou/ResultDelegate.qml:144: TypeError: Cannot read property 'largeSpacing' of null

EXPECTED RESULT

KRunner doesn't crash

SOFTWARE/OS VERSION

Linux/KDE Plasma: 5.17.7 / 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4, with KDE patch collection
Comment 1 Nate Graham 2022-05-18 15:40:27 UTC
Cannot reproduce. If something crashed, we need a backtrace of it so we can figure out what's going on. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Can you please attach one? Thanks!
Comment 2 Linus Dierheimer 2022-05-21 14:54:27 UTC
After a restart it works again, and i can't reproduce it anymore.
Comment 3 Alexander Lohnau 2022-05-21 15:33:54 UTC
We seem to have quite a lot of qalculate crashes recently :(