Bug 400117 - Crashes on exit [~ChoqokTabBar → ChoqokTabBar::removePage]
Summary: Crashes on exit [~ChoqokTabBar → ChoqokTabBar::removePage]
Status: RESOLVED FIXED
Alias: None
Product: choqok
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: HI crash
Target Milestone: ---
Assignee: Mehrdad Momeny
URL:
Keywords: drkonqi
: 406100 407919 417191 417260 420155 420358 433759 441060 473352 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-21 15:50 UTC by Mathias Homann
Modified: 2023-08-16 21:33 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.96 KB, text/plain)
2018-10-21 22:20 UTC, Mathias Homann
Details
New crash information added by DrKonqi (7.97 KB, text/plain)
2018-11-12 22:51 UTC, Mathias Homann
Details
New crash information added by DrKonqi (7.89 KB, text/plain)
2018-11-29 22:17 UTC, Mathias Homann
Details
New crash information added by DrKonqi (6.49 KB, text/plain)
2019-08-16 13:53 UTC, Mathias Homann
Details
New crash information added by DrKonqi (8.60 KB, text/plain)
2019-09-05 05:35 UTC, Mathias Homann
Details
I get the crash on quitting on Fedora 31 with 5.13.2. Compiled it form today's git. (22.30 KB, text/plain)
2020-02-07 14:08 UTC, Öyvind Saether
Details
New crash information added by DrKonqi (12.17 KB, text/plain)
2020-07-28 00:49 UTC, Gerald Cox
Details
New crash information added by DrKonqi (6.21 KB, text/plain)
2021-11-28 12:32 UTC, Mathias Homann
Details
New crash information added by DrKonqi (9.42 KB, text/plain)
2022-06-20 06:06 UTC, Mathias Homann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Homann 2018-10-21 15:50:07 UTC
Application: choqok (1.6.0)

Qt Version: 5.11.2
Frameworks Version: 5.51.0
Operating System: Linux 4.12.14-lp150.12.22-default x86_64
Distribution: "openSUSE Leap 15.0"

-- Information about the crash:
I quit choqok with ctrl-q and it crashed. reproducilble on a second computer as well.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Choqok (choqok), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3396ff6900 (LWP 7809))]

