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

            Bug ID: 465775
           Summary: plasmashell quits when window title too long
    Classification: Plasma
           Product: plasmashell
           Version: 5.26.90
          Platform: Debian testing
                OS: Linux
            Status: REPORTED
          Keywords: wayland
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: kenny.mh....@outlook.com
                CC: k...@davidedmundson.co.uk
  Target Milestone: 1.0
             Flags: Wayland+, X11-

Created attachment 156276
  --> https://bugs.kde.org/attachment.cgi?id=156276&action=edit
An python script which opens a empty window with Tkinter, setting the title of
that window to ~7000 characters.

SUMMARY
If an application's title is too long, plasmashell will quit for whatever
reason. (Not crash)
This issue seems to be Wayland only, X11 will work fine.

This has become a problem as some (rather niche) web developer puts thousands
of characters into the HTML <title> tag for fun, and plasmashell would quit
everytime you visit the website. (Notably with Chromium based browser/Firefox,
Falkon seems unaffected, Firefox may not be able to reproduce this, see below).

The length required to reproduce this seems to vary between system, but on my
main system it's exactly 4074 characters.

STEPS TO REPRODUCE
1. Switch to Wayland session
2. Visit a website with very long title (https://freeplay.codeberg.page), or
run the python code attached, which opens an empty Tkinter window with a very
long title (7000 char-ish).

OBSERVED RESULT
plasmashell will quit shortly after with only the following message:
"The Wayland connection broke. Did the Wayland compositor die?"

As long as the Window with a long title still persist, plasmashell would refuse
to start with the message above.

EXPECTED RESULT
Plasmashell should continue functioning normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I assume there is some integration between Firefox and Plasma that prevents
this from happening under Firefox.
The Window title will change to "-" on the Plasma Panel's window preview if the
title is too long on an officially branded Firefox browser, and plasmashell
would not crash.
But on any non-Firefox branded browser. (Firefox ESR, Unbranded Firefox CI
build, Librewolf etc), the panel's window preview would still display the full
title, then the entire plasmashell would quit.
(Might not be caused by the panel itself, but still should be worth noting)

Also able to reproduce this in an KDE Neon VM (Plasma 5.27.0).

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

Reply via email to