Bug 354329

Summary: Gwenview crashes while tagging photos in folder with 38,000 files
Product: [Applications] gwenview Reporter: Tom <tommy.glading>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: myriam
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tom 2015-10-25 01:14:23 UTC
Application: gwenview (4.14.0 pre)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.0-38-generic x86_64
Distribution: Linux Mint 17.2 Rafaela

-- Information about the crash:
- What I was doing when the application crashed:
I was looking through a wallpaper dump torrent from reddit (https://www.reddit.com/r/pcmasterrace/comments/21xa6w/a_torrent_version_of_the_over_52000_wallpapers) and using Gwenview to tag the images. There was 38,000+ images in the folder which made things go slow. I launched Gwenview from the command line with "gwenview 006BRkX.jpg" to avoid having anything try to generate previews of the images. I had looked through and taged many of the images when Gwenview crashed. I have a copy of everything Gwenview echoed to console if you need it.


- Unusual behavior I noticed:
The program ran fairly slow when I first started it so I gave it some time to process whatever it needed to do and after a while it ran quickly. I noticed while using the program that as I tagged images many of the tags I applied did not show back up in the tag editor. Some would autocomplete while others had to be typed in again and again.

Looking at the console output at the time of the crash I did notice this:

Could not delete xattr for "/home/tommy/Pictures/Backgrounds/Background_Dump/0pdsMhr.jpg" "user.xdg.comment" 
Could not delete xattr for "/home/tommy/Pictures/Backgrounds/Background_Dump/0pdsMhr.jpg" "user.xdg.comment" 
Could not delete xattr for "/home/tommy/Pictures/Backgrounds/Background_Dump/0pej1d5.jpg" "user.xdg.comment" 
gwenview(3943): Could not obtain lock for Xapian Database. This is bad 
gwenview(3943):  
Could not delete xattr for "/home/tommy/Pictures/Backgrounds/Background_Dump/0pej1d5.jpg" "user.xdg.comment" 
gwenview(3943): Bananana Error 
gwenview(3943): Serious Error:   
gwenview(3943): Error opening table `/home/tommy/.local/share/baloo/file/position.':
Couldn't open /home/tommy/.local/share/baloo/file/position.baseA: Too many open files
Couldn't open /home/tommy/.local/share/baloo/file/position.baseB: Too many open files
  DatabaseOpeningError: Error opening table `/home/tommy/.local/share/baloo/file/position.':
Couldn't open /home/tommy/.local/share/baloo/file/position.baseA: Too many open files
Couldn't open /home/tommy/.local/share/baloo/file/position.baseB: Too many open files
 
KCrash: Application 'gwenview' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/tommy/.kde/socket-tommy-desktop/kdeinit4__0

[1]+  Stopped                 gwenview 006BRkX.jpg

I have a copy everything logged to console while running Gwenview if needed.  Also, I am using Gwenview as distrubuted with Mint 17.2 KDE. Up to date as of 9:00 on Oct 24, 2015.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f692a3dd840 (LWP 3943))]

Thread 3 (Thread 0x7f6912787700 (LWP 3944)):
#0  0x00007f6926e7382d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f6922f01c10 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6922ec0b14 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6922ec0f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6922ec10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f692921a7be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f69291ec0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f69291ec3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f69290e8c5f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f69291cd823 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f69290eb32f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f6923390182 in start_thread (arg=0x7f6912787700) at pthread_create.c:312
#12 0x00007f6926e8247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f69118df700 (LWP 3945)):
#0  0x00007f69233937ee in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7f6904000a60) at pthread_mutex_unlock.c:57
#1  __GI___pthread_mutex_unlock (mutex=0x7f6904000a60) at pthread_mutex_unlock.c:310
#2  0x00007f6922f029b1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6922ec0680 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6922ec0f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f6922ec10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f692921a7be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f69291ec0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f69291ec3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f69290e8c5f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f69291cd823 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f69290eb32f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007f6923390182 in start_thread (arg=0x7f69118df700) at pthread_create.c:312
#13 0x00007f6926e8247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f692a3dd840 (LWP 3943)):
[KCrash Handler]
#5  0x00007f691f588e78 in Xapian::Database::get_document(unsigned int) const () from /usr/lib/libxapian.so.22
#6  0x00007f691f11c094 in Baloo::XapianDatabase::document(unsigned int) () from /usr/lib/libbalooxapian.so.4
#7  0x00007f6924dfd8ad in Baloo::FileModifyJob::doStart() () from /usr/lib/libbaloofiles.so.4
#8  0x00007f6929205c1e in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f6927ae9e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007f6927af04a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007f69287f9cca in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#12 0x00007f69291ed4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007f69291f0b3d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007f692921af83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007f6922ec0e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f6922ec1048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f6922ec10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f692921a7a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007f6927b8bbe6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007f69291ec0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007f69291ec3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007f69291f1b79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x000000000042787d in ?? ()
#24 0x00007f6926da9ec5 in __libc_start_main (main=0x427580, argc=2, argv=0x7ffc9a010e08, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc9a010df8) at libc-start.c:287
#25 0x0000000000427b22 in _start ()

Possible duplicates by query: bug 347915, bug 340933.

Reported using DrKonqi
Comment 1 Christoph Feck 2015-11-16 01:34:52 UTC

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