Bug 364817

Summary: Dolphin freezes when counting (many) items in subdirs.
Product: [Applications] dolphin Reporter: mrpaul <mrpaul>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: grave CC: cfeck, edkasp, mail
Priority: NOR    
Version First Reported In: 16.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mrpaul 2016-06-27 14:10:11 UTC
I'm trying to sort throught a mess of dirs and items creating by the recovery of a disk.  Some directories contain a LOT of files. It seems Dolphin chokes when trying to count them.

Heres a gdb backtrace:

[x@testing ~]$ gdb dolphin
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dolphin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/dolphin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe11f0700 (LWP 3303)]
[New Thread 0x7fffdae64700 (LWP 3304)]
[New Thread 0x7fffd8c83700 (LWP 3305)]
Trying to convert empty KLocalizedString to QString.
Cannot creat accessible child interface for object:  PlacesView(0xcaa330)  index:  24
kf5.kio.core: KLocalSocket(0xc9f100) Jumbo packet of 99496 bytes

thread apply all backtrace
^Z
Thread 1 "dolphin" received signal SIGTSTP, Stopped (user).
0x00007ffff780d4fd in nanosleep () from /usr/lib/libc.so.6
(gdb) thread apply all backtrace

Thread 4 (Thread 0x7fffd8c83700 (LWP 3305)):
#0  0x00007ffff78346cd in poll () from /usr/lib/libc.so.6
#1  0x00007fffeac92fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffeac930ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff19bb57f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff19650da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#5  0x00007ffff17880f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff178cd78 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007fffecdea484 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007ffff783d6dd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffdae64700 (LWP 3304)):
#0  0x00007ffff78346cd in poll () from /usr/lib/libc.so.6
#1  0x00007fffeac92fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffeac930ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff19bb57f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff19650da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#5  0x00007ffff17880f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff1dcce75 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007ffff178cd78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffecdea484 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff783d6dd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe11f0700 (LWP 3303)):
#0  0x00007ffff78346cd in poll () from /usr/lib/libc.so.6
#1  0x00007fffea3ca8e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fffea3cc679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffe3766469 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff178cd78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fffecdea484 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff783d6dd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7ed7800 (LWP 3299)):
#0  0x00007ffff780d4fd in nanosleep () from /usr/lib/libc.so.6
#1  0x00007ffff18321ed in ?? () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff178c108 in QThread::msleep(unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff34fafc7 in ?? () from /usr/lib/libKF5CoreAddons.so.5
#4  0x00007ffff34fb35b in ?? () from /usr/lib/libKF5CoreAddons.so.5
#5  0x00007ffff34fbd57 in ?? () from /usr/lib/libKF5CoreAddons.so.5
#6  0x00007ffff74c686e in ?? () from /usr/lib/libdolphinprivate.so.5
#7  0x00007ffff1993349 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff28d1e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff28d95b1 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff1966c80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/libQt5Core.so.5
#11 0x00007ffff19693fd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/libQt5Core.so.5
#12 0x00007ffff19bb173 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007fffeac92dd7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#14 0x00007fffeac93040 in ?? () from /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#15 0x00007fffeac930ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#16 0x00007ffff19bb57f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQt5Core.so.5
#17 0x00007ffff19650da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#18 0x00007ffff196d5cc in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#19 0x00007ffff7b5851a in kdemain () from /usr/lib/libkdeinit5_dolphin.so
#20 0x00007ffff7776741 in __libc_start_main () from /usr/lib/libc.so.6
#21 0x0000000000400719 in _start ()
Comment 1 mrpaul 2016-06-27 14:12:21 UTC
version 16.04.2   but thats not available in your pull down options
Comment 2 Christoph Feck 2016-06-27 23:07:36 UTC
How long does a recursive listing need in Konsole using "ls -R" ? It could be a recursion in the directory hierarchy.
Comment 3 Edmund Kasprzak 2018-02-26 19:39:23 UTC
Do you still have that issue?

If so, could you please provide info from a comment #2?
Comment 4 Julian Steinmann 2018-04-12 14:45:23 UTC
I just tried this with my whole system (600'000+ files) & Dolphin was fully responsive during the process. I guess we can close this bug now (no new activity from the original reporter). Please reopen if you still experience this behavior. Thanks!