Bug 456806

Summary: Gwenview hanged after trying to open a png file from within dolphin
Product: [Applications] gwenview Reporter: Rene Locher <rychi32>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: idontfeelcomfygivingyoumyemail
Priority: NOR Keywords: drkonqi
Version First Reported In: 19.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rene Locher 2022-07-16 16:23:56 UTC
Application: gwenview (19.12.3)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.4.0-122-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04.4 LTS

-- Information about the crash:
Gwenview hanged after trying to open a png file from within dolphin . I was trying to close Gwenview when it crashed.

-- 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 0x7f798113a440 (LWP 26785))]

Thread 4 (Thread 0x7f796eef9700 (LWP 26789)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x561bd6b9c118) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x561bd6b9c0c8, cond=0x561bd6b9c0f0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x561bd6b9c0f0, mutex=0x561bd6b9c0c8) at pthread_cond_wait.c:647
#3  0x00007f796f1475eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f796f1471eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f79851a7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f7986a98133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f797f13f700 (LWP 26787)):
#0  __GI___libc_read (nbytes=16, buf=0x7f797f13e8a0, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=0x7f797f13e8a0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f79849d5b2f in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f798498cebe in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f798498d312 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f798498d4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f798702d453 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f7986fd43ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f7986e0c785 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f7986832efa in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f7986e0d9d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f79851a7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007f7986a98133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f7980258700 (LWP 26786)):
#0  0x00007f7986a8b99f in __GI___poll (fds=0x7f79802579e8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f798491cc1a in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f798491e90a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f7980a29298 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f7986e0d9d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f79851a7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f7986a98133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f798113a440 (LWP 26785)):
[KCrash Handler]
#6  0x00007f7986f2feb7 in QUrl::operator==(QUrl const&) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f7988a1719e in Gwenview::ContextManager::setCurrentDirUrl (this=this@entry=0x561bd6a578f0, _url=...) at ./lib/contextmanager.cpp:186
#8  0x00007f7988a1729a in Gwenview::ContextManager::<lambda(const QUrl&)>::operator() (__closure=<optimized out>, urlReady=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qurl.h:69
#9  QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<const QUrl&>, void, Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#10 QtPrivate::Functor<Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)>, 1>::call<QtPrivate::List<QUrl const&>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#11 QtPrivate::QFunctorSlotObject<Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)>, 1, QtPrivate::List<const QUrl&>, void>::impl (which=1, r=<optimized out>, ret=<optimized out>, a=<optimized out>, this_=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:439
#12 QtPrivate::QFunctorSlotObject<Gwenview::ContextManager::ContextManager(Gwenview::SortedDirModel*, QObject*)::<lambda(const QUrl&)>, 1, QtPrivate::List<const QUrl&>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:432
#13 0x00007f7987001328 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f7988a05f49 in Gwenview::DocumentFactory::readyForDirListerStart (this=<optimized out>, _t1=...) at ./obj-x86_64-linux-gnu/lib/gwenviewlib_autogen/DV7UALDUNI/moc_documentfactory.cpp:208
#15 0x00007f7987001328 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f7988a05c09 in Gwenview::Document::loaded (this=<optimized out>, _t1=...) at ./obj-x86_64-linux-gnu/lib/gwenviewlib_autogen/DV7UALDUNI/moc_document.cpp:314
#17 0x00007f7987001328 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f7988a2c3e4 in Gwenview::DocumentLoadedImpl::init (this=0x561bd6f2fbd0) at ./lib/document/documentloadedimpl.cpp:68
#19 0x00007f7988a2315f in Gwenview::Document::switchToImpl (this=0x561bd6e9e2e0, impl=impl@entry=0x561bd6f2fbd0) at ./lib/document/document.cpp:254
#20 0x00007f7988a220e0 in Gwenview::AbstractDocumentImpl::switchToImpl (this=this@entry=0x561bd6f5b5e0, impl=impl@entry=0x561bd6f2fbd0) at ./lib/document/abstractdocumentimpl.cpp:58
#21 0x00007f7988a2ccd9 in Gwenview::LoadingDocumentImpl::slotImageLoaded (this=0x561bd6f5b5e0) at ./lib/document/loadingdocumentimpl.cpp:555
#22 0x00007f7987001328 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f7986e17f65 in QFutureWatcherBase::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f7987c16a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f7987c200f0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f7986fd580a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f7986fd8488 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f798702de37 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f798498d17d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f798498d400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f798498d4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f798702d435 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f7986fd43ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f7986fdc116 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x0000561bd4d19aaa in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:168
[Inferior 1 (process 26785) detached]

The reporter indicates this bug may be a duplicate of or related to bug 443460.

Possible duplicates by query: bug 453871, bug 443460, bug 432945, bug 432501, bug 429212.

Reported using DrKonqi
Comment 1 A Linux User 2025-08-22 19:18:33 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08?

If yes, what was the png?
Comment 2 Rene Locher 2025-08-23 08:27:57 UTC
Thank you for your inquiry. Everything is fine now with Gwenview 23.08.5 on Kubuntu 24.04 LTS. You might close this issue.