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

            Bug ID: 365317
           Summary: Fast window title updates cause plasmashell to become
                    unresponsive
           Product: plasmashell
           Version: 5.7.0
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

I ran into this bug in 5.7.0 with my Python 3 RSS reader: As the reader fetches
new feeds, it updates the unread item count in its window title. This worked
without problems with older versions of KDE, but in 5.7.0 it causes the task
bar to hang with very high CPU usage. Sometimes it will recover on its own,
other times I have to "xkill" it.

Reproducible: Always

Steps to Reproduce:
Run the Python 3 script below. It sets up a Tk app and updates the window title
and icon name very quickly, which should trigger this problem.

With longer time intervals between updates (say, "root.after(20"), I also see
the plasmashell issue, but the task bar will not lock up for as long.

#!/usr/bin/env python3

from  tkinter import *
import random

def title():
    root.title("aaaaaaaa %u" % random.randint(1,5))
    root.iconname("bbbbbbb %u" % random.randint(1,5))
    root.after(5, title)

class TkApp:
    def __init__(s, parent):
        s.parent = parent


root = Tk()
app = TkApp(root)
root.iconname("test")
root.after(500, title)
root.mainloop()



Actual Results:  
The Plasma taskbar becomes unresponsive for 45 seconds or so. The clock in the
taskbar stops. Task bar cannot be used to switch between apps. CPU usage of
plasmashell is very high.

Expected Results:  
Task bar behaves normally.

This is on a dual core Pentium-class system. On a faster CPU, behavior might
differ.

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

Reply via email to