Bug 491789 - Crash when attempting to modify diagram even though there is no diagram
Summary: Crash when attempting to modify diagram even though there is no diagram
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.39.2 (KDE releases 24.5.2)
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords: drkonqi
: 425459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-08-16 13:58 UTC by geraldthoresbilacque
Modified: 2024-08-26 06:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.39.75 (KDE Applications 24.11.75)
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/58317/events/ee8218d91a694229b26a7ee1b1f56e69/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description geraldthoresbilacque 2024-08-16 13:58:35 UTC
Application: umbrello5 (2.39.2 (Applications 24.05.2))

Qt Version: 6.7.2
Frameworks Version: 6.4.0
Operating System: Linux 6.10.3-arch1-2 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 6.1.4 [KCrashBackend]

-- Information about the crash:
After deleting all existing diagrams, using buttons that modify the diagram (e.g. "Class" in the toolbar) will cause the application to crash.

The crash can be reproduced every time.

-- Backtrace:
Application: Umbrello UML Modeller (umbrello5), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007c1ea677f198 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator-> (this=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
#7  qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=<optimized out>, ptr=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1151
#8  QWidget::d_func (this=<optimized out>) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:132
#9  QWidget::setCursor (this=this@entry=0x0, cursor=...) at kernel/qwidget.cpp:4793
#10 0x00005cb34fea943b in WorkToolBar::buttonChanged (this=<optimized out>, b=<optimized out>) at /usr/src/debug/umbrello/umbrello-24.05.2/umbrello/worktoolbar.cpp:249
#11 0x00007c1ea5adfa62 in doActivate<false> (sender=0x5cb38a65da00, signal_index=4, argv=0x7ffd2f9b8e20) at kernel/qobject.cpp:3937
#12 0x00007c1ea67492e5 in QAction::triggered (this=this@entry=0x5cb38a65da00, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#13 0x00007c1ea674ef70 in QAction::activate (this=0x5cb38a65da00, event=<optimized out>) at kernel/qaction.cpp:1161
#14 0x00007c1ea684809f in QAbstractButtonPrivate::click (this=0x5cb38ac188d0) at widgets/qabstractbutton.cpp:399
#15 0x00007c1ea68482d2 in QAbstractButton::mouseReleaseEvent (this=0x5cb38ab7f9c0, e=0x7ffd2f9b93e0) at widgets/qabstractbutton.cpp:1045
#16 0x00007c1ea6944197 in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:622
#17 0x00007c1ea678f7c6 in QWidget::event (this=0x5cb38ab7f9c0, event=0x7ffd2f9b93e0) at kernel/qwidget.cpp:8671
#18 0x00007c1ea6756331 in QApplicationPrivate::notify_helper (this=this@entry=0x5cb38a212300, receiver=receiver@entry=0x5cb38ab7f9c0, e=e@entry=0x7ffd2f9b93e0) at kernel/qapplication.cpp:3640
#19 0x00007c1ea675c0d1 in QApplication::notify (this=<optimized out>, receiver=0x5cb38ab7f9c0, e=0x7ffd2f9b93e0) at kernel/qapplication.cpp:3084
#20 0x00007c1ea5aaba68 in QCoreApplication::notifyInternal2 (receiver=0x5cb38ab7f9c0, event=0x7ffd2f9b93e0) at kernel/qcoreapplication.cpp:1064
#21 0x00007c1ea5aabaf3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#22 0x00007c1ea6759df5 in QApplicationPrivate::sendMouseEvent (receiver=0x5cb38ab7f9c0, event=0x7ffd2f9b93e0, alienWidget=<optimized out>, nativeWidget=0x5cb38a2e8810, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#23 0x00007c1ea67a8c8a in QWidgetWindow::handleMouseEvent (this=this@entry=0x5cb38a4d6fe0, event=event@entry=0x7ffd2f9b9760) at kernel/qwidgetwindow.cpp:684
#24 0x00007c1ea67aacc7 in QWidgetWindow::event (this=0x5cb38a4d6fe0, event=0x7ffd2f9b9760) at kernel/qwidgetwindow.cpp:300
#25 0x00007c1ea6756331 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5cb38a4d6fe0, e=0x7ffd2f9b9760) at kernel/qapplication.cpp:3640
#26 0x00007c1ea5aaba68 in QCoreApplication::notifyInternal2 (receiver=0x5cb38a4d6fe0, event=0x7ffd2f9b9760) at kernel/qcoreapplication.cpp:1064
#27 0x00007c1ea5aabaf3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#28 0x00007c1ea5f3ba90 in QGuiApplicationPrivate::processMouseEvent (e=0x5cb38ad3e7e0) at kernel/qguiapplication.cpp:2285
#29 0x00007c1ea5f1cdcd in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#30 0x00007c1ea09302f8 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/qt5-base/kde-qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#31 0x00007c1ea3f0eab9 in g_main_dispatch (context=0x7c1e98000ed0) at ../glib/glib/gmain.c:3344
#32 0x00007c1ea3f709e7 in g_main_context_dispatch_unlocked (context=0x7c1e98000ed0) at ../glib/glib/gmain.c:4152
#33 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7c1e98000ed0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#34 0x00007c1ea3f0dfc5 in g_main_context_iteration (context=0x7c1e98000ed0, may_block=1) at ../glib/glib/gmain.c:4282
#35 0x00007c1ea5afa37f in QEventDispatcherGlib::processEvents (this=0x5cb38a2cf920, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#36 0x00007c1ea5aa382c in QEventLoop::exec (this=0x7ffd2f9b9b20, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#37 0x00007c1ea5aafbfd in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#38 0x00007c1ea5f2f18f in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#39 0x00007c1ea675480a in QApplication::exec () at kernel/qapplication.cpp:2832
#40 0x00005cb34fc68b4e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/umbrello/umbrello-24.05.2/umbrello/main.cpp:257
[Inferior 1 (process 3316384) detached]

Reported using DrKonqi
This report was filed against 'kde' because the product 'umbrello5' could not be located in Bugzilla. Add it to drkonqi's mappings file!
Comment 1 Ralf Habacker 2024-08-25 16:51:56 UTC
Git commit 23faeb201f8e489403de8483ae89e742e9c0a1a0 by Ralf Habacker.
Committed on 25/08/2024 at 16:51.
Pushed by habacker into branch 'master'.

Fixed a possible crash when selecting a cursor in the work toolbar without an open diagram
FIXED-IN: 2.39.75 (KDE Applications 24.11.75)

M  +6    -3    umbrello/worktoolbar.cpp

https://invent.kde.org/sdk/umbrello/-/commit/23faeb201f8e489403de8483ae89e742e9c0a1a0
Comment 2 Ralf Habacker 2024-08-26 06:19:01 UTC
*** Bug 425459 has been marked as a duplicate of this bug. ***