Thread 4 (Thread 0x7f336a4c9700 (LWP 7961)):
#0  0x00007f339351c08b in poll () from /lib64/libc.so.6
#1  0x00007f338bf1f109 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f338bf1f21c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f3393e523cb in QEventDispatcherGlib::processEvents (this=0x7f3364000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f3393df670a in QEventLoop::exec (this=this@entry=0x7f336a4c8cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#5  0x00007f3393c21aaa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:525
#6  0x00007f3393c2c9cb in QThreadPrivate::start (arg=0x55f71bbc6200) at thread/qthread_unix.cpp:367
#7  0x00007f338e279559 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f339352682f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f337d8fb700 (LWP 7820)):
#0  0x00007f3393e522c3 in postEventSourcePrepare (s=0x7f3370004b90, timeout=0x7f337d8faab4) at kernel/qeventdispatcher_glib.cpp:251
#1  0x00007f338bf1e668 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f338bf1f03b in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f338bf1f21c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f3393e523cb in QEventDispatcherGlib::processEvents (this=0x7f3370000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f3393df670a in QEventLoop::exec (this=this@entry=0x7f337d8fac80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f3393c21aaa in QThread::exec (this=this@entry=0x7f3392c33d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007f33929bbb75 in QDBusConnectionManager::run (this=0x7f3392c33d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f3393c2c9cb in QThreadPrivate::start (arg=0x7f3392c33d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f338e279559 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f339352682f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f33806c0700 (LWP 7815)):
#0  0x00007f339351c08b in poll () from /lib64/libc.so.6
#1  0x00007f3389a5e387 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f3389a5ffaa in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f338368fbd9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f3393c2c9cb in QThreadPrivate::start (arg=0x55f71b4afc00) at thread/qthread_unix.cpp:367
#5  0x00007f338e279559 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f339352682f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3396ff6900 (LWP 7809)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f3396a09611 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /usr/lib64/libchoqok.so.1
#8  0x00007f3393e2750f in QtPrivate::QSlotObjectBase::call (a=0x7ffde06cff80, r=0x55f71d4e2590, this=0x55f71e329060) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#9  QMetaObject::activate (sender=0x55f71dec8b80, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffde06cff80) at kernel/qobject.cpp:3754
#10 0x00007f3393e27ac7 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f3394274a20 <QObject::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffde06cff80) at kernel/qobject.cpp:3633
#11 0x00007f3393e27b6f in QObject::destroyed (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qobject.cpp:214
#12 0x00007f3394e6662b in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007f336a9fad6d in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
#14 0x00007f3393e24fcb in QObjectPrivate::deleteChildren (this=0x55f71d4cf4d0) at kernel/qobject.cpp:1997
#15 0x00007f3394e6656c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007f3394fccdb9 in QStackedWidget::~QStackedWidget() () from /usr/lib64/libQt5Widgets.so.5
#17 0x00007f3393e24fcb in QObjectPrivate::deleteChildren (this=0x55f71d4e38e0) at kernel/qobject.cpp:1997
#18 0x00007f3394e6656c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007f3396a099a2 in Choqok::UI::ChoqokTabBar::~ChoqokTabBar() () from /usr/lib64/libchoqok.so.1
#20 0x00007f3396a09a89 in Choqok::UI::ChoqokTabBar::~ChoqokTabBar() () from /usr/lib64/libchoqok.so.1
#21 0x00007f3393e24fcb in QObjectPrivate::deleteChildren (this=0x55f71d4e07b0) at kernel/qobject.cpp:1997
#22 0x00007f3394e6656c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007f33969dda99 in Choqok::UI::MicroBlogWidget::~MicroBlogWidget() () from /usr/lib64/libchoqok.so.1
#24 0x00007f336a744399 in TwitterApiMicroBlogWidget::~TwitterApiMicroBlogWidget() () from /usr/lib64/libtwitterapihelper.so.1
#25 0x00007f3393e24fcb in QObjectPrivate::deleteChildren (this=0x55f71b4ffcd0) at kernel/qobject.cpp:1997
#26 0x00007f3394e6656c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#27 0x00007f3394fccdb9 in QStackedWidget::~QStackedWidget() () from /usr/lib64/libQt5Widgets.so.5
#28 0x00007f3393e24fcb in QObjectPrivate::deleteChildren (this=0x55f71b5431a0) at kernel/qobject.cpp:1997
#29 0x00007f3394e6656c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#30 0x00007f3394fedcc9 in QTabWidget::~QTabWidget() () from /usr/lib64/libQt5Widgets.so.5
#31 0x00007f3393e24fcb in QObjectPrivate::deleteChildren (this=0x55f71b519260) at kernel/qobject.cpp:1997
#32 0x00007f3394e6656c in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#33 0x00007f339625a64d in KMainWindow::~KMainWindow() () from /usr/lib64/libKF5XmlGui.so.5
#34 0x000055f71a5f22d3 in MainWindow::~MainWindow() ()
#35 0x000055f71a5f2339 in MainWindow::~MainWindow() ()
#36 0x00007f3393e27f80 in QObject::event (this=0x55f71b500460, e=<optimized out>) at kernel/qobject.cpp:1242
#37 0x00007f3394e6b333 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#38 0x00007f3394f72940 in QMainWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#39 0x00007f339625caa7 in KMainWindow::event(QEvent*) () from /usr/lib64/libKF5XmlGui.so.5
#40 0x00007f33962a18e5 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libKF5XmlGui.so.5
#41 0x00007f3394e2bf9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007f3394e3357f in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#43 0x00007f3393df83d8 in QCoreApplication::notifyInternal2 (receiver=0x55f71b500460, event=event@entry=0x55f71c7e8480) at kernel/qcoreapplication.cpp:1048
#44 0x00007f3393dfaf1d in QCoreApplication::sendEvent (event=0x55f71c7e8480, receiver=<optimized out>) at kernel/qcoreapplication.h:234
#45 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=52, data=0x55f71b42b5d0) at kernel/qcoreapplication.cpp:1745
#46 0x00007f3393dfb4d8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=52) at kernel/qcoreapplication.cpp:1599
#47 0x00007f3393dfb521 in QCoreApplicationPrivate::execCleanup (this=<optimized out>) at kernel/qcoreapplication.cpp:1358
#48 0x00007f3393dff8d9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1340
#49 0x000055f71a5f0743 in main ()
[Inferior 1 (process 7809) detached]

Reported using DrKonqi
Comment 1 Mathias Homann 2018-10-21 22:20:15 UTC
Created attachment 115815 [details]
New crash information added by DrKonqi

