Bug 422975

Summary: If Information Panel of Dolphin is enabled, kdeinit crashes on Wayland when I select or hover over a folder containing font files even if font preview is disabled in Dolphin settings
Product: [Frameworks and Libraries] frameworks-kinit Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdelibs-bugs
Priority: NOR    
Version: 5.74.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2020-06-14 15:18:28 UTC
This crash doesn't occur if Information Panel is disabled.

STEPS TO REPRODUCE
1. start Wayland session
2. open Dolphin and press F11 to enable its Information Panel
3. select or hover over a folder containing font file(s)

OBSERVED RESULT
Plasma notifies kdeinit crash

EXPECTED RESULT
no crash

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0


Application: kdeinit5 (kdeinit5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fd44e6a12d1 in XRenderFindDisplay () from /usr/lib/libXrender.so.1
#5  0x00007fd44e6a1682 in XRenderQueryExtension () from /usr/lib/libXrender.so.1
#6  0x00007fd4368e1c79 in _XftDisplayInfoGet (dpy=0x560209165d10, createIfNecessary=1) at xftdpy.c:99
#7  0x00007fd4368e2079 in _XftDisplayInfoGet (dpy=dpy@entry=0x560209165d10, createIfNecessary=createIfNecessary@entry=1) at xftdpy.c:85
#8  0x00007fd4368e68df in XftFontInfoFill (dpy=dpy@entry=0x560209165d10, pattern=pattern@entry=0x5602097db170, fi=fi@entry=0x7ffe5cde66b0) at xftfreetype.c:367
#9  0x00007fd4368e71bc in XftFontOpenPattern (dpy=0x560209165d10, pattern=0x5602097db170) at xftfreetype.c:1015
#10 0x00007fd43715b39d in KFI::CFcEngine::getFont (this=0x5602097c6998, size=8) at /home/stalker/plasma-desktop/kcms/kfontinst/lib/FcEngine.cpp:1299
#11 0x00007fd43715b048 in KFI::CFcEngine::queryFont (this=0x5602097c6998) at /home/stalker/plasma-desktop/kcms/kfontinst/lib/FcEngine.cpp:1233
#12 0x00007fd43715b6f1 in KFI::CFcEngine::getSizes (this=0x5602097c6998) at /home/stalker/plasma-desktop/kcms/kfontinst/lib/FcEngine.cpp:1391
#13 0x00007fd437159854 in KFI::CFcEngine::draw (this=0x5602097c6998, name=..., style=4294967295, faceNo=0, txt=..., bgnd=..., w=128, h=128, thumb=true, range=..., chars=0x0) at /home/stalker/plasma-desktop/kcms/kfontinst/lib/FcEngine.cpp:876
#14 0x00007fd437168c3b in KFI::CFontThumbnail::create (this=0x5602097c6990, path=..., width=128, height=128, img=...) at /home/stalker/plasma-desktop/kcms/kfontinst/thumbnail/FontThumbnail.cpp:114
#15 0x00007fd454f469bf in ThumbnailProtocol::createSubThumbnail (this=this@entry=0x7ffe5cde7140, thumbnail=..., filePath=..., segmentWidth=1558080400, segmentWidth@entry=67, segmentHeight=segmentHeight@entry=42) at /usr/src/debug/kio-extras-20.04.2/thumbnail/thumbnail.cpp:727
#16 0x00007fd454f46cf7 in ThumbnailProtocol::drawSubThumbnail (this=this@entry=0x7ffe5cde7140, p=..., filePath=..., width=width@entry=67, height=height@entry=42, xPos=xPos@entry=12, yPos=48, frameWidth=2) at /usr/src/debug/kio-extras-20.04.2/thumbnail/thumbnail.cpp:759
#17 0x00007fd454f47310 in ThumbnailProtocol::thumbForDirectory (this=this@entry=0x7ffe5cde7140, directory=...) at /usr/src/debug/kio-extras-20.04.2/thumbnail/thumbnail.cpp:562
#18 0x00007fd454f48520 in ThumbnailProtocol::get (this=0x7ffe5cde7140, url=...) at /usr/src/debug/kio-extras-20.04.2/thumbnail/thumbnail.cpp:238
#19 0x00007fd450529aaf in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/libKF5KIOCore.so.5
#20 0x00007fd45052a3d6 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/libKF5KIOCore.so.5
#21 0x00007fd454f45ea9 in kdemain (argc=<optimized out>, argv=0x560209139140) at /usr/src/debug/kio-extras-20.04.2/thumbnail/thumbnail.cpp:138
#22 0x00005602078645bd in launch (argc=4, _name=0x560209138c68 "/usr/lib/qt/plugins/kf5/kio/thumbnail.so", args=0x560209138d02 "", cwd=<optimized out>, envc=0, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x56020786719e "0") at /usr/src/debug/kinit-5.71.0/src/kdeinit/kinit.cpp:708
#23 0x0000560207865a59 in handle_launcher_request (sock=7, who=<optimized out>) at /usr/src/debug/kinit-5.71.0/src/kdeinit/kinit.cpp:1146
#24 0x000056020786621d in handle_requests (waitForPid=0) at /usr/src/debug/kinit-5.71.0/src/kdeinit/kinit.cpp:1339
#25 0x0000560207861b54 in main (argc=2, argv=0x7ffe5cde7750) at /usr/src/debug/kinit-5.71.0/src/kdeinit/kinit.cpp:1777
[Inferior 1 (process 74950) detached]
Comment 1 Christoph Feck 2020-11-01 12:11:20 UTC

*** This bug has been marked as a duplicate of bug 401031 ***