Bug 483147 - [wayland] Overview Effect Calculator Sometimes Shows "aborted" on some/all displays, usually on first calculation of the session
Summary: [wayland] Overview Effect Calculator Sometimes Shows "aborted" on some/all di...
Status: ASSIGNED
Alias: None
Product: krunner
Classification: Plasma
Component: calculator (show other bugs)
Version: 6.0.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-10 18:14 UTC by Eamonn Rea
Modified: 2024-05-09 15:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eamonn Rea 2024-03-10 18:14:32 UTC
SUMMARY
When searching in the Overview effect, the Calculator will sometimes show "aborted" on some or all displays. This typically only happens with the first entered calculation of that session, and cannot be reproduced until a reboot.

Since the search results are reflected on all displays, the calculation result will show up on all displays. But usually the calculation will only display properly on the screen the search was entered on; that is, all but the screen where you entered the calculation on will display it correctly. However this is still inconsistent, and sometimes "aborted" will display on *all* screens.

This can be replicated with a simple sum, like "1 + 1".

Clearing the search term, or adjusting the calculation (i.e. following the above, entering " + 1" on the end) will correctly display the sum, and all following sums will be displayed correctly.


STEPS TO REPRODUCE
1. Open Overview effect on a fresh login.
2. Enter a sum, such as "1 + 1".
3. Some or all screens will display "aborted", although the current screen will usually display the sum correctly.


OBSERVED RESULT
Calculation shows "aborted" in Overview effect on some or all screens.


EXPECTED RESULT
Calculation shows correctly on all screens (or search terms only appear on the currently active screen, to avoid visual overload when using 4+ displays)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.7.8 Linux Zen
KDE Plasma Version: 6.0.1
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2
Comment 1 Nate Graham 2024-03-11 21:32:10 UTC
Does the issue ever happen with only a single screen? I wonder if we could be running into a libqalculate threading issue here.
Comment 2 Alexander Lohnau 2024-03-16 07:27:32 UTC
I have a patch locally that should fix it lying around for some weeks now :D I will need to give it some proper multi-monitor testing.

>I  wonder if we could be running into a libqalculate threading issue here.

That is correct. We have two RunnerManagers and thus plugins we feed at the /exact/ same time with the query string.
Comment 3 Bug Janitor Service 2024-05-09 15:41:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/krunner/-/merge_requests/178
Comment 4 Bug Janitor Service 2024-05-09 15:45:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5707