choqok (1.6.0) using Qt 5.11.2

- What I was doing when the application crashed:
	

same thing again: quit choqok with ctrl-q and it crashed.

-- Backtrace (Reduced):
#7  0x00007f17c38ad611 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /usr/lib64/libchoqok.so.1
#8  0x00007f17c0ccb50f in QtPrivate::QSlotObjectBase::call (a=0x7ffcc08b8460, r=0x556f8a0b2c60, this=0x556f8a75a640) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
[...]
#11 0x00007f17c0ccbb6f in QObject::destroyed (this=this@entry=0x556f8a72db40, _t1=<optimized out>, _t1@entry=0x556f8a72db40) at .moc/moc_qobject.cpp:214
#12 0x00007f17c1d0a62b in QWidget::~QWidget (this=0x556f8a72db40, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1671
#13 0x00007f1797c57d6d in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
Comment 2 Mathias Homann 2018-11-12 22:51:37 UTC
Created attachment 116270 [details]
New crash information added by DrKonqi

choqok (1.6.0) using Qt 5.11.2

- What I was doing when the application crashed:

still the same - crash on quit. no peculiar behavior prior to the crash.

-- Backtrace (Reduced):
#7  0x00007fbfaf2fc611 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /usr/lib64/libchoqok.so.1
#8  0x00007fbfac71a50f in QtPrivate::QSlotObjectBase::call (a=0x7fff563c5520, r=0x555817347e40, this=0x555817d20250) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
[...]
#11 0x00007fbfac71ab6f in QObject::destroyed (this=this@entry=0x555817d19150, _t1=<optimized out>, _t1@entry=0x555817d19150) at .moc/moc_qobject.cpp:214
#12 0x00007fbfad75962b in QWidget::~QWidget (this=0x555817d19150, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1671
#13 0x00007fbf83697d6d in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
Comment 3 Mathias Homann 2018-11-29 22:17:59 UTC
Created attachment 116574 [details]
New crash information added by DrKonqi

choqok (1.6.0) using Qt 5.11.2

- What I was doing when the application crashed:

and yet another crash on quit. I don't know what else to add here., same as the rest

-- Backtrace (Reduced):
#7  0x00007f7066b3b611 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /usr/lib64/libchoqok.so.1
#8  0x00007f7063f5250f in QtPrivate::QSlotObjectBase::call (a=0x7ffda782e300, r=0x557c4969c0e0, this=0x557c49e7df20) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
[...]
#11 0x00007f7063f52b6f in QObject::destroyed (this=this@entry=0x557c49e51790, _t1=<optimized out>, _t1@entry=0x557c49e51790) at .moc/moc_qobject.cpp:214
#12 0x00007f7064f9562b in QWidget::~QWidget (this=0x557c49e51790, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1671
#13 0x00007f703aeb1d6d in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
Comment 4 Christoph Feck 2019-04-25 18:18:24 UTC
*** Bug 406100 has been marked as a duplicate of this bug. ***
Comment 5 Brandon Taylor 2019-05-09 03:00:52 UTC
Upon running a version of Choqok compiled from source on GitHub, I can reproduce the bug on KDE neon in addition to bug reports filed relating to crashes when quitting Choqok on openSUSE Leap. However, the problem does not occur on quitting Choqok -- compiled from the exact same source code as before -- on Manjaro Linux. I can therefore hypothesize that this may not be a problem with Choqok itself; but rather, with some components of KDE implementations on openSUSE and KDE neon.
Comment 6 avlas 2019-06-12 20:12:26 UTC
Same thing here. Also, https://bugs.kde.org/show_bug.cgi?id=407919 in Arch seems a duplicate of this one.
Comment 7 Christoph Feck 2019-06-14 10:03:18 UTC
*** Bug 407919 has been marked as a duplicate of this bug. ***
Comment 8 André Fettouhi 2019-07-31 11:30:07 UTC
If isn't Choqok itself that it causing the crash upon exit, what implementation on Arch etc. is creating it. This still happens on the latest git. On a side note I saw a change in changelog. Is there a version 1.7.0 now?
Comment 9 Mathias Homann 2019-08-16 13:53:58 UTC
Created attachment 122176 [details]
New crash information added by DrKonqi

choqok (1.6.0) using Qt 5.13.0

- What I was doing when the application crashed:

same as usual: quit choqok.



