Bug 401031 - Font files, kfontview and thumbnailer crash on Wayland
Summary: Font files, kfontview and thumbnailer crash on Wayland
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fontinst (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: VHI crash
Target Milestone: ---
Assignee: Andrey
URL:
Keywords: wayland
: 400041 403822 408218 409756 420166 422975 427505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-14 12:51 UTC by Elmas
Modified: 2020-11-20 18:01 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.20.4


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elmas 2018-11-14 12:51:58 UTC
Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f842a467640 (LWP 5409))]

Thread 2 (Thread 0x7f84264f9700 (LWP 5410)):
#0  0x00007f842e8687a4 in read () from /usr/lib/libc.so.6
#1  0x00007f842cc7b781 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f842cccba50 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x00007f842cccce86 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f842ccccfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007f842ec04fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007f842ebb08cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#7  0x00007f842e9f9eb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#8  0x00007f8429a21ba6 in ?? () from /usr/lib/libQt5DBus.so.5
#9  0x00007f842ea03f65 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007f842d8bda9d in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007f842e877b23 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f842a467640 (LWP 5409)):
[KCrash Handler]
#6  0x00007f842f477ac3 in XAddExtension () from /usr/lib/libX11.so.6
#7  0x00007f842402312f in ?? () from /usr/lib/libXft.so.2
#8  0x00007f8424027bbf in ?? () from /usr/lib/libXft.so.2
#9  0x00007f842402848d in XftFontOpenPattern () from /usr/lib/libXft.so.2
#10 0x00007f8424237cd1 in KFI::CFcEngine::getFont(int) () from /usr/lib/libkfontinstui.so.5
#11 0x00007f84242382d3 in KFI::CFcEngine::queryFont() () from /usr/lib/libkfontinstui.so.5
#12 0x00007f8424238ab9 in KFI::CFcEngine::getSizes() () from /usr/lib/libkfontinstui.so.5
#13 0x00007f842423a2bc in KFI::CFcEngine::draw(QString const&, unsigned int, int, QColor const&, QColor const&, int, int, bool, QList<KFI::CFcEngine::TRange> const&, QList<KFI::CFcEngine::TChar>*) () from /usr/lib/libkfontinstui.so.5
#14 0x00007f84252a737b in ?? () from /usr/lib/qt/plugins/fontthumbnail.so
#15 0x00007f842f6272e0 in ?? () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#16 0x00007f842f6278e9 in ?? () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#17 0x00007f842f627fee in ?? () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#18 0x00007f842f629579 in ?? () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#19 0x00007f842a07011f in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/libKF5KIOCore.so.5
#20 0x00007f842a06b23e in KIO::SlaveBase::dispatchLoop() () from /usr/lib/libKF5KIOCore.so.5
#21 0x00007f842f626493 in kdemain () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#22 0x00005621eb491458 in ?? ()
#23 0x00005621eb492552 in ?? ()
#24 0x00005621eb492efd in ?? ()
#25 0x00005621eb48db7a in ?? ()
#26 0x00007f842e7a0223 in __libc_start_main () from /usr/lib/libc.so.6
#27 0x00005621eb48e84e in _start ()
[Inferior 1 (process 5409) detached]
Comment 1 Nate Graham 2018-11-15 22:34:39 UTC
What were you doing when this happened? What crashed? Plasma, or an app? Something font-related?
Comment 2 Christoph Feck 2018-11-16 16:34:10 UTC
It's the font thumbnailer crashing, because it only works on X11. Should get disabled or ported to Wayland.
Comment 3 mappu04 2018-12-07 07:11:36 UTC
Happens to me too (Debian / Wayland).

I can trigger it reliably by just opening a new Dolphin window or tab into ~, or when pressing F5 in this directory. Other directories don't seem to do it. It definitely does seem to coincide with thumbnail previews appearing.

I do not have the "Font Files" previewer enabled in Dolphin settings (if that helps).

