Bug 483643 - When some applications send a notification but no notification server is running, the application freezes
Summary: When some applications send a notification but no notification server is runn...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.2
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-15 10:37 UTC by timon2201
Modified: 2024-04-11 15:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timon2201 2024-03-15 10:37:49 UTC
SUMMARY
When you have a xwayland application running and it throws some notification like discord or teams-on-linux then the application gui becomes unresponsive, but the when you are in a call you can still hear them for a while before the whole application freezes.

It can also happen that after a while of freezing( 3-5min ) the application could be working again. 
But only happens sometimes.

STEPS TO REPRODUCE
1. open discord and ask someone to send you a message and also have notifications enabled
2. see how you get the notification sound of kde but after that the application is unresponsive and freezes
3. could be that after about 3-5min the application is responsive again

OBSERVED RESULT

gui of the application becoming unresponsive and after a while freezing the whole application

EXPECTED RESULT
nothing happens

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-273-tkg-eevdf (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS MASTER
System Version: -CF
Comment 1 timon2201 2024-03-15 12:09:46 UTC
I tried it with xfce and the applications work fine there without any freezing.
Comment 2 timon2201 2024-03-15 12:19:22 UTC
after further testing it only happen when the notifications are disabled in the system tray settings.
Comment 3 Nate Graham 2024-04-10 17:35:08 UTC
> when the notifications are disabled in the system tray settings

What exact setting did you change, and what did you change it to?
Comment 4 timon2201 2024-04-11 15:17:14 UTC
(In reply to Nate Graham from comment #3)
> > when the notifications are disabled in the system tray settings
> 
> What exact setting did you change, and what did you change it to?

When i go into the system tray settings you click on the entries tab and search for notifications and set it to disabled. Then the applications are froze for me when they threw notifications. Especially discord and teams-for-linux.
Comment 5 Nate Graham 2024-04-11 15:23:28 UTC
Ok, don't do that. :) You've disabled the entire systemwide notification server. I guess when these apps try to send a notification they don't handle the case of no system notification server being running, so they hang or crash. This is ultimately their fault, Other apps like Thuunderbird fall back to showing their own notifications in app code when they encounter this situation.

Meanwhile please re-enable the notifications widget. I'll look into how we can message this better so people at least know what they're getting into when they do this.