Bug 414106 - kdeinit5 crashes in thumbnailing
Summary: kdeinit5 crashes in thumbnailing
Status: RESOLVED DUPLICATE of bug 430862
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-13 20:10 UTC by Avamander
Modified: 2021-05-08 18:49 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crash log (26.55 KB, text/plain)
2019-11-13 20:10 UTC, Avamander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Avamander 2019-11-13 20:10:39 UTC
Created attachment 123905 [details]
Crash log

SUMMARY
KDE crash reporter said that this crash report information is useful so I'm reporting it. I didn't specifically notice where exactly the crash occured - probably somewhere in background but I do have to mention that `vlc` doesn't want to start on double clicking media and lacks thumbnails in status bar media control widget - could be related.

STEPS TO REPRODUCE
1. Unknown - background crash


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.10
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4
Comment 1 vindicator 2019-11-26 03:03:58 UTC
I'm encountering this issue as well it would seem.

It seems to occur when using Dolphin and viewing a folder that contains images.
The cached thumbnails continue to be shown, but new image files do not have their thumbnails generated (thus the crash I would presume).
*****
Process 2711078 (thumbnail.so) of user 1000 dumped core.
                
                Stack trace of thread 2711078:
                #0  0x00007ff4cadcef25 raise (libc.so.6)
                #1  0x00007ff4cadb8897 abort (libc.so.6)
                #2  0x00007ff4cafe18f4 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5)
                #3  0x00007ff4cb5814e5 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5)
                #4  0x00007ff4cb581d81 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5)
                #5  0x00007ff4cb1f14e5 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5)
                #6  0x00007ff4cb583b30 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5)
                #7  0x00007ff4ca3ac03a _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5)
                #8  0x00007ff4cbc9e21a kdemain (thumbnail.so)
                #9  0x000060af7dbb1293 n/a (kdeinit5)
                #10 0x000060af7dbb23ba n/a (kdeinit5)
                #11 0x000060af7dbb2d2e n/a (kdeinit5)
                #12 0x000060af7dbadb5c n/a (kdeinit5)
                #13 0x00007ff4cadba153 __libc_start_main (libc.so.6)
                #14 0x000060af7dbae81e n/a (kdeinit5)
*****

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2

I've actually had this happen over the past few months I'd guess (looking at coredumpctl).

I'm not sure whether this issue should be brought up in "frameworks-kinit" (yes, the dump says "kinit5") or "frameworks-kio" since "/usr/lib/qt/plugins/kf5/kio/thumbnail.so" belongs to the package "kio-extras".

If this bug is different, do let me know and I'll create a new report.
Comment 2 Avamander 2019-11-26 04:36:20 UTC
@naroyce

I think my crash is related to some other component than your crash if you look at the attacked log file (thumbnail.so vs. libtag.so/audiothumbnail.so).

```
Thread 1 (Thread 0x7f51ea2c6500 (LWP 7188)):
[KCrash Handler]
#6  0x00007f514aa96dc0 in TagLib::MP4::Tag::itemMap() const () at /usr/lib/x86_64-linux-gnu/libtag.so.1
#7  0x00007f51b82ee70d in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/audiothumbnail.so
#8  0x00007f51ee1be84d in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#9  0x00007f51ee1bee6a in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#10 0x00007f51ee1bf4cf in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#11 0x00007f51ee1c0bc2 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#12 0x00007f51e99b8f9e in KIO::SlaveBase::dispatch(int, QByteArray const&) (this=0x7ffdc4f43730, command=67, data=...) at ./src/core/slavebase.cpp:1173
#13 0x00007f51e99b9806 in KIO::SlaveBase::dispatchLoop() (this=0x7ffdc4f43730) at ./src/core/slavebase.cpp:348
#14 0x00007f51ee1bdb72 in kdemain () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#15 0x000055fb70d4d77d in  ()
#16 0x000055fb70d4e86a in  ()
#17 0x000055fb70d4f25a in  ()
#18 0x000055fb70d4a12f in  ()
#19 0x00007f51ed27d1e3 in __libc_start_main (main=0x55fb70d49750, argc=5, argv=0x7ffdc4f43f28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdc4f43f18) at ../csu/libc-start.c:308
#20 0x000055fb70d4ad9e in  ()
[Inferior 1 (process 7188) detached]
```
Comment 3 vindicator 2019-11-26 04:50:49 UTC
I'll just wait for input from a dev.
I'd hate to create another bug and just have them mark it as duplicate of this.

You noted the audio thumbnail, but you'll see in the stack, the reference to "kio/thumbnail.so".
This along with kinit5 is the commonality between our crashes.

I am curious *IF* you are experiencing this issue at the *current moment*, and you open your filesystem browser (dolphin?), go to a folder with images (with image thumnail view) and save a new image to that folder, does the thumbnail preview show for that newly saved image? You could just save any image from the internet as a test.

You may want to have "$ journalctl -f" running in a terminal at the same time to look for a crash in real time.
Comment 4 Christoph Feck 2019-11-26 09:49:56 UTC
Crash is in TagLib::MP4::Tag::itemMap() from libtag. Since the audiothumbnailer hasn't seen a commit since 2017, this is likely a regression in libtag. Can you isolate the file that causes the crash?
Comment 5 Avamander 2019-11-26 12:50:18 UTC
Unfortunately I have basically thousands of audio files in the few folders that could be the culprits. Is there a way to invoke libtag used by on a file from command line? I'd run it on every audio file I have if it is.
Comment 6 eternal 2020-10-17 23:58:00 UTC
SUMMARY:
kdeinit5 everytime crash when scroll files in folder with one .djvu file.

SOLUTION (dirty):
Disable preview DjVu files in Dolphin (Configure Dolphin>General>Previews)

CRASH LOG:
Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f39dd6e1aab in __pthread_clockjoin_ex (threadid=139886307698432, thread_return=0x7fffefc51840, clockid=0, abstime=0x0, block=true) at pthread_join_common.c:89
#7  0x00007f39d2a55687 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007f39d2a5571c in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007f39de08ea27 in __run_exit_handlers (status=1, listp=0x7f39de230718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#10 0x00007f39de08ebe0 in __GI_exit (status=<optimized out>) at exit.c:139
#11 0x00007f39d0034b99 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/djvuthumbnail.so
#12 0x00007f39defa447d in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#13 0x00007f39da910fe6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#14 0x00007f39da911686 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#15 0x00007f39defa1b72 in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#16 0x0000562cff5ee77d in ?? ()
#17 0x0000562cff5ef86a in ?? ()
#18 0x0000562cff5f025a in ?? ()
#19 0x0000562cff5eb12f in ?? ()
#20 0x00007f39de06c0b3 in __libc_start_main (main=0x562cff5ea750, argc=5, argv=0x7fffefc524e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffefc524d8) at ../csu/libc-start.c:308
#21 0x0000562cff5ebd9e in ?? ()
[Inferior 1 (process 15278) detached]

SOFTWARE/OS VERSIONS:
OS: Ubuntu 20.04 focal
Kernel: x86_64 Linux 5.4.0-51-generic
Shell: bash 5.0.17
DE: KDE 5.68.0 / Plasma 5.18.5
WM: KWin
GTK Theme: Breeze [GTK2], Default [GTK3]
Icon Theme: Tela-dark
Comment 7 Nicolas Fella 2021-05-08 18:49:40 UTC

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