Bug 430327

Summary: Dolphin crashes after F5 (refresh)
Product: [Applications] dolphin Reporter: os.untrained150
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: elvis.angelaccio, kfm-devel, os.untrained150
Priority: NOR Keywords: drkonqi
Version: 20.08.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
Screenshot duplicate files before crash

Description os.untrained150 2020-12-13 07:45:07 UTC
Application: dolphin (20.08.2)

Qt Version: 5.14.2
Frameworks Version: 5.74.0
Operating System: Linux 5.8.0-31-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.10

-- Information about the crash:
- What I was doing when the application crashed:
Opened dolphin and changed to directory, where i have just created 3 new files (.jpg with darktable). These 3 new files were shown duplicated with the same name. After pressing F5 (refresh) dolphin crashes. After new start it may happen, that the files where again showed doubled, but after some tries it is fine.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Dolphin (dolphin), signal: Aborted

[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#5  0x00007fcd3b6e1864 in __GI_abort () at abort.c:79
#6  0x00007fcd3b744af6 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fcd3b86c128 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#7  0x00007fcd3b74d46c in malloc_printerr (str=str@entry=0x7fcd3b86e0f0 "munmap_chunk(): invalid pointer") at malloc.c:5389
#8  0x00007fcd3b74d83c in munmap_chunk (p=<optimized out>) at malloc.c:2845
#9  0x00007fcd3962a5a7 in QHashData::free_helper(void (*)(QHashData::Node*)) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fcd3b6048b6 in KFileItemModel::slotClear() () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#11 0x00007fcd398072e6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fcd3b11fb3e in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007fcd3b12031a in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#14 0x00007fcd3b60f365 in KFileItemModel::refreshDirectory(QUrl const&) () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#15 0x00007fcd3b666dcf in DolphinView::reload() () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#16 0x00007fcd3b9098f1 in ?? () from /usr/lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
#17 0x00007fcd3b8f4662 in ?? () from /usr/lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
#18 0x00007fcd398072e6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fcd3a342826 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fcd3a345111 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fcd3a345cef in QAction::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007fcd3a349013 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fcd397d11ca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fcd39c90e06 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007fcd39c90ee3 in QShortcutMap::tryShortcut(QKeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007fcd39c3da82 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x00007fcd39c6049f in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#28 0x00007fcd39c3a2bb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007fcd3472635e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#30 0x00007fcd3770b4db in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fcd3770b788 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fcd3770b853 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fcd39828843 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fcd397cfa4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007fcd397d7fc6 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007fcd3b8f37c5 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
#37 0x00007fcd3b6e3cb2 in __libc_start_main (main=0x55b239b23060, argc=1, argv=0x7ffcd0793478, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcd0793468) at ../csu/libc-start.c:314
#38 0x000055b239b2309e in _start ()
[Inferior 1 (process 9649) detached]

Possible duplicates by query: bug 430170, bug 429809, bug 429344, bug 429012, bug 428519.

Reported using DrKonqi
Comment 1 os.untrained150 2020-12-13 07:51:23 UTC
I forgot before: This is happening on a ZFS filesystem!
Comment 2 Elvis Angelaccio 2020-12-28 19:35:48 UTC
If you can reproduce this crash, please install debug symbols for dolphin and KIO and post another backtrace. Thanks!
Comment 3 os.untrained150 2020-12-29 05:46:31 UTC
Created attachment 134377 [details]
New crash information added by DrKonqi

dolphin (20.08.2) using Qt 5.14.2

- What I was doing when the application crashed:

1) I added pictures from my camera to /storage/ssd500/Pictures-Darktable/2020/2020-12-29/ (ext4, ssd) and priocessed them with darktable.
2) exported the picrtures out of darktable to /storage/hdd2t/Pictures-work/2020 (zfs, hdd)
3) opened dolphin and changed to /storage/hdd2t/Pictures-work/2020, which shows the just exported photos twice
4) pressing F5 (or drag/drop pictures) let dolphin crash.

It looks like, that when only exporting photos to the directory (see point 2 above), dolphin does not crash or does not show duplicate files. I must change files in another directory too before  (see point 1 above) and afterwards export my photos, then dolphin crashes.

-- Backtrace (Reduced):
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#5  0x00007f99ac51b864 in __GI_abort () at abort.c:79
[...]
#7  0x00007f99ac58746c in malloc_printerr (str=str@entry=0x7f99ac6a430f "free(): invalid pointer") at malloc.c:5389
#8  0x00007f99ac588e84 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:4201
#9  0x00007f99aa4645a7 in QHashData::free_helper(void (*)(QHashData::Node*)) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
Comment 4 os.untrained150 2020-12-29 05:50:32 UTC
For your informations:

I installed dolphin- and kio- debugsymbols before the crash!
Comment 5 os.untrained150 2020-12-29 05:56:58 UTC
Created attachment 134378 [details]
Screenshot duplicate files before crash
Comment 6 Christoph Feck 2020-12-29 09:38:28 UTC

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