Bug 400651 - "kdeinit5 closed unexpectedly" during thumbnail generation for video files
Summary: "kdeinit5 closed unexpectedly" during thumbnail generation for video files
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-04 10:00 UTC by Claudio
Modified: 2019-05-11 12:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 18.08.2


Attachments
webm-backtrace1 (3.81 KB, text/plain)
2018-11-04 10:00 UTC, Claudio
Details
webm-backtrace2 (3.79 KB, text/plain)
2018-11-04 10:01 UTC, Claudio
Details
webm-backtrace3 (4.37 KB, text/plain)
2018-11-04 10:01 UTC, Claudio
Details
Test .webm file (333.36 KB, video/webm)
2018-11-04 10:02 UTC, Claudio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio 2018-11-04 10:00:42 UTC
Created attachment 116075 [details]
webm-backtrace1

SUMMARY
After upgrading Kubuntu 18.10 to Plasma 5.14.2 / Frameworks 51.0 (Backports PPA) the attached crash occurs for .webm files containig audio but no video, or .wma files (which should anyway only contain audio)

STEPS TO REPRODUCE
1. Open a folder with Dolphin, containig a problematic media file (I'll attach one) with thumbnail preview enabled or hover the mosue over the file with "Show tooltips" enabled.
2. 
3. 

OBSERVED RESULT
Crash occurs

EXPECTED RESULT
No crash

SOFTWARE VERSIONS
Betriebssystem: Kubuntu 18.10
KDE-Plasma-Version: 5.14.2
Qt-Version: 5.11.1
KDE-Frameworks-Version: 5.51.0
Kernel-Version: 4.18.0-10-generic
Art des Betriebssystems: 64-bit
Prozessoren: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Speicher: 31,3 GiB Arbeitsspeicher


ADDITIONAL INFORMATION
When I downgrade libkf5kiocore to version 5.50 the crahes do not occur (or mybe are supressed before this change in 5.51?: "KIO slave crashes are now handled by KCrash instead of subpar custom code")
Comment 1 Claudio 2018-11-04 10:01:05 UTC
Created attachment 116076 [details]
webm-backtrace2
Comment 2 Claudio 2018-11-04 10:01:19 UTC
Created attachment 116077 [details]
webm-backtrace3
Comment 3 Claudio 2018-11-04 10:02:41 UTC
Created attachment 116078 [details]
Test .webm file

It's 30 seconds white noise created with audacity, saved as .ogg and then converted to .webm with ffmpeg
Comment 4 Claudio 2018-11-04 10:16:52 UTC
Hm - after browsing through the lattest git commits for ffmpegthumbs I found an entry which maybe fixed this already in 18.08.2?:
https://phabricator.kde.org/D15752
Sadly I can't test it, as Kubuntu always lags a full KDE Applications release cycle behind.
Comment 5 Kai Uwe Broulik 2018-11-12 16:22:08 UTC
Yes, this should be fixed by the commit you found, in Applications 18.02, I cannot reproduce your crash with the test file you provided, thanks for that.
Comment 6 JORGETECH 2019-04-12 16:46:51 UTC
I can still reproduce this issue with video thumbnails enabled on Kubuntu 18.10 (with Backports PPA) on Plasma 5.15.3

Here is the backtrace if it helps:

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 0x7f3336f5e100 (LWP 13830))]

Thread 3 (Thread 0x7f3330d6d700 (LWP 13833)):
#0  0x00007f333b609f64 in __GI___libc_read (fd=6, buf=0x7f3330d6cbd0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007f3339411180 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f33393cb91f in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f33393cbdf0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f33393cbf6c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f333b9a715b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f333b95416b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f333b7a30b6 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f3335ffe545 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f333b7acc87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f333a64d164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#11 0x00007f333b61adef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f3332ad5700 (LWP 13831)):
#0  0x00007f333b60e6d9 in __GI___poll (fds=0x7f3332ad4d38, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f333c20e917 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f333c21053a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f3333e72159 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f333b7acc87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f333a64d164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f333b61adef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f3336f5e100 (LWP 13830)):
[KCrash Handler]
#6  0x00007f3330de14d4 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#7  0x00007f3330de31b7 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#8  0x00007f3330de3339 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#9  0x00007f3330de0763 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#10 0x00007f333c40e9fe in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#11 0x00007f333664d9c6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () at /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#12 0x00007f333664e186 in KIO::SlaveBase::dispatchLoop() () at /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007f333c40c08d in kdemain () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#14 0x00005624bd5c9e1c in  ()
#15 0x00005624bd5caeea in  ()
#16 0x00005624bd5cb8fb in  ()
#17 0x00005624bd5c6645 in  ()
#18 0x00007f333b52409b in __libc_start_main (main=0x5624bd5c5c70, argc=5, argv=0x7ffd7b33e568, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd7b33e558) at ../csu/libc-start.c:308
#19 0x00005624bd5c72ca in  ()
[Inferior 1 (process 13830) detached]
Comment 7 Christoph Feck 2019-04-12 17:49:33 UTC
There were further fixes in ffmpegthumbs 18.12.3. Please test this version.
Comment 8 JORGETECH 2019-04-13 09:06:37 UTC
Will test when Kubuntu Backports maintainers update that package
Comment 9 Christoph Feck 2019-05-11 10:08:25 UTC
Any update? We also released versions 19.04.0 and 19.04.1 in the meantime.
Comment 10 JORGETECH 2019-05-11 11:33:22 UTC
I can confirm the issue has been solved with the latest updates.
Comment 11 Claudio 2019-05-11 12:13:55 UTC
Hi

For me the bug was fixed in Kubuntu 19.04 which comes with Applications 18.12.3.