ceterum censeo carthaginem esse delendam.

-- Backtrace (Reduced):
#6  0x00007f5e49ec60c0 in QListData::shared_null () from /usr/lib64/libQt5Core.so.5
#7  0x00007f5e4ca758e1 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /usr/lib64/libchoqok.so.1
[...]
#9  0x00007f5e49e08a4f in QObject::destroyed(QObject*) () from /usr/lib64/libQt5Core.so.5
#10 0x00007f5e4aea85b3 in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007f5e20d4434d in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
Comment 10 Mathias Homann 2019-09-05 05:35:30 UTC
Created attachment 122497 [details]
New crash information added by DrKonqi

choqok (1.6.0) using Qt 5.13.0

latest build from git still crashes on exit.

-- Backtrace (Reduced):
#7  0x00007f60e1e378e1 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /usr/lib64/libchoqok.so.1
#8  0x00007f60df1ca3ff in QtPrivate::QSlotObjectBase::call (a=0x7ffffcd7c4c0, r=0x55cbcde1b080, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
[...]
#11 0x00007f60df1caa4f in QObject::destroyed (this=this@entry=0x55cbce9d12b0, _t1=<optimized out>, _t1@entry=0x55cbce9d12b0) at .moc/moc_qobject.cpp:219
#12 0x00007f60e026a5b3 in QWidget::~QWidget (this=0x55cbce9d12b0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1674
#13 0x00007f60b60cf34d in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
Comment 11 Andrea Scarpino 2020-02-05 23:53:12 UTC
*** Bug 417191 has been marked as a duplicate of this bug. ***
Comment 12 Andrea Scarpino 2020-02-07 13:18:29 UTC
*** Bug 417260 has been marked as a duplicate of this bug. ***
Comment 13 Öyvind Saether 2020-02-07 14:08:47 UTC
Created attachment 125738 [details]
I get the crash on quitting on Fedora 31 with 5.13.2. Compiled it form today's git.

line 103 in main.cpp is return app.exec(); so it's bizarre that it would crash doing that.
Comment 14 Christoph Feck 2020-02-07 17:58:05 UTC
app.exec() runs the application, so it will almost always crash in there. The actual reason for the crash is probably a double widget deletion, or trying to act on an already deleted widget.
Comment 15 Christoph Feck 2020-05-06 20:35:41 UTC
*** Bug 420155 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Feck 2020-05-14 02:44:55 UTC
*** Bug 420358 has been marked as a duplicate of this bug. ***
Comment 17 Gerald Cox 2020-07-28 00:49:07 UTC
Created attachment 130447 [details]
New crash information added by DrKonqi

choqok (1.7.0) using Qt 5.14.2

- What I was doing when the application crashed:

Closed application from system tray.  Information currently in the report is from 1.6.0 - this information is from 1.7.0.