Stack trace is always the same:

Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe27e76c780 (LWP 15215))]

Thread 2 (Thread 0x7fe27920c700 (LWP 15216)):
#0  0x00007fe282566739 in __GI___poll (fds=0x7fe274003ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fe280a3ee46 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe280a3ef6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe2828f2d2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fe28289fd0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe2826ef0c6 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fe27de76545 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fe2826f8c97 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fe2815cdf2a in start_thread (arg=0x7fe27920c700) at pthread_create.c:463
#9  0x00007fe282570edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fe27e76c780 (LWP 15215)):
[KCrash Handler]
#6  0x00007fe283160a53 in XAddExtension () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007fe271fd685b in ?? () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#8  0x00007fe271fdb34e in ?? () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#9  0x00007fe271fdbc0b in XftFontOpenPattern () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#10 0x00007fe2731a952d in KFI::CFcEngine::getFont(int) () from /usr/lib/x86_64-linux-gnu/libkfontinstui.so.5
#11 0x00007fe2731a9b22 in KFI::CFcEngine::queryFont() () from /usr/lib/x86_64-linux-gnu/libkfontinstui.so.5
#12 0x00007fe2731aa2d8 in KFI::CFcEngine::getSizes() () from /usr/lib/x86_64-linux-gnu/libkfontinstui.so.5
#13 0x00007fe2731aba69 in KFI::CFcEngine::draw(QString const&, unsigned int, int, QColor const&, QColor const&, int, int, bool, QList<KFI::CFcEngine::TRange> const&, QList<KFI::CFcEngine::TChar>*) () from /usr/lib/x86_64-linux-gnu/libkfontinstui.so.5
#14 0x00007fe2731b46df in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/fontthumbnail.so
#15 0x00007fe28330de80 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#16 0x00007fe28330e458 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#17 0x00007fe28330eb30 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#18 0x00007fe283310041 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#19 0x00007fe27e4c4df6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#20 0x00007fe27e4c0196 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#21 0x00007fe28330d08d in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#22 0x000056252b7cee1c in ?? ()
#23 0x000056252b7cfeea in ?? ()
#24 0x000056252b7d08fb in ?? ()
#25 0x000056252b7cb645 in ?? ()
#26 0x00007fe28249bb17 in __libc_start_main (main=0x56252b7cac70, argc=5, argv=0x7fffee5c2c18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffee5c2c08) at ../csu/libc-start.c:310
#27 0x000056252b7cc2ca in _start ()
[Inferior 1 (process 15215) detached]
Comment 4 Björn Sonnenschein 2018-12-17 08:55:57 UTC
Hmm, is there any way to disable the font thumbnailer? The bug renders Dolphin and Krusader unusable
Comment 5 Christoph Feck 2018-12-17 10:55:52 UTC
Configure Dolphin > General > Previews tab
Comment 6 Matěj Laitl 2019-01-21 16:04:54 UTC
Happens to me, too, I'm attaching slightly more detailed backtrace, for the reference:

Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f69d6626880 (LWP 5248))]

