Bug 438135 - Kwin crashes when title has emoji and QML Text:style = Text.Raised
Summary: Kwin crashes when title has emoji and QML Text:style = Text.Raised
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: aurorae (other bugs)
Version First Reported In: 5.21.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-05 21:15 UTC by Ioannis Panagiotopoulos
Modified: 2021-06-05 22:45 UTC (History)
1 user (show)

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


Attachments
My modified 'aurorae.qml' that causes the issue (9.21 KB, text/x-qml)
2021-06-05 21:15 UTC, Ioannis Panagiotopoulos
Details

Note You need to log in before you can comment on or make changes to this bug.
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.