-- Backtrace (Reduced):
#5  0x00007fd8c1aca675 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /lib64/libchoqok.so.1
#6  0x00007fd8c0711f76 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#7  0x00007fd8c070c8b3 in QObject::destroyed(QObject*) () from /lib64/libQt5Core.so.5
#8  0x00007fd8c10c6d83 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#9  0x00007fd8c1ab654d in Choqok::UI::TimelineWidget::~TimelineWidget() () from /lib64/libchoqok.so.1
Comment 18 Oron Peled 2020-11-13 00:45:02 UTC
Qt Version: 5.15.1
Frameworks Version: 5.75.0
Operating System: Linux 5.8.18-300.fc33.x86_64 x86_64
Windowing system: X11
Distribution: Fedora 33 (Thirty Three)

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
Application: Choqok (choqok), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f65af28daae in QStackedWidget::indexOf(QWidget*) const () from /lib64/libQt5Widgets.so.5
#5  0x00007f65afadf855 in Choqok::UI::ChoqokTabBar::removePage(QWidget*) () from /lib64/libchoqok.so.1
#6  0x00007f65ae71c266 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#7  0x00007f65ae716aef in QObject::destroyed(QObject*) () from /lib64/libQt5Core.so.5
#8  0x00007f65af120a03 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#9  0x00007f659020ba11 in TwitterTimelineWidget::~TwitterTimelineWidget() () from /usr/lib64/qt5/plugins/choqok_twitter.so
#10 0x00007f65ae714a4a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#11 0x00007f65af120746 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#12 0x00007f65af28d789 in QStackedWidget::~QStackedWidget() () from /lib64/libQt5Widgets.so.5
#13 0x00007f65ae714a4a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#14 0x00007f65af120746 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#15 0x00007f65afae301d in Choqok::UI::ChoqokTabBar::~ChoqokTabBar() () from /lib64/libchoqok.so.1
#16 0x00007f65ae714a4a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#17 0x00007f65af120746 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#18 0x00007f659018311d in TwitterApiMicroBlogWidget::~TwitterApiMicroBlogWidget() () from /lib64/libtwitterapihelper.so.1
#19 0x00007f65ae714a4a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#20 0x00007f65af120746 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#21 0x00007f65af28d789 in QStackedWidget::~QStackedWidget() () from /lib64/libQt5Widgets.so.5
#22 0x00007f65ae714a4a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#23 0x00007f65af120746 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#24 0x00007f65af2afb29 in QTabWidget::~QTabWidget() () from /lib64/libQt5Widgets.so.5
#25 0x00007f65ae714a4a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#26 0x00007f65af120746 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#27 0x000055afd68a325f in MainWindow::~MainWindow() ()
#28 0x000055afd68a332d in MainWindow::~MainWindow() ()
#29 0x00007f65ae714c2d in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#30 0x00007f65af9a5019 in KXmlGuiWindow::event(QEvent*) () from /lib64/libKF5XmlGui.so.5
#31 0x00007f65af0e515f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#32 0x00007f65ae6edbf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#33 0x00007f65ae6f0837 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#34 0x00007f65ae6f4038 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#35 0x000055afd68a1cfa in main ()
[Inferior 1 (process 7489) detached]
Comment 19 Bug Janitor Service 2021-01-29 17:59:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/choqok/-/merge_requests/10
Comment 20 Antonio Rojas 2021-02-28 20:58:08 UTC
*** Bug 433759 has been marked as a duplicate of this bug. ***
Comment 21 Frédéric Brière 2021-08-16 23:42:22 UTC
*** Bug 441060 has been marked as a duplicate of this bug. ***
Comment 22 Mathias Homann 2021-11-28 12:32:28 UTC
Created attachment 144033 [details]
New crash information added by DrKonqi

choqok (1.7.0) using Qt 5.15.2

- What I was doing when the application crashed:

quit chokoq with ctrl-q. this reproducibly happens EVERY time chocoq is closed.

-- Backtrace (Reduced):
#6  QStackedWidget::indexOf (this=0x4fcd4efb80a92cdd, widget=0x55e3864a31e0) at widgets/qstackedwidget.h:86
#7  0x00007f591f8e5ff1 in Choqok::UI::ChoqokTabBar::removePage (this=0x55e3843f8030, widget=<optimized out>) at /usr/src/debug/choqok-1.7.0-3.2.x86_64/libchoqok/ui/choqoktabbar.cpp:411
#8  0x00007f591e318043 in QtPrivate::QSlotObjectBase::call (a=0x7ffe4251b2c0, r=0x55e3843f8030, this=0x55e3864a9e20) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false> (sender=0x55e3864a31e0, signal_index=0, argv=0x7ffe4251b2c0) at kernel/qobject.cpp:3886
[...]
#11 0x00007f591e3115bf in QObject::destroyed (this=this@entry=0x55e3864a31e0, _t1=<optimized out>, _t1@entry=0x55e3864a31e0) at .moc/moc_qobject.cpp:219
Comment 23 Justin Zobel 2022-05-15 02:18:09 UTC
I can't replicate this with Choqok 1.7.0 on Fedora 36. Can everyone please test and confirm if the crash is still reproducible?

