Bug 438135

Summary: Kwin crashes when title has emoji and QML Text:style = Text.Raised
Product: [Plasma] kwin Reporter: Ioannis Panagiotopoulos <yiannispana>
Component: auroraeAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 5.21.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: My modified 'aurorae.qml' that causes the issue

Description Ioannis Panagiotopoulos 2021-06-05 21:15:53 UTC
Created attachment 139027 [details]
My modified 'aurorae.qml' that causes the issue

I've been modifying the 'aurorae.qml' file to create a custom decoration. It seems that using 'Text.Raised' as text style causes instant crash when the title has an emoji.

STEPS TO REPRODUCE
1. Edit the 'aurorae.qml' file (either in '/usr/share/kwin/aurorae/' or ~/.local/kwin/aurorae)
2. Change the line 148 to 'textFormat: Text.StyledText'
3. Add this line bellow the previous line: 'style: Text.Raised'
4. Save the file
5. Restart kwin
6. Navigate with a browser to a page that has an emoji in its title (eg. https://www.youtube.com/watch?v=r8tBn3c2BK0)

OBSERVED RESULT
kwin continuously crashes/restarts until the tab is closed.

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.21 User edition (Linux: 5.6.0-1020-oem)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I've attached the modified file for convenience.
Comment 1 David Edmundson 2021-06-05 22:45:03 UTC
That's why I deliberately set it to plainText. 
Crash is upstream in Qt and reported.