Thread 2 (Thread 0x7f69bee8d700 (LWP 5249)):
#0  0x00007f69d47565f3 in __GI___poll (fds=0x7f69b8003ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f69d0bcf029 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f69b8003ce0, timeout=<optimized out>, context=0x7f69b8000bf0) at /var/tmp/portage/dev-libs/glib-2.56.2/work/glib-2.56.2/glib/gmain.c:4203
#2  g_main_context_iterate (context=context@entry=0x7f69b8000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.56.2/work/glib-2.56.2/glib/gmain.c:3897
#3  0x00007f69d0bcf13c in g_main_context_iteration (context=0x7f69b8000bf0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.56.2/work/glib-2.56.2/glib/gmain.c:3963
#4  0x00007f69d4cddbab in QEventDispatcherGlib::processEvents (this=0x7f69b8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f69d4c806eb in QEventLoop::exec (this=this@entry=0x7f69bee8ccf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f69d4ac73ea in QThread::exec (this=this@entry=0x7f69c99e5da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007f69c975d055 in QDBusConnectionManager::run (this=0x7f69c99e5da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f69d4ad2bc6 in QThreadPrivate::start (arg=0x7f69c99e5da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f69d2b4096a in start_thread (arg=0x7f69bee8d700) at pthread_create.c:463
#10 0x00007f69d47621bf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f69d6626880 (LWP 5248)):
[KCrash Handler]
#6  0x00007f69d5d02373 in XAddExtension (dpy=dpy@entry=0x55c41b3fd610) at /var/tmp/portage/x11-libs/libX11-1.6.7/work/libX11-1.6.7/src/InitExt.c:73
#7  0x00007f69b5e67a5d in _XftDisplayInfoGet (dpy=dpy@entry=0x55c41b3fd610, createIfNecessary=createIfNecessary@entry=1) at /var/tmp/portage/x11-libs/libXft-2.3.2-r1/work/libXft-2.3.2/src/xftdpy.c:91
#8  0x00007f69b5e6c46e in XftFontInfoFill (dpy=dpy@entry=0x55c41b3fd610, pattern=pattern@entry=0x55c41b576b10, fi=fi@entry=0x7ffd5faa8c40) at /var/tmp/portage/x11-libs/libXft-2.3.2-r1/work/libXft-2.3.2/src/xftfreetype.c:367
#9  0x00007f69b5e6cd2a in XftFontOpenPattern (dpy=0x55c41b3fd610, pattern=pattern@entry=0x55c41b576b10) at /var/tmp/portage/x11-libs/libXft-2.3.2-r1/work/libXft-2.3.2/src/xftfreetype.c:1015
#10 0x00007f69b607c02f in KFI::CFcEngine::getFont (this=this@entry=0x55c41b57aec8, size=size@entry=8) at /var/tmp/portage/kde-plasma/plasma-desktop-5.14.3/work/plasma-desktop-5.14.3/kcms/kfontinst/lib/FcEngine.cpp:1299
#11 0x00007f69b607c602 in KFI::CFcEngine::queryFont (this=this@entry=0x55c41b57aec8) at /var/tmp/portage/kde-plasma/plasma-desktop-5.14.3/work/plasma-desktop-5.14.3/kcms/kfontinst/lib/FcEngine.cpp:1233
#12 0x00007f69b607cd98 in KFI::CFcEngine::getSizes (this=0x55c41b57aec8) at /var/tmp/portage/kde-plasma/plasma-desktop-5.14.3/work/plasma-desktop-5.14.3/kcms/kfontinst/lib/FcEngine.cpp:1391
#13 0x00007f69b607e7a8 in KFI::CFcEngine::draw (this=this@entry=0x55c41b57aec8, name=..., style=style@entry=4294967295, faceNo=faceNo@entry=0, txt=..., bgnd=..., w=128, h=128, thumb=true, range=..., chars=0x0) at /var/tmp/portage/kde-plasma/plasma-desktop-5.14.3/work/plasma-desktop-5.14.3/kcms/kfontinst/lib/FcEngine.cpp:876
#14 0x00007f69b62850ef in KFI::CFontThumbnail::create (this=0x55c41b57aec0, path=..., width=128, height=128, img=...) at /var/tmp/portage/kde-plasma/plasma-desktop-5.14.3/work/plasma-desktop-5.14.3/kcms/kfontinst/thumbnail/FontThumbnail.cpp:114
#15 0x00007f69c2fc5170 in ThumbnailProtocol::createSubThumbnail (this=this@entry=0x7ffd5faa9640, thumbnail=..., filePath=..., segmentWidth=segmentWidth@entry=54, segmentHeight=segmentHeight@entry=34) at /var/tmp/portage/kde-apps/kio-extras-18.08.3-r1/work/kio-extras-18.08.3/thumbnail/thumbnail.cpp:719
#16 0x00007f69c2fc5788 in ThumbnailProtocol::drawSubThumbnail (this=this@entry=0x7ffd5faa9640, p=..., filePath=..., width=width@entry=54, height=height@entry=34, xPos=xPos@entry=64, yPos=38, frameWidth=2) at /var/tmp/portage/kde-apps/kio-extras-18.08.3-r1/work/kio-extras-18.08.3/thumbnail/thumbnail.cpp:751
#17 0x00007f69c2fc5e50 in ThumbnailProtocol::thumbForDirectory (this=this@entry=0x7ffd5faa9640, directory=...) at /var/tmp/portage/kde-apps/kio-extras-18.08.3-r1/work/kio-extras-18.08.3/thumbnail/thumbnail.cpp:557
#18 0x00007f69c2fc70ab in ThumbnailProtocol::get (this=0x7ffd5faa9640, url=...) at /var/tmp/portage/kde-apps/kio-extras-18.08.3-r1/work/kio-extras-18.08.3/thumbnail/thumbnail.cpp:225
#19 0x00007f69cab7ecf6 in KIO::SlaveBase::dispatch (this=0x7ffd5faa9640, command=67, data=...) at /var/tmp/portage/kde-frameworks/kio-5.52.0-r1/work/kio-5.52.0/src/core/slavebase.cpp:1119
#20 0x00007f69cab80046 in KIO::SlaveBase::dispatchLoop (this=this@entry=0x7ffd5faa9640) at /var/tmp/portage/kde-frameworks/kio-5.52.0-r1/work/kio-5.52.0/src/core/slavebase.cpp:318
#21 0x00007f69c2fc4371 in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/kio-extras-18.08.3-r1/work/kio-extras-18.08.3/thumbnail/thumbnail.cpp:130
#22 0x000055c41ad7846f in launch (argc=4, _name=0x55c41b41b058 "/usr/lib64/qt5/plugins/kf5/kio/thumbnail.so", args=<optimized out>, cwd=<optimized out>, envc=0, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x55c41ad7b033 "0") at /var/tmp/portage/kde-frameworks/kinit-5.52.0/work/kinit-5.52.0/src/kdeinit/kinit.cpp:706
#23 0x000055c41ad7975c in handle_launcher_request (sock=8, who=<optimized out>) at /var/tmp/portage/kde-frameworks/kinit-5.52.0/work/kinit-5.52.0/src/kdeinit/kinit.cpp:1146
#24 0x000055c41ad7a0cf in handle_requests (waitForPid=0) at /var/tmp/portage/kde-frameworks/kinit-5.52.0/work/kinit-5.52.0/src/kdeinit/kinit.cpp:1339
#25 0x000055c41ad74ffc in main (argc=5, argv=<optimized out>) at /var/tmp/portage/kde-frameworks/kinit-5.52.0/work/kinit-5.52.0/src/kdeinit/kinit.cpp:1785
Comment 7 Christoph Feck 2019-02-22 14:35:55 UTC
*** Bug 403822 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Silva 2019-03-09 18:28:21 UTC
related: kdeint5 crashes on Wayland even if font thumbnailer is disabled when I hover over a font file (.ttf) while the info panel (F11) of Dolphin is enabled.

Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.0
Comment 9 Christoph Feck 2019-06-03 20:48:12 UTC
*** Bug 408218 has been marked as a duplicate of this bug. ***
Comment 10 David Gow 2020-02-22 23:49:00 UTC
For what it's worth, this is still happening with Plasma 5.18 (on OpenSUSE Tumbleweed)

