Bug 489877

Summary: All calculations recorded in systemd journal
Product: [Applications] kcalc Reporter: Darryl <ddrs>
Component: generalAssignee: Gabriel Barrantes <gabriel.barrantes.dev>
Status: RESOLVED FIXED    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Darryl 2024-07-07 14:10:26 UTC
SUMMARY
All calculations are permanently store in the systemd journal. 

STEPS TO REPRODUCE
1. Use kcalc
2. check journalctl -b
3. --

OBSERVED RESULT
Everything typed in kcalc is then recorded in the journal.

EXPECTED RESULT
Everything done in the kcalc should not be recorded.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Here is an example of calculating 5x5=25 and what shows up in the journal:

Jul 07 08:52:40 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:40 homepc kcalc[18908]: Buffer string to parse:  ""
Jul 07 08:52:40 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:40 homepc kcalc[18908]: Buffer string to parse:  ""
Jul 07 08:52:40 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:40 homepc kcalc[18908]: Buffer string to parse:  ""
Jul 07 08:52:42 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:42 homepc kcalc[18908]: Buffer string to parse:  "5"
Jul 07 08:52:42 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:42 homepc kcalc[18908]: String KNumber converted:  "5"
Jul 07 08:52:42 homepc kcalc[18908]: Parsing index after this previous step:  1
Jul 07 08:52:42 homepc kcalc[18908]: Parsing done, index after parsing:  1
Jul 07 08:52:42 homepc kcalc[18908]: Token buffer size:  1
Jul 07 08:52:42 homepc kcalc[18908]: Processing token queue at:  0
Jul 07 08:52:42 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:42 homepc kcalc[18908]: Done processing token list
Jul 07 08:52:42 homepc kcalc[18908]: Done reducing final token stack
Jul 07 08:52:42 homepc kcalc[18908]: Result:  "5"
Jul 07 08:52:43 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:43 homepc kcalc[18908]: Buffer string to parse:  "5×"
Jul 07 08:52:43 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:43 homepc kcalc[18908]: String KNumber converted:  "5"
Jul 07 08:52:43 homepc kcalc[18908]: Parsing index after this previous step:  1
Jul 07 08:52:43 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:43 homepc kcalc[18908]: KCalcToken converted with code:  7
Jul 07 08:52:43 homepc kcalc[18908]: Parsing index after this previous step:  2
Jul 07 08:52:43 homepc kcalc[18908]: Parsing done, index after parsing:  2
Jul 07 08:52:43 homepc kcalc[18908]: Token buffer size:  2
Jul 07 08:52:43 homepc kcalc[18908]: Processing token queue at:  0
Jul 07 08:52:43 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:43 homepc kcalc[18908]: Processing token queue at:  1
Jul 07 08:52:45 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:45 homepc kcalc[18908]: Buffer string to parse:  "5×5"
Jul 07 08:52:45 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:45 homepc kcalc[18908]: String KNumber converted:  "5"
Jul 07 08:52:45 homepc kcalc[18908]: Parsing index after this previous step:  1
Jul 07 08:52:45 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:45 homepc kcalc[18908]: KCalcToken converted with code:  7
Jul 07 08:52:45 homepc kcalc[18908]: Parsing index after this previous step:  2
Jul 07 08:52:45 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:45 homepc kcalc[18908]: String KNumber converted:  "5"
Jul 07 08:52:45 homepc kcalc[18908]: Parsing index after this previous step:  3
Jul 07 08:52:45 homepc kcalc[18908]: Parsing done, index after parsing:  3
Jul 07 08:52:45 homepc kcalc[18908]: Token buffer size:  3
Jul 07 08:52:45 homepc kcalc[18908]: Processing token queue at:  0
Jul 07 08:52:45 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:45 homepc kcalc[18908]: Processing token queue at:  1
Jul 07 08:52:45 homepc kcalc[18908]: Insert Binary Function Token in stack
Jul 07 08:52:45 homepc kcalc[18908]: Processing token queue at:  2
Jul 07 08:52:45 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:45 homepc kcalc[18908]: Done processing token list
Jul 07 08:52:45 homepc kcalc[18908]: Reducing at stack size:  3
Jul 07 08:52:45 homepc kcalc[18908]: Done reducing final token stack
Jul 07 08:52:45 homepc kcalc[18908]: Result:  "25"
Jul 07 08:52:47 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:47 homepc kcalc[18908]: Buffer string to parse:  "5×5"
Jul 07 08:52:47 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:47 homepc kcalc[18908]: String KNumber converted:  "5"
Jul 07 08:52:47 homepc kcalc[18908]: Parsing index after this previous step:  1
Jul 07 08:52:47 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:47 homepc kcalc[18908]: KCalcToken converted with code:  7
Jul 07 08:52:47 homepc kcalc[18908]: Parsing index after this previous step:  2
Jul 07 08:52:47 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:47 homepc kcalc[18908]: String KNumber converted:  "5"
Jul 07 08:52:47 homepc kcalc[18908]: Parsing index after this previous step:  3
Jul 07 08:52:47 homepc kcalc[18908]: Parsing done, index after parsing:  3
Jul 07 08:52:47 homepc kcalc[18908]: Token buffer size:  3
Jul 07 08:52:47 homepc kcalc[18908]: Processing token queue at:  0
Jul 07 08:52:47 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:47 homepc kcalc[18908]: Processing token queue at:  1
Jul 07 08:52:47 homepc kcalc[18908]: Insert Binary Function Token in stack
Jul 07 08:52:47 homepc kcalc[18908]: Processing token queue at:  2
Jul 07 08:52:47 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:47 homepc kcalc[18908]: Done processing token list
Jul 07 08:52:47 homepc kcalc[18908]: Reducing at stack size:  3
Jul 07 08:52:47 homepc kcalc[18908]: Done reducing final token stack
Jul 07 08:52:47 homepc kcalc[18908]: Result:  "25"
Jul 07 08:52:47 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:47 homepc kcalc[18908]: Buffer string to parse:  ""
Jul 07 08:52:47 homepc kcalc[18908]: Parsing string to TokenQueue
Jul 07 08:52:47 homepc kcalc[18908]: Buffer string to parse:  "25"
Jul 07 08:52:47 homepc kcalc[18908]: Converting string to Token
Jul 07 08:52:47 homepc kcalc[18908]: String KNumber converted:  "25"
Jul 07 08:52:47 homepc kcalc[18908]: Parsing index after this previous step:  2
Jul 07 08:52:47 homepc kcalc[18908]: Parsing done, index after parsing:  2
Jul 07 08:52:47 homepc kcalc[18908]: Token buffer size:  1
Jul 07 08:52:47 homepc kcalc[18908]: Processing token queue at:  0
Jul 07 08:52:47 homepc kcalc[18908]: Inserting KNumber Token in stack
Jul 07 08:52:47 homepc kcalc[18908]: Done processing token list
Jul 07 08:52:47 homepc kcalc[18908]: Done reducing final token stack
Jul 07 08:52:47 homepc kcalc[18908]: Result:  "25"


Also, I noticed similar behaviour with kde's other calculator (kalk), I have not reported that bug.
Comment 1 Gabriel Barrantes 2024-07-07 15:22:53 UTC
This is probably related to

https://invent.kde.org/utilities/kcalc/-/merge_requests/93

 I am not sure if it is intended or not... Probably something is not properly configured for the release build, since debug messages are only intended for development purposes.
Comment 2 Bug Janitor Service 2024-07-22 17:58:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/130
Comment 3 Gabriel Barrantes 2024-07-22 18:12:05 UTC
That should take care of it, it wont make it to the upcoming release tho. If the issue persists then reopen.