Operating System: Fedora Linux 36
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.6-300.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Comment 24 Mathias Homann 2022-05-15 07:26:16 UTC
Still crashing here.
Operating System: openSUSE Tumbleweed 20220512
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2
Kernel Version: 5.17.5-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4771 CPU @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1050/PCIe/SSE2
Comment 25 Antonio Rojas 2022-05-15 08:04:08 UTC
Yes, this is still an issue
Comment 26 Gerald Cox 2022-05-16 14:49:41 UTC
(In reply to Justin Zobel from comment #23)
> I can't replicate this with Choqok 1.7.0 on Fedora 36. Can everyone please
> test and confirm if the crash is still reproducible?
> 
> Operating System: Fedora Linux 36
> KDE Plasma Version: 5.24.5
> KDE Frameworks Version: 5.93.0
> Qt Version: 5.15.3
> Kernel Version: 5.17.6-300.fc36.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
> Memory: 31.3 GiB of RAM
> Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2

Yes, it is still occurring, but now not every time.  I guess you could say that is an improvement, but still not fixed.

             .',;::::;,'.              
         .';:cccccccccccc:;,.            ------------- 
      .;cccccccccccccccccccccc;.         OS: Fedora Linux 36 (Workstation Edition) x86_64 
    .:cccccccccccccccccccccccccc:.       Host: 80K4 Lenovo ideapad 500-15ACZ 
  .;ccccccccccccc;.:dddl:.;ccccccc;.     Kernel: 5.17.7-300.fc36.x86_64 
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.    Uptime: 2 days, 48 mins 
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:.   Packages: 3170 (rpm) 
,cccccccccccccc;MMM.;cc;;WW::cccccccc,   Shell: bash 5.1.16 
:cccccccccccccc;MMM.;cccccccccccccccc:   Resolution: 1920x1080 
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc:   DE: Plasma 5.24.5 
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc;   WM: kwin 
ccccc:XM0';cccc;MMM.;cccccccccccccccc'   Theme: Adwaita [GTK3] 
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;    Icons: breeze [GTK2], Adwaita [GTK3] 
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;     Terminal: konsole 
cccccc;dNMWXXXWM0::cccccccccccccc:,      CPU: AMD A10-8700P Radeon R6 4C+6G (4) @ 1.800GHz 
cccccccc;.:odl:.;cccccccccccccc:,.       GPU: AMD ATI Radeon R5/R6/R7 Graphics 
:cccccccccccccccccccccccccccc:'.         Memory: 4662MiB / 7469MiB 
.:cccccccccccccccccccccc:;,..
  '::cccccccccccccc::;,.
Comment 27 Frédéric Brière 2022-06-19 16:03:14 UTC
(In reply to Justin Zobel from comment #23)
> I can't replicate this with Choqok 1.7.0 on Fedora 36. Can everyone please
> test and confirm if the crash is still reproducible?

This bug involves calling a method on a destroyed object, so whether or not it will trigger a crash may depend on random factors.

I submitted a draft merge request fixing this a long time ago, but kinda forgot about it and left it to rot since then.  My bad.  It should be good to go now.
Comment 28 Mathias Homann 2022-06-19 20:33:08 UTC
(In reply to Frédéric Brière from comment #27)
> (In reply to Justin Zobel from comment #23)
> > I can't replicate this with Choqok 1.7.0 on Fedora 36. Can everyone please
> > test and confirm if the crash is still reproducible?
> 
> This bug involves calling a method on a destroyed object, so whether or not
> it will trigger a crash may depend on random factors.
> 
> I submitted a draft merge request fixing this a long time ago, but kinda
> forgot about it and left it to rot since then.  My bad.  It should be good
> to go now.

choqok 1.7.0, plasma 5.25, openSUSE Tumbleweed - still crashing.
Comment 29 Gerald Cox 2022-06-19 21:04:29 UTC
(In reply to Mathias Homann from comment #28)
> (In reply to Frédéric Brière from comment #27)
> > (In reply to Justin Zobel from comment #23)
> > > I can't replicate this with Choqok 1.7.0 on Fedora 36. Can everyone please
> > > test and confirm if the crash is still reproducible?
> > 
> > This bug involves calling a method on a destroyed object, so whether or not
> > it will trigger a crash may depend on random factors.
> > 
> > I submitted a draft merge request fixing this a long time ago, but kinda
> > forgot about it and left it to rot since then.  My bad.  It should be good
> > to go now.
> 
> choqok 1.7.0, plasma 5.25, openSUSE Tumbleweed - still crashing.

I've looked here:  https://github.com/KDE/choqok
and the fix hasn't been merged as far as I can tell.  It won't be packaged until the patch is merged.
Comment 30 Frédéric Brière 2022-06-19 21:35:42 UTC
(In reply to Frédéric Brière from comment #27)
> I submitted a draft merge request fixing this a long time ago, but kinda
> forgot about it and left it to rot since then.  My bad.  It should be good
> to go now.

Man, that was some really ambiguous phrasing on my part.  I meant to say that the *patch* is no longer stuck and is now ready for review.  (So, no more need for the usual "can you still reproduce it and if so on what OS?" song and dance.)  Sorry for any confusion this has caused.
Comment 31 Gerald Cox 2022-06-20 03:28:37 UTC
(In reply to Frédéric Brière from comment #30)
> (In reply to Frédéric Brière from comment #27)
> > I submitted a draft merge request fixing this a long time ago, but kinda
> > forgot about it and left it to rot since then.  My bad.  It should be good
> > to go now.
> 
> Man, that was some really ambiguous phrasing on my part.  I meant to say
> that the *patch* is no longer stuck and is now ready for review.  (So, no
> more need for the usual "can you still reproduce it and if so on what OS?"
> song and dance.)  Sorry for any confusion this has caused.

Thanks for the update.  I've tested and it resolves the crash issue!  

Hopefully, they will be merged quickly, but just in case they aren't, I've gone ahead and applied the patches for Fedora 37, Fedora 36 and Fedora 35; and am in the process of getting them pushed to the appropriate test repositories.  In the meantime, if someone wants to use before that happens, you can download them directory from Fedora Koji here:  

https://koji.fedoraproject.org/koji/packageinfo?packageID=8123

People have been waiting for almost 4 years to get this fixed, I didn't want them to have to wait any longer.  ;-)
Comment 32 Mathias Homann 2022-06-20 06:06:50 UTC
Created attachment 149940 [details]
New crash information added by DrKonqi

choqok (1.7.0) using Qt 5.15.2

I have built rpms for openSUSE with those two patches, and I'm still getting a crash on exit every time I try. Backtrace's attached.

-- Backtrace (Reduced):
#5  0x00007f6a60712b3f in QtPrivate::QSlotObjectBase::call (a=0x7ffecaee5ee0, r=0x56220171b420, this=0x562201c178d0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#6  doActivate<false> (sender=0x56220171b420, signal_index=7, argv=0x7ffecaee5ee0) at kernel/qobject.cpp:3886
#7  0x00007f6a60712b6c in doActivate<false> (sender=0x562201a0c930, signal_index=3, argv=0x7ffecaee5fa0) at kernel/qobject.cpp:3898
#8  0x00007f6a6159ef83 in QWidgetTextControl::qt_metacall (this=0x562201a0c930, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffecaee6090) at .moc/moc_qwidgettextcontrol_p.cpp:489
#9  0x00007f6a607128aa in doActivate<false> (sender=0x562201a0c880, signal_index=4, argv=0x7ffecaee6090) at kernel/qobject.cpp:3912
Comment 33 Frédéric Brière 2022-06-20 09:41:38 UTC
(In reply to Mathias Homann from comment #32)
> I have built rpms for openSUSE with those two patches, and I'm still getting
> a crash on exit every time I try. Backtrace's attached.

Despite what it looks like, this appears to be a different bug.  Could you file a separate issue for this one?  Thanks!
Comment 34 Mathias Homann 2022-06-20 10:34:20 UTC
(In reply to Frédéric Brière from comment #33)
> (In reply to Mathias Homann from comment #32)
> > I have built rpms for openSUSE with those two patches, and I'm still getting
> > a crash on exit every time I try. Backtrace's attached.
> 
> Despite what it looks like, this appears to be a different bug.  Could you
> file a separate issue for this one?  Thanks!

done that: https://bugs.kde.org/show_bug.cgi?id=455644
Comment 35 Andrea Scarpino 2022-06-21 14:20:25 UTC
Git commit de3801bb52f4d4ee3ad3cbaa7f8704d0013881f3 by Andrea Scarpino, on behalf of Frédéric Brière.
Committed on 21/06/2022 at 14:16.
Pushed by scarpino into branch 'master'.

Disconnect destroyed() signal from all tab widgets in ChoqokTabBar dtor

Because the QWidget dtor will delete its children first, it is the
responsability of any subclass to disconnect any signal that might be
emitted as a result of a child's destruction.  Otherwise, that signal
could end up attempting to invoke a method on the now-destroyed parent.

The ChoqokTabBar dtor must therefore disconnect the destroyed() signal
from all children of its own QStackedWidget.

M  +5    -0    libchoqok/ui/choqoktabbar.cpp

https://invent.kde.org/network/choqok/commit/de3801bb52f4d4ee3ad3cbaa7f8704d0013881f3
Comment 36 Frédéric Brière 2023-08-16 20:45:15 UTC
*** Bug 473352 has been marked as a duplicate of this bug. ***