Bug 312411 - Gwenview crashing when opening images from a specific directory
Summary: Gwenview crashing when opening images from a specific directory
Status: RESOLVED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 2.10.0
Platform: Mageia RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-12-31 00:59 UTC by Anssi Hannula
Modified: 2018-10-27 04:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anssi Hannula 2012-12-31 00:59:44 UTC
Application: gwenview (2.10.0)
KDE Platform Version: 4.9.90
Qt Version: 4.8.4
Operating System: Linux 3.7.0-desktop-0.rc8.1.mga3 x86_64
Distribution: "Mageia 3"

-- Information about the crash:
- What I was doing when the application crashed:

Gwenview crashed a few times while opening any image file on a specific directory (approx. 1/20 chance). This happened at least when using the "next file" button and when double-clicking an image in the thumbnail view.

Unfortunately I can't provide a file list of the directory in question, and it seems that while writing this it became no longer reproducable. With a quick look I do not see any strange characters in the file names except parantheses and '%' characters.

Maybe the backtrace yields some useful info for you...

The crash can be reproduced some of the time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fb0736e2780 (LWP 25534))]

Thread 2 (Thread 0x7fb06d2f2700 (LWP 25535)):
#0  0x0000003ea700aa9f in __pthread_mutex_unlock_usercnt (mutex=0x7fb068000a60, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  0x0000003dcc884b71 in g_mutex_unlock (mutex=mutex@entry=0x7fb0680009a0) at gthread-posix.c:229
#2  0x0000003dcc847402 in g_main_context_prepare (context=context@entry=0x7fb0680009a0, priority=priority@entry=0x7fb06d2f1c78) at gmain.c:3020
#3  0x0000003dcc847a3b in g_main_context_iterate (context=context@entry=0x7fb0680009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3270
#4  0x0000003dcc847c34 in g_main_context_iteration (context=0x7fb0680009a0, may_block=1) at gmain.c:3351
#5  0x0000003dcd9a6806 in QEventDispatcherGlib::processEvents (this=0x7fb0680008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x0000003dcd97717f in QEventLoop::processEvents (this=this@entry=0x7fb06d2f1dd0, flags=...) at kernel/qeventloop.cpp:149
#7  0x0000003dcd977408 in QEventLoop::exec (this=0x7fb06d2f1dd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x0000003dcd878830 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x0000003dcd9579cf in QInotifyFileSystemWatcherEngine::run (this=0x1bfb060) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x0000003dcd87b80c in QThreadPrivate::start (arg=0x1bfb060) at thread/qthread_unix.cpp:338
#11 0x0000003ea7007d18 in start_thread (arg=0x7fb06d2f2700) at pthread_create.c:308
#12 0x0000003ea6cecfad in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb0736e2780 (LWP 25534)):
[KCrash Handler]
#6  QMutex::lockInline (this=0x4f30000000000c76) at ../../src/corelib/thread/qmutex.h:187
#7  0x0000003dcd92bdb8 in QMutexLocker (m=<optimized out>, this=0x7fffcad82d60) at ../../src/corelib/thread/qmutex.h:109
#8  QUrl::path (this=this@entry=0xc1cbfba) at io/qurl.cpp:4937
#9  0x0000003dcd93330e in QUrl::toString (this=0xc1cbfba, options=...) at io/qurl.cpp:5811
#10 0x0000003dcc411dc0 in registerResourceEvent (reason=6881357, event=KActivities::ResourceInstancePrivate::FocusedIn, uri=..., wid=9007431185858609, application=...) at /usr/src/debug/kactivities-4.9.90/src/lib/core/resourceinstance.cpp:64
#11 KActivities::ResourceInstance::notifyFocusedIn (this=<optimized out>) at /usr/src/debug/kactivities-4.9.90/src/lib/core/resourceinstance.cpp:125
#12 0x0000000000435384 in setCurrentView (view=0x202d750, this=0x1c17fb0) at /usr/src/debug/gwenview-4.9.90/app/viewmainpage.cpp:362
#13 Gwenview::ViewMainPage::openUrls (this=0x1c17e00, allUrls=..., currentUrl=...) at /usr/src/debug/gwenview-4.9.90/app/viewmainpage.cpp:677
#14 0x000000000044eb62 in Gwenview::MainWindow::openSelectedDocuments (this=this@entry=0x1a9a5a0) at /usr/src/debug/gwenview-4.9.90/app/mainwindow.cpp:1048
#15 0x000000000044f8bf in Gwenview::MainWindow::setActiveViewModeAction (this=0x1a9a5a0, action=<optimized out>) at /usr/src/debug/gwenview-4.9.90/app/mainwindow.cpp:942
#16 0x0000003dcd98d84f in QMetaObject::activate (sender=0x1dcd990, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcad83480) at kernel/qobject.cpp:3539
#17 0x0000003dcf1c6d7f in QActionGroup::triggered (this=this@entry=0x1dcd990, _t1=_t1@entry=0x1d046f0) at .moc/release-shared/moc_qactiongroup.cpp:160
#18 0x0000003dcf1c6e07 in QActionGroupPrivate::_q_actionTriggered (this=<optimized out>) at kernel/qactiongroup.cpp:93
#19 0x0000003dcd98d84f in QMetaObject::activate (sender=0x1d046f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcad835f0) at kernel/qobject.cpp:3539
#20 0x0000003dcf1c4322 in QAction::triggered (this=this@entry=0x1d046f0, _t1=true) at .moc/release-shared/moc_qaction.cpp:277
#21 0x0000003dcf1c4510 in QAction::activate (this=0x1d046f0, event=<optimized out>) at kernel/qaction.cpp:1257
#22 0x0000000000449b42 in trigger (this=<optimized out>) at /usr/include/QtGui/qaction.h:218
#23 Gwenview::MainWindow::slotThumbnailViewIndexActivated (this=0x1a9a5a0, index=...) at /usr/src/debug/gwenview-4.9.90/app/mainwindow.cpp:986
#24 0x0000003dcd98d84f in QMetaObject::activate (sender=0x1b95480, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcad837b0) at kernel/qobject.cpp:3539
#25 0x00007fb0759f5d02 in Gwenview::ThumbnailView::indexActivated (this=this@entry=0x1b95480, _t1=...) at /usr/src/debug/gwenview-4.9.90/build/lib/thumbnailview.moc:170
#26 0x00007fb0759f6530 in Gwenview::ThumbnailView::emitIndexActivatedIfNoModifiers (this=0x1b95480, index=...) at /usr/src/debug/gwenview-4.9.90/lib/thumbnailview/thumbnailview.cpp:548
#27 0x0000003dcd98d84f in QMetaObject::activate (sender=0x1b95480, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcad83920) at kernel/qobject.cpp:3539
#28 0x0000003dcf6d08c5 in QAbstractItemView::doubleClicked (this=this@entry=0x1b95480, _t1=...) at .moc/release-shared/moc_qabstractitemview.cpp:355
#29 0x0000003dcf6d0a25 in QAbstractItemView::mouseDoubleClickEvent (this=0x1b95480, event=0x7fffcad84530) at itemviews/qabstractitemview.cpp:1846
#30 0x0000003dcf219e72 in QWidget::event (this=0x1b95480, event=0x7fffcad84530) at kernel/qwidget.cpp:8379
#31 0x0000003dcf5c43e6 in QFrame::event (this=0x1b95480, e=0x7fffcad84530) at widgets/qframe.cpp:557
#32 0x0000003dcf6cfa7b in QAbstractItemView::viewportEvent (this=0x1b95480, event=0x7fffcad84530) at itemviews/qabstractitemview.cpp:1644
#33 0x0000003dcd978596 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x1b96a40, event=0x7fffcad84530) at kernel/qcoreapplication.cpp:1056
#34 0x0000003dcf1ca4ac in QApplicationPrivate::notify_helper (this=0x1997c70, receiver=0x1b96a40, e=0x7fffcad84530) at kernel/qapplication.cpp:4558
#35 0x0000003dcf1cf1bb in QApplication::notify (this=<optimized out>, receiver=0x1b96a40, e=0x7fffcad84530) at kernel/qapplication.cpp:4105
#36 0x0000003dd0c44b16 in KApplication::notify (this=0x7fffcad851a0, receiver=0x1b96a40, event=0x7fffcad84530) at /usr/src/debug/kdelibs-4.9.90/kdeui/kernel/kapplication.cpp:311
#37 0x0000003dcd97842e in QCoreApplication::notifyInternal (this=0x7fffcad851a0, receiver=0x1b96a40, event=0x7fffcad84530) at kernel/qcoreapplication.cpp:946
#38 0x0000003dcf1cb31b in QApplicationPrivate::sendMouseEvent (receiver=0x1b96a40, event=0x7fffcad84530, alienWidget=0x1b96a40, nativeWidget=0x1a9a5a0, buttonDown=0x3dcfc9e268 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:231
#39 0x0000003dcf2459f4 in QETWidget::translateMouseEvent (this=0x1a9a5a0, event=<optimized out>) at kernel/qapplication_x11.cpp:4537
#40 0x0000003dcf244781 in QApplication::x11ProcessEvent (this=0x7fffcad851a0, event=0x7fffcad84ca0) at kernel/qapplication_x11.cpp:3660
#41 0x0000003dcf26a8a2 in x11EventSourceDispatch (s=s@entry=0x19a7ba0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x0000003dcc847845 in g_main_dispatch (context=0x1996f60) at gmain.c:2715
#43 g_main_context_dispatch (context=context@entry=0x1996f60) at gmain.c:3219
#44 0x0000003dcc847b78 in g_main_context_iterate (context=context@entry=0x1996f60, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3290
#45 0x0000003dcc847c34 in g_main_context_iteration (context=0x1996f60, may_block=1) at gmain.c:3351
#46 0x0000003dcd9a67e6 in QEventDispatcherGlib::processEvents (this=0x1969770, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#47 0x0000003dcf26a51e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#48 0x0000003dcd97717f in QEventLoop::processEvents (this=this@entry=0x7fffcad85070, flags=...) at kernel/qeventloop.cpp:149
#49 0x0000003dcd977408 in QEventLoop::exec (this=0x7fffcad85070, flags=...) at kernel/qeventloop.cpp:204
#50 0x0000003dcd97c1f8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#51 0x000000000042861a in main (argc=6, argv=0x7fffcad85308) at /usr/src/debug/gwenview-4.9.90/app/main.cpp:142

Reported using DrKonqi
Comment 1 Benni Hill 2012-12-31 03:48:55 UTC
@Aurélien: Was this the crash you fixed with commit a6b54dfa8fa2d4b60c9d50ec40de538ea7b6c5af?
Comment 2 Aurelien Gateau 2013-01-04 14:39:04 UTC
@Benni: it is quite possible this commit fixes this bug as well.
@Anssi: Can you reproduce it with latest RC?
Comment 3 Anssi Hannula 2013-01-04 14:45:36 UTC
Unfortunately I can no longer reproduce this at all (not really sure why, though).

I've now upgraded to 4.9.95, and will be sure to report back in case I encounter this again.
Comment 4 Andrew Crouthamel 2018-09-24 02:14:05 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-10-27 04:03:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!