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

            Bug ID: 451102
           Summary: Ruqola crashes when removing account
           Product: Ruqola
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: mon...@kde.org
          Reporter: nicolas.fe...@gmx.de
  Target Milestone: ---

Application: ruqola (1.6.44 alpha)
 (Compiled from sources)
Qt Version: 5.15.2
Frameworks Version: 5.92.0
Operating System: Linux 5.16.11-1-default x86_64
Windowing System: Wayland
Distribution: openSUSE Tumbleweed
DrKonqi: 5.24.80 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Have two accounts configured.
While having the second account active go to Settings > Configure Ruqola >
Account, select the second account, remove it and click Ok

The crash can be reproduced every time.

-- Backtrace:
Application: Ruqola (ruqola), signal: Segmentation fault
Content of s_kcrashErrorMessage: {_M_t = {<std::__uniq_ptr_impl<char,
std::default_delete<char []> >> = {_M_t = {<std::_Tuple_impl<0, char*,
std::default_delete<char []> >> = {<std::_Tuple_impl<1,
std::default_delete<char []> >> = {<std::_Head_base<1, std::default_delete<char
[]>, true>> = {_M_head_impl = {<No data fields>}}, <No data fields>},
<std::_Head_base<0, char*, false>> = {_M_head_impl = 0x0}, <No data fields>},
<No data fields>}}, <No data fields>}}
[KCrash Handler]
#5  0x00007f4d12928c99 in QObject::disconnect(QObject const*, char const*,
QObject const*, char const*) (sender=0x1f1a170, signal=signal@entry=0x0,
receiver=receiver@entry=0x1fe1dd0, method=method@entry=0x0) at
kernel/qobject.cpp:3104
#6  0x00007f4d15887fb7 in
AvatarCacheManager::setCurrentRocketChatAccount(RocketChatAccount*)
(this=0x1fe1dd0,
currentRocketChatAccount=currentRocketChatAccount@entry=0x1ed08a0) at
/home/nico/kde/src/ruqola/src/widgets/misc/avatarcachemanager.cpp:53
#7  0x00007f4d1584b7d5 in
ChannelListDelegate::setCurrentRocketChatAccount(RocketChatAccount*)
(this=0x1f7b210,
currentRocketChatAccount=currentRocketChatAccount@entry=0x1ed08a0) at
/home/nico/kde/src/ruqola/src/widgets/channellist/channellistdelegate.cpp:29
#8  0x00007f4d15848639 in
ChannelListView::setCurrentRocketChatAccount(RocketChatAccount*)
(this=<optimized out>,
currentRocketChatAccount=currentRocketChatAccount@entry=0x1ed08a0) at
/home/nico/kde/src/ruqola/src/widgets/channellist/channellistview.cpp:50
#9  0x00007f4d15847835 in
ChannelListWidget::setCurrentRocketChatAccount(RocketChatAccount*)
(this=0x26af8b0, account=account@entry=0x1ed08a0) at
/home/nico/kde/src/ruqola/src/widgets/channellist/channellistwidget.cpp:94
#10 0x00007f4d15811fa6 in
RuqolaMainWidget::setCurrentRocketChatAccount(RocketChatAccount*)
(this=0x1f2fd60, account=0x1ed08a0) at
/home/nico/kde/src/ruqola/src/widgets/ruqolamainwidget.cpp:117
#11 0x00007f4d15810393 in
RuqolaCentralWidget::setCurrentRocketChatAccount(RocketChatAccount*)
(this=0x1f89f10, account=<optimized out>) at
/home/nico/kde/src/ruqola/src/widgets/ruqolacentralwidget.cpp:85
#12 0x00007f4d158093c3 in RuqolaMainWindow::slotAccountChanged()
(this=0x2012e70) at
/home/nico/kde/src/ruqola/src/widgets/ruqolamainwindow.cpp:211
#13 0x00007f4d1292ff5d in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffc019a2510, r=0x2012e70, this=0x21ffe40) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false>(QObject*, int, void**) (sender=0x1ed1930, signal_index=5,
argv=0x7ffc019a2510) at kernel/qobject.cpp:3886
#15 0x00007f4d1292993f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender@entry=0x1ed1930, m=m@entry=0x7f4d1560f460
<AccountManager::staticMetaObject>,
local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x0) at
kernel/qobject.cpp:3946
#16 0x00007f4d15494c13 in AccountManager::currentAccountChanged()
(this=this@entry=0x1ed1930) at
/home/nico/kde/build/ruqola/src/core/libruqolacore_autogen/EWIEGA46WW/moc_accountmanager.cpp:196
#17 0x00007f4d15562acf in AccountManager::setCurrentAccount(QString const&)
(this=this@entry=0x1ed1930, accountName=...) at
/home/nico/kde/src/ruqola/src/core/accountmanager.cpp:204
#18 0x00007f4d15889ba8 in operator() (__closure=<optimized out>,
__closure=<optimized out>, i=<optimized out>) at
/home/nico/kde/src/ruqola/src/widgets/misc/accountsoverviewwidget.cpp:107
#19 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>,
void, AccountsOverviewWidget::AccountsOverviewWidget(QWidget*)::<lambda(int)>
>::call (arg=<optimized out>, f=<optimized out>) at
/home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:146
#20
QtPrivate::Functor<AccountsOverviewWidget::AccountsOverviewWidget(QWidget*)::<lambda(int)>,
1>::call<QtPrivate::List<int>, void> (arg=<optimized out>, f=<optimized out>)
at /home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:256
#21
QtPrivate::QFunctorSlotObject<AccountsOverviewWidget::AccountsOverviewWidget(QWidget*)::<lambda(int)>,
1, QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject
*, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized
out>, a=<optimized out>, ret=<optimized out>) at
/home/nico/kde/usr/include/QtCore/qobjectdefs_impl.h:443
#22 0x00007f4d1292ff5d in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffc019a2700, r=0x254ad40, this=0x270ea40) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false>(QObject*, int, void**) (sender=0x20477a0, signal_index=7,
argv=0x7ffc019a2700) at kernel/qobject.cpp:3886
#24 0x00007f4d1292993f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender@entry=0x20477a0, m=m@entry=0x7f4d1394dea0
<QTabBar::staticMetaObject>, local_signal_index=local_signal_index@entry=0,
argv=argv@entry=0x7ffc019a2700) at kernel/qobject.cpp:3946
#25 0x00007f4d135f852e in QTabBar::currentChanged(int)
(this=this@entry=0x20477a0, _t1=<optimized out>, _t1@entry=0) at
.moc/moc_qtabbar.cpp:338
#26 0x00007f4d135fc3a0 in QTabBar::setCurrentIndex(int)
(this=this@entry=0x20477a0, index=index@entry=0) at widgets/qtabbar.cpp:1450
#27 0x00007f4d135ff6b8 in QTabBar::removeTab(int) (this=0x20477a0,
index=<optimized out>, index@entry=1) at widgets/qtabbar.cpp:1094
#28 0x00007f4d1588a143 in AccountsOverviewWidget::updateButtons()
(this=0x254ad40) at
/home/nico/kde/src/ruqola/src/widgets/misc/accountsoverviewwidget.cpp:154
#29 0x00007f4d1292ff5d in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffc019a2890, r=0x254ad40, this=0x20302f0) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#30 doActivate<false>(QObject*, int, void**) (sender=0x1ec1b00,
signal_index=26, argv=0x7ffc019a2890) at kernel/qobject.cpp:3886
#31 0x00007f4d1292993f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=<optimized out>, m=m@entry=0x7f4d1560e460
<RocketChatAccountModel::staticMetaObject>,
local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at
kernel/qobject.cpp:3946
#32 0x00007f4d15495180 in RocketChatAccountModel::accountNumberChanged()
(this=<optimized out>) at
/home/nico/kde/build/ruqola/src/core/libruqolacore_autogen/NLOY5YBGEN/moc_rocketchataccountmodel.cpp:144
#33 0x00007f4d154ce5e7 in RocketChatAccountModel::removeAccount(QString const&)
(this=<optimized out>, name=...) at
/home/nico/kde/src/ruqola/src/core/model/rocketchataccountmodel.cpp:150
#34 0x00007f4d15561f9d in AccountManager::removeAccount(QString const&)
(this=0x1ed1930, accountName=...) at
/home/nico/kde/src/ruqola/src/core/accountmanager.cpp:218
#35 0x00007f4d158418ac in AccountServerListWidget::save() (this=0x2bbde60) at
/home/nico/kde/src/ruqola/src/widgets/configuredialog/accountserverlistwidget.cpp:46
#36 0x00007f4d158432dd in ConfigureAccountServerWidget::save() (this=<optimized
out>) at
/home/nico/kde/src/ruqola/src/widgets/configuredialog/configureaccountserverwidget.cpp:32
#37 0x00007f4d15841299 in ConfigureAccountWidget::save() (this=<optimized out>)
at
/home/nico/kde/src/ruqola/src/widgets/configuredialog/configureaccountwidget.cpp:27
#38 0x00007f4d1584053d in ConfigureSettingsDialog::slotAccepted()
(this=0x2b6da70) at
/home/nico/kde/src/ruqola/src/widgets/configuredialog/configuresettingsdialog.cpp:97
#39 0x00007f4d1292ff5d in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffc019a2a60, r=0x2b6da70, this=0x31c7320) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#40 doActivate<false>(QObject*, int, void**) (sender=0x2b75f10, signal_index=9,
argv=0x7ffc019a2a60) at kernel/qobject.cpp:3886
#41 0x00007f4d1292993f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender@entry=0x2b75f10, m=m@entry=0x7f4d13942060
<QAbstractButton::staticMetaObject>,
local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffc019a2a60)
at kernel/qobject.cpp:3946
#42 0x00007f4d1353ff02 in QAbstractButton::clicked(bool)
(this=this@entry=0x2b75f10, _t1=<optimized out>) at
.moc/moc_qabstractbutton.cpp:308
#43 0x00007f4d1354012a in QAbstractButtonPrivate::emitClicked()
(this=0x2b6ddb0) at widgets/qabstractbutton.cpp:415
#44 0x00007f4d13541c00 in QAbstractButtonPrivate::click() (this=0x2b6ddb0) at
widgets/qabstractbutton.cpp:408
#45 0x00007f4d13541e13 in QAbstractButton::mouseReleaseEvent(QMouseEvent*)
(this=0x2b75f10, e=0x7ffc019a2f10) at widgets/qabstractbutton.cpp:1044
#46 0x00007f4d134934ae in QWidget::event(QEvent*) (this=0x2b75f10,
event=0x7ffc019a2f10) at kernel/qwidget.cpp:9020
#47 0x00007f4d13454a3f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=this@entry=0x1e384f0, receiver=receiver@entry=0x2b75f10,
e=e@entry=0x7ffc019a2f10) at kernel/qapplication.cpp:3632
#48 0x00007f4d1345bfb9 in QApplication::notify(QObject*, QEvent*)
(this=<optimized out>, receiver=0x2b75f10, e=0x7ffc019a2f10) at
kernel/qapplication.cpp:3076
#49 0x00007f4d128fbcca in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x2b75f10, event=0x7ffc019a2f10) at kernel/qcoreapplication.cpp:1064
#50 0x00007f4d1345ab50 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
(receiver=receiver@entry=0x2b75f10, event=event@entry=0x7ffc019a2f10,
alienWidget=alienWidget@entry=0x2b75f10, nativeWidget=0x2b6da70,
buttonDown=buttonDown@entry=0x7f4d1396ba10 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at
kernel/qapplication.cpp:2614
#51 0x00007f4d134ab998 in QWidgetWindow::handleMouseEvent(QMouseEvent*)
(this=0x31cda30, event=0x7ffc019a31c0) at kernel/qwidgetwindow.cpp:683
#52 0x00007f4d134ae995 in QWidgetWindow::event(QEvent*) (this=0x31cda30,
event=0x7ffc019a31c0) at kernel/qwidgetwindow.cpp:300
#53 0x00007f4d13454a3f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=<optimized out>, receiver=0x31cda30, e=0x7ffc019a31c0) at
kernel/qapplication.cpp:3632
#54 0x00007f4d128fbcca in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x31cda30, event=0x7ffc019a31c0) at kernel/qcoreapplication.cpp:1064
#55 0x00007f4d12d2ad77 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
(e=0x7f4d00009740) at kernel/qguiapplication.cpp:2282
#56 0x00007f4d12d0262c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(flags=...) at kernel/qwindowsysteminterface.cpp:1169
#57 0x00007f4d1106b3f0 in userEventSourceDispatch(GSource*, GSourceFunc,
gpointer) (source=source@entry=0x1e5ce20) at qeventdispatcher_glib.cpp:74
#58 0x00007f4d14dcbe22 in g_main_dispatch (context=0x1e3bcc0) at
../glib/gmain.c:3381
#59 g_main_context_dispatch (context=0x1e3bcc0) at ../glib/gmain.c:4099
#60 0x00007f4d14dcc1b8 in g_main_context_iterate
(context=context@entry=0x1e3bcc0, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#61 0x00007f4d14dcc26f in g_main_context_iteration (context=0x1e3bcc0,
may_block=1) at ../glib/gmain.c:4240
#62 0x00007f4d1294f794 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x1e64290, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#63 0x00007f4d128fa84b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this@entry=0x7ffc019a34e0, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#64 0x00007f4d13643ec2 in QDialog::exec() (this=0x2b6da70) at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#65 0x00007f4d1580a0f2 in RuqolaMainWindow::slotConfigure() (this=0x2012e70) at
/home/nico/kde/src/ruqola/src/widgets/ruqolamainwindow.cpp:483
#66 0x00007f4d1292ff5d in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffc019a3650, r=0x2012e70, this=0x2021590) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#67 doActivate<false>(QObject*, int, void**) (sender=0x20177f0, signal_index=4,
argv=0x7ffc019a3650) at kernel/qobject.cpp:3886
#68 0x00007f4d1292993f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender@entry=0x20177f0, m=m@entry=0x7f4d1393cc20
<QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1,
argv=argv@entry=0x7ffc019a3650) at kernel/qobject.cpp:3946
#69 0x00007f4d1344ea32 in QAction::triggered(bool) (this=this@entry=0x20177f0,
_t1=<optimized out>) at .moc/moc_qaction.cpp:376
#70 0x00007f4d13451404 in QAction::activate(QAction::ActionEvent)
(this=0x20177f0, event=<optimized out>) at kernel/qaction.cpp:1161
#71 0x00007f4d135c4852 in
QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*,
QAction::ActionEvent, bool) (this=this@entry=0x270d570, causedStack=...,
action=action@entry=0x20177f0, action_e=action_e@entry=QAction::Trigger,
self=self@entry=true) at widgets/qmenu.cpp:1384
#72 0x00007f4d135cbeb1 in QMenuPrivate::activateAction(QAction*,
QAction::ActionEvent, bool) (this=0x270d570, action=0x20177f0,
action_e=QAction::Trigger, self=<optimized out>) at widgets/qmenu.cpp:1461
#73 0x00007f4d134934ae in QWidget::event(QEvent*) (this=0x2727440,
event=0x7ffc019a3b70) at kernel/qwidget.cpp:9020
#74 0x00007f4d13454a3f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=this@entry=0x1e384f0, receiver=receiver@entry=0x2727440,
e=e@entry=0x7ffc019a3b70) at kernel/qapplication.cpp:3632
#75 0x00007f4d1345bfb9 in QApplication::notify(QObject*, QEvent*)
(this=<optimized out>, receiver=0x2727440, e=0x7ffc019a3b70) at
kernel/qapplication.cpp:3076
#76 0x00007f4d128fbcca in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x2727440, event=0x7ffc019a3b70) at kernel/qcoreapplication.cpp:1064
#77 0x00007f4d1345ab50 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
(receiver=0x2727440, event=event@entry=0x7ffc019a3b70, alienWidget=0x0,
nativeWidget=0x2727440, buttonDown=buttonDown@entry=0x7f4d1396ba10
<qt_button_down>, lastMouseReceiver=..., spontaneous=true,
onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#78 0x00007f4d134ac468 in QWidgetWindow::handleMouseEvent(QMouseEvent*)
(this=0x24b1c10, event=0x7ffc019a3e20) at kernel/qwidgetwindow.cpp:580
#79 0x00007f4d134ae995 in QWidgetWindow::event(QEvent*) (this=0x24b1c10,
event=0x7ffc019a3e20) at kernel/qwidgetwindow.cpp:300
#80 0x00007f4d13454a3f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=<optimized out>, receiver=0x24b1c10, e=0x7ffc019a3e20) at
kernel/qapplication.cpp:3632
#81 0x00007f4d128fbcca in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x24b1c10, event=0x7ffc019a3e20) at kernel/qcoreapplication.cpp:1064
#82 0x00007f4d12d2ad77 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
(e=0x7f4d00008c00) at kernel/qguiapplication.cpp:2282
#83 0x00007f4d12d0262c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(flags=...) at kernel/qwindowsysteminterface.cpp:1169
#84 0x00007f4d1106b3f0 in userEventSourceDispatch(GSource*, GSourceFunc,
gpointer) (source=source@entry=0x1e5ce20) at qeventdispatcher_glib.cpp:74
#85 0x00007f4d14dcbe22 in g_main_dispatch (context=0x1e3bcc0) at
../glib/gmain.c:3381
#86 g_main_context_dispatch (context=0x1e3bcc0) at ../glib/gmain.c:4099
#87 0x00007f4d14dcc1b8 in g_main_context_iterate
(context=context@entry=0x1e3bcc0, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#88 0x00007f4d14dcc26f in g_main_context_iteration (context=0x1e3bcc0,
may_block=1) at ../glib/gmain.c:4240
#89 0x00007f4d1294f794 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x1e64290, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#90 0x00007f4d128fa84b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this@entry=0x7ffc019a4140, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#91 0x00007f4d1290249c in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#92 0x00007f4d12d1f38c in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1867
#93 0x00007f4d134549b5 in QApplication::exec() () at
kernel/qapplication.cpp:2824
#94 0x0000000000404107 in main(int, char**) (argc=<optimized out>,
argv=<optimized out>) at /home/nico/kde/src/ruqola/src/apps/widget/main.cpp:130
[Inferior 1 (process 8957) detached]

Reported using DrKonqi

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

Reply via email to