https://bugs.kde.org/show_bug.cgi?id=473762

            Bug ID: 473762
           Summary: KPhotoAlbum crashes when Viewer and Annotations is
                    open and then user right-clicks Show Info in Viewer
    Classification: Applications
           Product: kphotoalbum
           Version: GIT master
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Viewer
          Assignee: kpab...@willden.org
          Reporter: victor.ip.l...@gmail.com
  Target Milestone: ---

SUMMARY
KPhotoAlbum crashes when Viewer and Annotations is open and then user
right-clicks Show Info in Viewer


STEPS TO REPRODUCE
1. Open KPhotoAlbum
2. Go to Thumbnail View
3. Open any Image in Viewer
4. From Viewer open Annotations window (Ctrl 1)
5. Go back to Viewer and Right-Click
6. Go to Show Info in the right-click context menu. Observe that Annotations
window gets automatically closed now.
8. Click anywhere on Viewer (or anywhere really)
9. Crash

OBSERVED RESULT
Crash

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux: openSUSE Tumbleweed 20230816; Kernel Version: 6.4.9-1-default (64-bit)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
KPhotoAlbum Version 5.11.0 (as installed from Opensuse Tumbleweed repository)
Also occurs in latest git version v5.11.0-70-gffaaaad0

ADDITIONAL INFORMATION
1. Crash is reproducible every time the steps are followed.
2. Crash occurs even in the demo database.
3. Crash occurs for Images and Videos.


Backtrace:
Application: KPhotoAlbum (kphotoalbum), signal: Segmentation fault

[KCrash Handler]
#4  std::__atomic_base<int>::load (__m=std::memory_order_relaxed,
this=0x9292929292929292) at /usr/include/c++/13/bits/atomic_base.h:505
#5  QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot
access memory at address 0x9292929292929292>) at
/usr/include/qt5/QtCore/qatomic_cxx11.h:239
#6  0x000000000046ea0c in QBasicAtomicInteger<int>::loadRelaxed
(this=0x9292929292929292) at /usr/include/qt5/QtCore/qbasicatomic.h:107
#7  0x00000000004723dc in QtPrivate::RefCount::isShared
(this=0x9292929292929292) at /usr/include/qt5/QtCore/qrefcount.h:101
#8  0x00000000005f1271 in QList<QDockWidget*>::detach (this=0x128f590) at
/usr/include/qt5/QtCore/qlist.h:178
#9  0x00000000005ef0a4 in QList<QDockWidget*>::begin (this=0x128f590) at
/usr/include/qt5/QtCore/qlist.h:338
#10 0x00000000005e6dd0 in AnnotationDialog::Dialog::hideTornOfWindows
(this=0x128f440) at
/home/victor/Downloads/kphotoalbum/AnnotationDialog/Dialog.cpp:983
#11 0x00000000005e697d in AnnotationDialog::Dialog::exec (this=0x128f440) at
/home/victor/Downloads/kphotoalbum/AnnotationDialog/Dialog.cpp:952
#12 0x00000000005e4c0d in AnnotationDialog::Dialog::configure (this=0x128f440,
list=..., oneAtATime=true) at
/home/victor/Downloads/kphotoalbum/AnnotationDialog/Dialog.cpp:761
#13 0x000000000053409f in MainWindow::Window::configImages (this=0x10ea660,
list=..., oneAtATime=true) at
/home/victor/Downloads/kphotoalbum/MainWindow/Window.cpp:509
#14 0x000000000053403d in MainWindow::Window::configureImages (list=...,
oneAtATime=true) at
/home/victor/Downloads/kphotoalbum/MainWindow/Window.cpp:503
#15 0x00000000004d7cd5 in operator() (__closure=0x7f69140063b0) at
/home/victor/Downloads/kphotoalbum/Viewer/ViewerWidget.cpp:905
#16 0x00000000004dead3 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>,
QtPrivate::List<>, void, Viewer::ViewerWidget::editImage()::<lambda()>
>::call(struct {...} &, void **) (f=..., arg=0x1ac2ec8) at
/usr/include/qt5/QtCore/qobjectdefs_impl.h:146
#17 0x00000000004de9bf in
QtPrivate::Functor<Viewer::ViewerWidget::editImage()::<lambda()>,
0>::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=...,
arg=0x1ac2ec8) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:256
#18 0x00000000004de8d4 in
QtPrivate::QFunctorSlotObject<Viewer::ViewerWidget::editImage()::<lambda()>, 0,
QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
void **, bool *) (which=1, this_=0x7f69140063a0, r=0xe138d0, a=0x1ac2ec8,
ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:443
#19 0x00007f692c919320 in QObject::event (this=0xe138d0, e=0x1ac2e80) at
kernel/qobject.cpp:1347
#20 0x00007f692d5a519e in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0xe138d0, e=0x1ac2e80) at kernel/qapplication.cpp:3640
#21 0x00007f692c8ed568 in QCoreApplication::notifyInternal2 (receiver=0xe138d0,
event=0x1ac2e80) at kernel/qcoreapplication.cpp:1064
#22 0x00007f692c8ed72e in QCoreApplication::sendEvent (receiver=<optimized
out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#23 0x00007f692c8f0b61 in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0xe13850) at kernel/qcoreapplication.cpp:1821
#24 0x00007f692c8f10a8 in QCoreApplication::sendPostedEvents
(receiver=<optimized out>, event_type=<optimized out>) at
kernel/qcoreapplication.cpp:1680
#25 0x00007f692c946c93 in postEventSourceDispatch (s=0xef5510) at
kernel/qeventdispatcher_glib.cpp:277
#26 0x00007f69295169b8 in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#27 0x00007f6929516dc8 in ?? () from /lib64/libglib-2.0.so.0
#28 0x00007f6929516e5c in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#29 0x00007f692c9464a6 in QEventDispatcherGlib::processEvents (this=0xefaa00,
flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f692c8ebffb in QEventLoop::exec (this=this@entry=0x7fff38296670,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#31 0x00007f692c8f4490 in QCoreApplication::exec () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#32 0x0000000000471840 in main (argc=2, argv=0x7fff38296d78) at
/home/victor/Downloads/kphotoalbum/main.cpp:161
[Inferior 1 (process 21568) detached]

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to