Bug 501991 - Job progress notification from browser via plasma-browser-integration freezes and OOMs plasmashell
Summary: Job progress notification from browser via plasma-browser-integration freezes...
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: HI major
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-03-25 18:02 UTC by Nate Graham
Modified: 2025-04-06 12:48 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-03-25 18:02:50 UTC
STEPS TO REPRODUCE
1. Install Firefox from Flathub
2. Install and activate the plasma-browser integration add-on
3. Ensure p-b-i-host is running
3. Download https://files.kde.org/kde-linux/kde-linux_202503210255.raw
OBSERVED RESULT
A nice Plasma notification appears showing download progress, but it and the rest of Plasma immediately freeze. plasmashell's memory usage begins to climb rapidly, eventually OOMing the system.


EXPECTED RESULT
Drama-free notification


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80 (git master)
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GB of RAM (14.9 GB usable)
Graphics Processor: AMD Radeon 780M
Comment 1 Kristen McWilliam 2025-03-25 19:08:07 UTC
For me this also happens with the non-flatpak system installation of Firefox. (Fedora 41) Just signed into a dev session and started a download with Firefox.
Comment 2 Akseli Lahtinen 2025-03-25 20:05:46 UTC
Happened to me as well, dev session with RPM Firefox

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 3 David Redondo 2025-03-26 15:14:05 UTC
Last log message before freezing is 

 kf.quickcharts.datasource: ModelSource: Invalid role  -1 "data"
Comment 4 Bug Janitor Service 2025-03-27 09:37:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5342
Comment 5 Kai Uwe Broulik 2025-03-27 10:18:28 UTC
Git commit 369bfa67adaed8ddfd1ebb55005b99b01e4a1255 by Kai Uwe Broulik.
Committed on 27/03/2025 at 09:38.
Pushed by broulik into branch 'master'.

applets/notifications: Avoid divide by zero with resolution

A job doesn't necessarily have totalBytes set. For instance, a download
might be processing without it knowing the final size.

M  +13   -11   applets/notifications/package/contents/ui/components/SpeedChart.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/369bfa67adaed8ddfd1ebb55005b99b01e4a1255
Comment 6 Fushan Wen 2025-04-06 12:48:24 UTC
Git commit 6873a38d94b389118dc6b896473d6a10824dbef3 by Fushan Wen.
Committed on 06/04/2025 at 11:58.
Pushed by fusionfuture into branch 'master'.

appiumtests: add test for job notification

1. A job is created without a total amount of bytes to test bug 502001.
2. Elements in a job notification are examined.
3. Update the job progress, and the notification should report progress,
   speed and remaining time.
4. When a job is complete, "Job Finished" and the destination url should
   show up.

M  +42   -2    appiumtests/applets/notificationstest.py
A  +0    -0    appiumtests/applets/notificationstest/__init__.py
A  +64   -0    appiumtests/applets/notificationstest/jobnotification.py
A  +55   -0    appiumtests/applets/notificationstest/jobnotificationinterface.py
M  +2    -0    applets/notifications/package/contents/ui/components/JobItem.qml
M  +2    -0    applets/notifications/package/contents/ui/components/SpeedChart.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/6873a38d94b389118dc6b896473d6a10824dbef3