Bug 438633

Summary: gwenview segfault when cropping
Product: [Applications] gwenview Reporter: Marcel Bergeron <bergeron.marcel>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: postix
Priority: NOR Keywords: drkonqi
Version First Reported In: 21.04.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: attachment-887-0.html

Description Marcel Bergeron 2021-06-14 17:24:45 UTC
Application: gwenview (21.04.2)

Qt Version: 5.15.2
Frameworks Version: 5.82.0
Operating System: Linux 5.12.9-1-default x86_64
Windowing System: X11
Drkonqi Version: 5.22.0
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
open any image and clic to crop, segmentation fault results

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7fc136d63a40 (LWP 12644))]
[KCrash Handler]
#6  std::__atomic_base<QObjectPrivate::SignalVector*>::load (__m=std::memory_order_relaxed, this=0x454545454545454d) at /usr/include/c++/11/bits/atomic_base.h:836
#7  std::atomic<QObjectPrivate::SignalVector*>::load (__m=std::memory_order_relaxed, this=0x454545454545454d) at /usr/include/c++/11/atomic:570
#8  QAtomicOps<QObjectPrivate::SignalVector*>::loadRelaxed<QObjectPrivate::SignalVector*> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:239
#9  QBasicAtomicPointer<QObjectPrivate::SignalVector>::loadRelaxed (this=0x454545454545454d) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:248
#10 QObjectPrivate::isSignalConnected (this=this@entry=0x561b646bfed0, signalIndex=7, checkDeclarative=checkDeclarative@entry=true) at kernel/qobject.cpp:459
#11 0x00007fc13a8531fc in QVariantAnimationPrivate::setCurrentValueForProgress (this=0x561b646bfed0, progress=<optimized out>) at animation/qvariantanimation.cpp:291
#12 0x00007fc13a850493 in QAbstractAnimation::setCurrentTime (this=0x561b646bfcf0, msecs=17) at animation/qabstractanimation.cpp:1326
#13 0x00007fc13a8505d4 in QAnimationTimer::updateAnimationsTime (this=0x561b641a66a0, delta=17) at animation/qabstractanimation.cpp:608
#14 0x00007fc13a84ef0b in QUnifiedTimer::updateAnimationTimers (this=0x561b642caa80, currentTick=<optimized out>) at animation/qabstractanimation.cpp:324
#15 0x00007fc13a850c1d in QAnimationDriver::advanceAnimation (this=<optimized out>, timeStep=-1) at animation/qabstractanimation.cpp:823
#16 0x00007fc13aa79fbf in QObject::event (this=0x561b642caa98, e=0x7ffd7556a210) at kernel/qobject.cpp:1336
#17 0x00007fc13b7d0a5f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x561b642caa98, e=0x7ffd7556a210) at kernel/qapplication.cpp:3632
#18 0x00007fc13aa4daaa in QCoreApplication::notifyInternal2 (receiver=0x561b642caa98, event=0x7ffd7556a210) at kernel/qcoreapplication.cpp:1063
#19 0x00007fc13aaa448b in QTimerInfoList::activateTimers (this=this@entry=0x561b63a80860) at kernel/qtimerinfo_unix.cpp:643
#20 0x00007fc13aaa4d34 in timerSourceDispatch (source=source@entry=0x561b63a80800) at kernel/qeventdispatcher_glib.cpp:183
#21 0x00007fc13834280f in g_main_dispatch (context=0x561b639bcb20) at ../glib/gmain.c:3337
#22 g_main_context_dispatch (context=0x561b639bcb20) at ../glib/gmain.c:4055
#23 0x00007fc138342b98 in g_main_context_iterate (context=context@entry=0x561b639bcb20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4131
#24 0x00007fc138342c4f in g_main_context_iteration (context=0x561b639bcb20, may_block=1) at ../glib/gmain.c:4196
#25 0x00007fc13aaa50f4 in QEventDispatcherGlib::processEvents (this=0x561b63a75520, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#26 0x00007fc13aa4c4bb in QEventLoop::exec (this=this@entry=0x7ffd7556a450, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#27 0x00007fc13aa54790 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#28 0x00007fc13b0721fc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#29 0x00007fc13b7d09d5 in QApplication::exec () at kernel/qapplication.cpp:2824
#30 0x0000561b621dc2f3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/gwenview5-21.04.2-1.1.x86_64/app/main.cpp:202
[Inferior 1 (process 12644) detached]

Reported using DrKonqi
Comment 1 postix 2021-08-03 10:43:57 UTC
Do you have a sample file? I cannot reproduce it on openSUSE Tumbleweed 20210730
Comment 2 Marcel Bergeron 2021-08-03 22:15:22 UTC
Created attachment 140495 [details]
attachment-887-0.html

The problem has gone away, I did'nt notice when. As it was, trying to crop
any image produced a crash.

Le mar. 3 août 2021 à 06:43, postix <bugzilla_noreply@kde.org> a écrit :

> https://bugs.kde.org/show_bug.cgi?id=438633
>
> postix <postix@posteo.eu> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |postix@posteo.eu
>
> --- Comment #1 from postix <postix@posteo.eu> ---
> Do you have a sample file? I cannot reproduce it on openSUSE Tumbleweed
> 20210730
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 postix 2021-08-04 11:53:54 UTC
> The problem has gone away, I did'nt notice when.

Great! I think we can close it then. Feel free to reopen when you experience it again.