Undo and redo of a widget (for example use case on a use case diagram) connected to another widget (for example actor or another use case) does not restore the association Reproducible: Always Steps to Reproduce: 1. start umbrello 2. create use case diagram 3. add an actor and use case and connect them 4. delete use case 5. undo deletion of use case Actual Results: The use case is restored but not the association Expected Results: The use case and the connection should be restored and be added to the diagram.
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
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 mark the bug 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!
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!
Still happens with Git master @ b3bd2bf9 of 2022-12-27. Following the Steps to Reproduce, on selecting Undo after removing the Usecase gives an error message in the log area: umbrello: "[E] Widget_Factory::makeWidgetFromXMI: cannot find object with id -1" Furthermore, the Usecase is not restored.
If after the first (unsuccessful) Undo I press Undo again, the program is aborted with the following backtrace: Application: Umbrello UML Modeller (umbrello5), signal: Aborted [KCrash Handler] #6 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 #7 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78 #8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #9 in __GI_abort () at abort.c:79 #10 in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914 #11 QMessageLogger::fatal (this=this@entry=0x7ffca3d81e48, msg=msg@entry=0x7f4d2dbbe000 "ASSERT: \"%s\" in file %s, line %d") at global/qlogging.cpp:893 #12 in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at global/qglobal.cpp:3366 #13 in Uml::CmdBaseWidgetCommand::assocWidget (this=0x7f4d1c009f80) at /umbrello/master/umbrello/cmds/widget/cmdbasewidgetcommand.cpp:87 #14 in Uml::CmdCreateWidget::undo (this=0x7f4d1c009f80) at /umbrello/master/umbrello/cmds/widget/cmdcreatewidget.cpp:128 #15 in QUndoStack::undo (this=0x28c9c50) at util/qundostack.cpp:817 #16 in UMLApp::undo (this=0x26a1d90) at /umbrello/master/umbrello/uml.cpp:3575 #17 in UMLApp::slotEditUndo (this=0x26a1d90) at /umbrello/master/umbrello/uml.cpp:1727 #18 in UMLApp::qt_static_metacall (_o=0x26a1d90, _c=QMetaObject::InvokeMetaMethod, _id=79, _a=0x7ffca3d82140) at /umbrello/master/build/umbrello/libumbrello_autogen/EWIEGA46WW/moc_uml.cpp:562 #19 in doActivate<false> (sender=0x2980f30, signal_index=4, argv=0x7ffca3d82140) at kernel/qobject.cpp:3931 #20 in QMetaObject::activate (sender=sender@entry=0x2980f30, m=m@entry=0x7f4d2ecb8d20 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffca3d82140) at kernel/qobject.cpp:3979 #21 in QAction::triggered (this=this@entry=0x2980f30, _t1=<optimized out>) at .moc/moc_qaction.cpp:376 #22 in QAction::activate (this=0x2980f30, event=<optimized out>) at kernel/qaction.cpp:1161 #23 in QMenuPrivate::activateCausedStack (this=this@entry=0x2a95dc0, causedStack=..., action=action@entry=0x2980f30, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1384 #24 in QMenuPrivate::activateAction (this=0x2a95dc0, action=0x2980f30, action_e=QAction::Trigger, self=<optimized out>) at widgets/qmenu.cpp:1461 #25 in QWidget::event (this=0x2a09260, event=0x7ffca3d82720) at kernel/qwidget.cpp:9043 #26 in QApplicationPrivate::notify_helper (this=this@entry=0x257aa70, receiver=receiver@entry=0x2a09260, e=e@entry=0x7ffca3d82720) at kernel/qapplication.cpp:3637 #27 in QApplication::notify (this=<optimized out>, receiver=0x2a09260, e=<optimized out>) at kernel/qapplication.cpp:3081 #28 in QCoreApplication::notifyInternal2 (receiver=0x2a09260, event=0x7ffca3d82720) at kernel/qcoreapplication.cpp:1064 #29 in QApplicationPrivate::sendMouseEvent (receiver=0x2a09260, event=event@entry=0x7ffca3d82720, alienWidget=<optimized out>, nativeWidget=0x2a09260, buttonDown=buttonDown@entry=0x7f4d2ecf0330 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2619 #30 in QWidgetWindow::handleMouseEvent (this=0x3009590, event=0x7ffca3d829d0) at kernel/qwidgetwindow.cpp:580 #31 in QWidgetWindow::event (this=0x3009590, event=0x7ffca3d829d0) at kernel/qwidgetwindow.cpp:300 #32 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x3009590, e=0x7ffca3d829d0) at kernel/qapplication.cpp:3637 #33 in QCoreApplication::notifyInternal2 (receiver=0x3009590, event=0x7ffca3d829d0) at kernel/qcoreapplication.cpp:1064 #34 in QGuiApplicationPrivate::processMouseEvent (e=0x2c32fc0) at kernel/qguiapplication.cpp:2285 #35 in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169 #36 in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105 #37 in g_main_dispatch (context=0x7f4d24005010) at ../glib/gmain.c:3444 #38 g_main_context_dispatch (context=context@entry=0x7f4d24005010) at ../glib/gmain.c:4162 #39 in g_main_context_iterate (context=context@entry=0x7f4d24005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4238 #40 in g_main_context_iteration (context=0x7f4d24005010, may_block=1) at ../glib/gmain.c:4303 #41 in QEventDispatcherGlib::processEvents (this=0x2656850, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #42 in QEventLoop::exec (this=this@entry=0x7ffca3d82d00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #43 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #44 in main (argc=2, argv=0x7ffca3d83418) at /umbrello/master/umbrello/main.cpp:347