Stacktrace is basically the same (I've only included the relevant thread here:)
Thread 1 (Thread 0x7fda93445580 (LWP 18086)):
[KCrash Handler]
#6  0x00007fda95a5b313 in XAddExtension (dpy=dpy@entry=0x55ada1f26e60) at InitExt.c:73
#7  0x00007fda7c0422dd in _XftDisplayInfoGet (createIfNecessary=<optimized out>, dpy=0x55ada1f26e60) at xftdpy.c:91
#8  _XftDisplayInfoGet (dpy=dpy@entry=0x55ada1f26e60, createIfNecessary=createIfNecessary@entry=1) at xftdpy.c:62
#9  0x00007fda7c04423e in XftFontInfoFill (dpy=dpy@entry=0x55ada1f26e60, pattern=pattern@entry=0x55ada25dc6a0, fi=fi@entry=0x7ffd37fa90f0) at xftfreetype.c:367
#10 0x00007fda7c04521f in XftFontOpenPattern (dpy=0x55ada1f26e60, pattern=pattern@entry=0x55ada25dc6a0) at xftfreetype.c:1015
#11 0x00007fda8c00837d in KFI::CFcEngine::getFont (this=this@entry=0x55ada252fdd8, size=size@entry=8) at /usr/src/debug/plasma5-desktop-5.18.0-3.1.x86_64/kcms/kfontinst/lib/FcEngine.cpp:1299
#12 0x00007fda8c008602 in KFI::CFcEngine::queryFont (this=this@entry=0x55ada252fdd8) at /usr/src/debug/plasma5-desktop-5.18.0-3.1.x86_64/kcms/kfontinst/lib/FcEngine.cpp:1233
#13 0x00007fda8c008718 in KFI::CFcEngine::getSizes (this=0x55ada252fdd8) at /usr/src/debug/plasma5-desktop-5.18.0-3.1.x86_64/kcms/kfontinst/lib/FcEngine.cpp:1391
#14 KFI::CFcEngine::getSizes (this=this@entry=0x55ada252fdd8) at /usr/src/debug/plasma5-desktop-5.18.0-3.1.x86_64/kcms/kfontinst/lib/FcEngine.cpp:1383
#15 0x00007fda8c00ad71 in KFI::CFcEngine::draw (this=this@entry=0x55ada252fdd8, name=..., style=style@entry=4294967295, faceNo=faceNo@entry=0, txt=..., bgnd=..., w=256, h=256, thumb=true, range=..., chars=0x0) at /usr/src/debug/plasma5-desktop-5.18.0-3.1.x86_64/kcms/kfontinst/lib/FcEngine.cpp:876
#16 0x00007fda8c01476f in KFI::CFontThumbnail::create (this=0x55ada252fdd0, path=..., width=128, height=128, img=...) at /usr/include/qt5/QtGui/qbrush.h:159
#17 0x00007fda9156f06c in ThumbnailProtocol::createSubThumbnail (segmentHeight=34, segmentWidth=54, filePath=..., thumbnail=..., this=0x7ffd37fa96e0) at /usr/src/debug/kio-extras5-19.12.2-2.1.x86_64/thumbnail/thumbnail.cpp:727
#18 ThumbnailProtocol::drawSubThumbnail (this=this@entry=0x7ffd37fa9c20, p=..., filePath=..., width=width@entry=54, height=height@entry=34, xPos=xPos@entry=9, yPos=38, frameWidth=2) at /usr/src/debug/kio-extras5-19.12.2-2.1.x86_64/thumbnail/thumbnail.cpp:759
#19 0x00007fda9156fb57 in ThumbnailProtocol::thumbForDirectory (this=this@entry=0x7ffd37fa9c20, directory=...) at /usr/src/debug/kio-extras5-19.12.2-2.1.x86_64/thumbnail/thumbnail.cpp:562
#20 0x00007fda9157152e in ThumbnailProtocol::get (this=0x7ffd37fa9c20, url=...) at /usr/src/debug/kio-extras5-19.12.2-2.1.x86_64/thumbnail/thumbnail.cpp:238
#21 0x00007fda9164278e in KIO::SlaveBase::dispatch (this=0x7ffd37fa9c20, command=67, data=...) at /usr/src/debug/kio-5.67.0-1.1.x86_64/src/core/slavebase.cpp:1197
#22 0x00007fda91649a56 in KIO::SlaveBase::dispatchLoop (this=this@entry=0x7ffd37fa9c20) at /usr/src/debug/kio-5.67.0-1.1.x86_64/src/core/slavebase.cpp:338
#23 0x00007fda91572629 in kdemain (argc=<optimized out>, argv=0x55ada1f105b0) at /usr/src/debug/kio-extras5-19.12.2-2.1.x86_64/thumbnail/thumbnail.cpp:138
#24 0x000055ada0ef4bcb in launch (argc=4, _name=0x55ada1f10c98 "/usr/lib64/qt5/plugins/kf5/kio/thumbnail.so", args=<optimized out>, cwd=<optimized out>, envc=0, envs=0x55ada1f10d3e "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x55ada0ef7175 "0") at /usr/src/debug/kinit-5.67.0-1.2.x86_64/src/kdeinit/kinit.cpp:704
#25 0x000055ada0ef5df8 in handle_launcher_request (sock=<optimized out>, who=<optimized out>) at /usr/src/debug/kinit-5.67.0-1.2.x86_64/src/kdeinit/kinit.cpp:1142
#26 0x000055ada0ef67d4 in handle_requests (waitForPid=0) at /usr/src/debug/kinit-5.67.0-1.2.x86_64/src/kdeinit/kinit.cpp:1335
#27 0x000055ada0ef164d in main (argc=5, argv=<optimized out>) at /usr/src/debug/kinit-5.67.0-1.2.x86_64/src/kdeinit/kinit.cpp:1773
[Inferior 1 (process 18086) detached]
Comment 11 Guilherme Almeida 2020-03-09 17:34:12 UTC
This is happening on Xorg too. I'm using Arch Linux. It basically happen when I scroll over files on Dolphin, doesn't happen when scrolling over folders.


Operating System: Arch Linux 
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.8-arch1-1
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,7 GiB of RAM

Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#6  0x00007fecf7adb862 in __pthread_clockjoin_ex () from /usr/lib/libpthread.so.0
#7  0x00007fecf0506b18 in ?? () from /usr/lib/dri/i965_dri.so
#8  0x00007fecf0506bac in ?? () from /usr/lib/dri/i965_dri.so
#9  0x00007fecf8682537 in __run_exit_handlers () from /usr/lib/libc.so.6
#10 0x00007fecf86826ee in exit () from /usr/lib/libc.so.6
#11 0x00007fece91ae87f in ?? () from /usr/lib/qt/plugins/djvuthumbnail.so
#12 0x00007fecf963fc9a in ?? () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#13 0x00007fecf4c8255f in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/libKF5KIOCore.so.5
#14 0x00007fecf4c82c26 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/libKF5KIOCore.so.5
#15 0x00007fecf963d2a5 in kdemain () from /usr/lib/qt/plugins/kf5/kio/thumbnail.so
#16 0x0000563764947b9c in ?? ()
#17 0x000056376494905a in ?? ()
#18 0x00005637649499ce in ?? ()
#19 0x0000563764944b54 in ?? ()
#20 0x00007fecf866b023 in __libc_start_main () from /usr/lib/libc.so.6
#21 0x000056376494576e in ?? ()
[Inferior 1 (process 7058) detached]
Comment 12 Christoph Feck 2020-03-10 10:56:25 UTC
Backtrace from comment 11 is unrelated. It is a crash in the DjVu thumbnailer. If you can share the DjVu file, please file a new bug report and add the file there.
Comment 13 Christoph Feck 2020-04-19 08:02:10 UTC
*** Bug 420166 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2020-11-01 12:10:24 UTC
*** Bug 427505 has been marked as a duplicate of this bug. ***
Comment 15 Christoph Feck 2020-11-01 12:10:47 UTC
*** Bug 409756 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Feck 2020-11-01 12:11:20 UTC
*** Bug 422975 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2020-11-01 12:14:18 UTC
Raising priority now that Wayland support is supposed to work and was selected as a goal.
Comment 18 Andrey 2020-11-19 12:50:34 UTC
Can't reproduce the bug - I have only Places, Folders and Terminal panels available in Dolphin 20.07.70 and no Information panel.
Was it unsatisfied dependency in my build, or it's just gone in new Dolphin versions?
Comment 19 Andrey 2020-11-19 13:26:32 UTC
Found the reason:

CMake Warning at CMakeLists.txt:108 (message):
  Baloo packages not found.  They are needed for the metadata features of
  Dolphin (including the information panel).
Comment 20 David Gow 2020-11-19 13:45:10 UTC
For what it's worth, I'm still able to reproduce this bug on Dolphin 20.08.3 / Plasma 5.20.3 as packaged by openSUSE Tumbleweed.

Stacktrace is still the same — it definitely seems to just still be calling Xft functions even when not running under X11:
Thread 1 (Thread 0x7fea401ec840 (LWP 17934)):
[KCrash Handler]
#4  0x00007fea42a96d63 in XAddExtension (dpy=dpy@entry=0x559ab935a140) at InitExt.c:73
#5  0x00007fea1a62f9ed in _XftDisplayInfoGet (dpy=0x559ab935a140, createIfNecessary=<optimized out>) at xftdpy.c:91
#6  0x00007fea1a633785 in _XftDisplayInfoGet (createIfNecessary=1, dpy=0x7ffdd2157620) at xftdpy.c:85
#7  XftFontInfoFill (dpy=dpy@entry=0x559ab935a140, pattern=pattern@entry=0x559ab9a74290, fi=fi@entry=0x7ffdd2157620) at xftfreetype.c:367
#8  0x00007fea1a633bac in XftFontOpenPattern (dpy=0x559ab935a140, pattern=0x559ab9a74290) at xftfreetype.c:1015
#9  0x00007fea208da144 in KFI::CFcEngine::queryFont() () from /usr/lib64/libkfontinstui.so.5
[... truncated ...]
Comment 21 Andrey 2020-11-19 16:10:41 UTC
When I try to open .ttf font, it opens in a separate app named something like Font View which instantly closes, probably because of the same crash.

Could someone confirm and point me if that has already been also reported?
Comment 22 Patrick Silva 2020-11-19 16:21:41 UTC
kfontview crash was already reported, see bug 400041
Comment 23 Andrey 2020-11-19 19:01:12 UTC
*** Bug 400041 has been marked as a duplicate of this bug. ***
Comment 24 Bug Janitor Service 2020-11-19 23:10:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/473
Comment 25 Andrey 2020-11-19 23:23:49 UTC
About missing functionality due absence of Xft on Wayland, please open another bugs, and let me know :)

Enjoy!
Comment 26 Andrey 2020-11-20 15:07:17 UTC
Git commit c305dcd85dc718a9c5f832fa8e56ca291f8044be by Andrey Butirsky.
Committed on 20/11/2020 at 15:06.
Pushed by butirsky into branch 'master'.

fix: Font files, kfontview and thumbnailer crash on Wayland

Workaround: don't call Xft on Wayland

M  +13   -2    kcms/kfontinst/lib/FcEngine.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/c305dcd85dc718a9c5f832fa8e56ca291f8044be
Comment 27 Nate Graham 2020-11-20 18:00:32 UTC
Git commit 7c994031f3bd755def1474bcd66636a52b8d5d25 by Nate Graham, on behalf of Andrey Butirsky.
Committed on 20/11/2020 at 18:00.
Pushed by ngraham into branch 'Plasma/5.20'.

fix: Font files, kfontview and thumbnailer crash on Wayland

Workaround: don't call Xft on Wayland
(cherry picked from commit c305dcd85dc718a9c5f832fa8e56ca291f8044be)

M  +13   -2    kcms/kfontinst/lib/FcEngine.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/7c994031f3bd755def1474bcd66636a52b8d5d25