Bug 400041

Summary: [wayland] Crashes when opening font files with kfontview
Product: [Applications] kfontview Reporter: Sefa Eyeoglu <contact>
Component: generalAssignee: Andrey <butirsky>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bugseforuns, butirsky, goeran, ict, ilgaz
Priority: NOR Keywords: wayland
Version: 5.14.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=364746
https://bugs.kde.org/show_bug.cgi?id=425648
Latest Commit: Version Fixed In:
Attachments: stacktrace from gdb
New crash information added by DrKonqi

Description Sefa Eyeoglu 2018-10-19 21:11:30 UTC
Created attachment 115752 [details]
stacktrace from gdb

SUMMARY
When I open any ttf file in kfontview it crashes and does not even show up.

STEPS TO REPRODUCE
1. Open ttf file

OBSERVED RESULT
Crash

EXPECTED RESULT
Window opening up

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.1
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Stacktrace is attached
Comment 1 Christoph Feck 2018-11-08 20:57:46 UTC
See also bug 364746.
Comment 2 Christoph Feck 2020-05-18 10:34:33 UTC
*** Bug 421723 has been marked as a duplicate of this bug. ***
Comment 3 Göran Uddeborg 2020-05-18 12:21:02 UTC
FWIW, the problem is not restricted to ttf fonts.  With version 5.18.5 on Fedora 32 kfontview crashes also with otf, pcb, and pcf fonts.
Comment 4 Ilgaz Öcal 2020-09-22 16:06:27 UTC
Created attachment 131873 [details]
New crash information added by DrKonqi

kfontview (5.19.5) using Qt 5.15.1

- What I was doing when the application crashed:

Tried to view a TTF font, it immediately crashes

-- Backtrace (Reduced):
#4  0x00007f095e03bd63 in XAddExtension (dpy=dpy@entry=0x55ca20c5fa80) at InitExt.c:73
#5  0x00007f09593709ed in _XftDisplayInfoGet (dpy=0x55ca20c5fa80, createIfNecessary=<optimized out>) at xftdpy.c:91
#6  0x00007f0959374785 in _XftDisplayInfoGet (createIfNecessary=1, dpy=0x7fff81f1c9c0) at xftdpy.c:85
#7  XftFontInfoFill (dpy=dpy@entry=0x55ca20c5fa80, pattern=pattern@entry=0x55ca20d10c10, fi=fi@entry=0x7fff81f1c9c0) at xftfreetype.c:367
#8  0x00007f0959374bac in XftFontOpenPattern (dpy=0x55ca20c5fa80, pattern=0x55ca20d10c10) at xftfreetype.c:1015
Comment 5 Andrey 2020-11-19 19:01:12 UTC
I suppose it's Wayland specific?

*** This bug has been marked as a duplicate of bug 401031 ***
Comment 6 Ilgaz Öcal 2020-11-21 18:13:42 UTC
(In reply to Andrey from comment #5)
> I suppose it's Wayland specific?
> 
> *** This bug has been marked as a duplicate of bug 401031 ***

yes.