Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled commit/rollback buttons are activated when entered Menu - cause Tora crash later #134

Open
mkyral opened this issue Jun 18, 2019 · 0 comments

Comments

@mkyral
Copy link
Contributor

mkyral commented Jun 18, 2019

  1. Start Tora - commit/rollback buttons are disabled
    obrazek

  2. Open the File menu - Commit and rollback buttons are enabled now
    obrazek

  3. Close menu and click on commit or rollback button - Tora will crash

Application: tora (tora), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb99d573780 (LWP 22331))]

Thread 1 (Thread 0x7fb99d573780 (LWP 22331)):
[KCrash Handler]
#7  0x00005629910fd93b in toWorksheet::commitChanges (this=0x5629948ba7d0) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:311
#8  0x0000562990cfc942 in toMain::commandCallback(QAction*) () at /var/tmp/portage/dev-db/tora-9999/work/tora-9999/src/main/tomain.cpp:592
#9  0x0000562990bc97bc in toMain::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /var/tmp/portage/dev-db/tora-9999/work/tora-9999_build/src/main/moc_tomain.cpp:200
#10 0x00007fb9a55b690d in QMetaObject::activate(QObject*, int, int, void**) () at kernel/qobject.cpp:3795
#11 0x00007fb9a55b6cd7 in QMetaObject::activate (sender=sender@entry=0x5629940abab0, m=m@entry=0x7fb9a6c4e820 <QMenu::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffeb9ce6c90) at kernel/qobject.cpp:3648
#12 0x00007fb9a689af82 in QMenu::triggered (this=this@entry=0x5629940abab0, _t1=<optimized out>) at .moc/moc_qmenu.cpp:285
#13 0x00007fb9a68a17fc in QMenuPrivate::_q_actionTriggered() () at widgets/qmenu.cpp:1456
#14 0x00007fb9a68a7daa in QMenu::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at widgets/qmenu.h:65
#15 0x00007fb9a55b690d in QMetaObject::activate(QObject*, int, int, void**) () at kernel/qobject.cpp:3795
#16 0x00007fb9a55b6cd7 in QMetaObject::activate (sender=sender@entry=0x5629941d75f0, m=m@entry=0x7fb9a6c414a0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffeb9ce6e50) at kernel/qobject.cpp:3648
#17 0x00007fb9a6716652 in QAction::triggered (this=this@entry=0x5629941d75f0, _t1=<optimized out>) at .moc/moc_qaction.cpp:383
#18 0x00007fb9a67191c8 in QAction::activate(QAction::ActionEvent) () at kernel/qaction.cpp:1166
#19 0x00007fb9a68122cd in QAbstractButtonPrivate::click() () at widgets/qabstractbutton.cpp:397
#20 0x00007fb9a6812515 in QAbstractButton::mouseReleaseEvent (this=0x562994192850, e=0x7ffeb9ce73d0) at widgets/qabstractbutton.cpp:1011
#21 0x00007fb9a690709a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:622
#22 0x00007fb9a6761d38 in QWidget::event(QEvent*) () at kernel/qwidget.cpp:8960
#23 0x00007fb9a6907143 in QToolButton::event (this=0x562994192850, event=0x7ffeb9ce73d0) at widgets/qtoolbutton.cpp:1001
#24 0x00007fb9a671da51 in QApplicationPrivate::notify_helper (this=this@entry=0x562993da8d30, receiver=receiver@entry=0x562994192850, e=e@entry=0x7ffeb9ce73d0) at kernel/qapplication.cpp:3736
#25 0x00007fb9a67250df in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3197
#26 0x00007fb9a558af11 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at kernel/qcoreapplication.cpp:1060
#27 0x00007fb9a558b1ae in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x562994192850, event=event@entry=0x7ffeb9ce73d0) at kernel/qcoreapplication.cpp:1462
#28 0x00007fb9a6724366 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at kernel/qapplication.cpp:2683
#29 0x00007fb9a677cdd6 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/atomic_base.h:390
#30 0x00007fb9a677fea0 in QWidgetWindow::event (this=0x56299426e910, event=0x7ffeb9ce7840) at kernel/qwidgetwindow.cpp:281
#31 0x00007fb9a671da51 in QApplicationPrivate::notify_helper (this=this@entry=0x562993da8d30, receiver=receiver@entry=0x56299426e910, e=e@entry=0x7ffeb9ce7840) at kernel/qapplication.cpp:3736
#32 0x00007fb9a6724e90 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3483
#33 0x00007fb9a558af11 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at kernel/qcoreapplication.cpp:1060
#34 0x00007fb9a558b1ae in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x56299426e910, event=event@entry=0x7ffeb9ce7840) at kernel/qcoreapplication.cpp:1462
#35 0x00007fb9a598599d in QGuiApplicationPrivate::processMouseEvent (e=0x562994b09cd0) at kernel/qguiapplication.cpp:2102
#36 0x00007fb9a5986dd5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x562994b09cd0) at kernel/qguiapplication.cpp:1837
#37 0x00007fb9a596117a in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1151
#38 0x00007fb99cd4048a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#39 0x00007fb9a325e827 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#40 0x00007fb9a325ea60 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#41 0x00007fb9a325eaec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#42 0x00007fb9a55e2433 in QEventDispatcherGlib::processEvents (this=0x562993e253e0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#43 0x00007fb9a558994b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#44 0x00007fb9a5592192 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#45 0x0000562990b9326f in main () at /usr/include/qt5/QtCore/qcoreapplication.h:116
#46 0x00007fb9a4e05ecb in __libc_start_main () from /lib64/libc.so.6
#47 0x0000562990bb097a in _start () at /var/tmp/portage/dev-db/tora-9999/work/tora-9999/src/main/main.cpp:345

Expected result: Commit/rollback button stays disabled

Tora compiled from latest git sources.

@mkyral mkyral changed the title Commit/Rollback button activated when entered Menu - cause Tora crash Disabled commit/rollback buttons activated when entered Menu - cause Tora crash Jun 18, 2019
@mkyral mkyral changed the title Disabled commit/rollback buttons activated when entered Menu - cause Tora crash Disabled commit/rollback buttons are activated when entered Menu - cause Tora crash Jun 18, 2019
@mkyral mkyral changed the title Disabled commit/rollback buttons are activated when entered Menu - cause Tora crash Disabled commit/rollback buttons are activated when entered Menu - cause Tora crash later Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant