Bug 405692 - Dolphin crashes when hovering a subtitle .sub file
Summary: Dolphin crashes when hovering a subtitle .sub file
Status: RESOLVED DUPLICATE of bug 404897
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-20 15:39 UTC by Méven Car
Modified: 2019-03-21 18:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Méven Car 2019-03-20 15:39:49 UTC
SUMMARY
Those subtitle files comes comes with .idx files.

Stack trace :
#6  0x00007f95004cc4d4 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#7  0x00007f95004ce1b7 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#8  0x00007f95004ce339 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#9  0x00007f95004cb763 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#10 0x00007f950ba899fe in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#11 0x00007f9505cff9c6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () at /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#12 0x00007f9505d00186 in KIO::SlaveBase::dispatchLoop() () at /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5

The KFileItem.mimetype() returns mimetype "video/mpeg" for such files.
So this could be considered a bug in the mimetype detector.

And the kio thumbnailer passes on this file to ffmpegthumbs that in turn crashes.

STEPS TO REPRODUCE
1. Open dolphin
2. Turn on preview in the information panel
3. Hover over a .sub file

OBSERVED RESULT

Krash notification
Dolphin treats the file as playable video

EXPECTED RESULT
No KCrash notification
Dolphin shows an icon for a subtitle file.


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 18.10
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.1
Kernel Version: 4.18.0-16-generic
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15,7 Gio

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2019-03-20 19:19:29 UTC
Crashes should have a backtrace attached.

Ideally please attach the sub file
Comment 2 Méven Car 2019-03-20 21:44:06 UTC
Those files are pretty heavy, usually 10Mb+, I can't upload it to Bugzilla unfortunately.

Here is the complete stack trace :

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 0x7f95065ff100 (LWP 7590))]

Thread 3 (Thread 0x7f94fbfff700 (LWP 7592)):
#0  0x00007f950acaaf64 in __GI___libc_read (fd=6, buf=0x7f94fbffebd0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007f9508ab2180 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9508a6c91f in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9508a6cdf0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9508a6cf6c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f950b04815b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f950aff516b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f950ae440b6 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f95056b0545 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f950ae4dc87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f9509cee164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#11 0x00007f950acbbdef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f9502189700 (LWP 7591)):
#0  0x00007f950acaf6d9 in __GI___poll (fds=0x7f9502188d38, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f950b8af917 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f950b8b153a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9503517159 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f950ae4dc87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9509cee164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f950acbbdef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f95065ff100 (LWP 7590)):
[KCrash Handler]
#6  0x00007f94fa3de4d4 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#7  0x00007f94fa3e01b7 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#8  0x00007f94fa3e0339 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#9  0x00007f94fa3dd763 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#10 0x00007f950ba899fe in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#11 0x00007f9505cff9c6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () at /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#12 0x00007f9505d00186 in KIO::SlaveBase::dispatchLoop() () at /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007f950ba8708d in kdemain () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#14 0x00005611e113ee1c in  ()
#15 0x00005611e113feea in  ()
#16 0x00005611e11408fb in  ()
#17 0x00005611e113b645 in  ()
#18 0x00007f950abc509b in __libc_start_main (main=0x5611e113ac70, argc=5, argv=0x7ffca3c53cb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffca3c53ca8) at ../csu/libc-start.c:308
#19 0x00005611e113c2ca in  ()
[Inferior 1 (process 7590) detached]
Comment 3 Christoph Feck 2019-03-21 01:03:47 UTC
It is probably a duplicate of bug 404897.

Please test Dolphin with ffmpegthumbs 18.12.3, or provide a link to the video file that causes the crash.
Comment 4 Méven Car 2019-03-21 08:33:52 UTC
A couple of .sub/.idx files is available at https://we.tl/t-0ov9HJtMTg

I don't think it is a duplicate of bug 404897.
The stack traces do not match.
The origin of the bug seems to me different.

I am building dolphin from sources and I have built ffmpegthumbs from sources as well but I have not succeeded at building dolphin and using the built ffmpegthumbs.
Comment 5 Christoph Feck 2019-03-21 18:33:38 UTC
The file from comment #4 is a rendered (i.e. non-text) subtitle file. It has no video or audio streams, causing ffmpegthumbs to crash.

ffmpegthumbs 18.12.3 fixed this case. I tested it, and got no crash.

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