https://bugs.kde.org/show_bug.cgi?id=508070

            Bug ID: 508070
           Summary: Emojis in notification body causes plasmashell to
                    freeze
    Classification: Plasma
           Product: plasmashell
      Version First 6.4.4
       Reported In:
          Platform: EndeavourOS
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: Notifications
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

Created attachment 183919
  --> https://bugs.kde.org/attachment.cgi?id=183919&action=edit
Recording of the bug

SUMMARY
The Plasma desktop and panels would freeze for a few seconds when trying to
display notifications with a lot of emojis in its body

STEPS TO REPRODUCE
1. Run `notify-send 'Bad emoji spam' $(printf '😂%.0s' {1..100})` on the
terminal
2. Wait for the notification to appear
3. Dismiss the notification

OBSERVED RESULT
It takes about a second or two (0.5 seconds on my machine) for the
`notify-send` command to complete and about the same amount of time as long to
dismiss the notification. plasmashell would also freeze for about twice as long
when trying to open or close the notifications popup, but only if there are
notifications with a lot of emojis in their body sections. The more emojis are
shown, the longer plasmashell takes to display the notifications.

The rest of the desktop, including the mouse cursor, appears to remain
responsive during the delay.

EXPECTED RESULT
The notification would appear instantly, it would be dismissed instantly, and
there should be no delay in opening or closing the notifications popup.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Graphics Processor: AMD Radeon RX 6750 XT
Graphics Driver: AMDGPU

ADDITIONAL INFORMATION
This might be related to bug #507304; the only difference is the desktop would
not crash and restart before displaying the notifications, and the fix for that
bug doesn't seem to affect this one. If I remember correctly, I first noticed
this behavior in Plasma 6.3.

The cursor does stutter in the attached video, but actually it's fully
responsive on-screen.

I couldn't get plasmashell to freeze when I put the emojis in the notification
title instead of the body, even with multiple notifications sent this way.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to