Bug 464353 - Kalzium Molecular Editor crash on run
Summary: Kalzium Molecular Editor crash on run
Status: RESOLVED DUPLICATE of bug 457191
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: 22.12.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-01-16 00:12 UTC by safocl88
Modified: 2023-03-07 14:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (6.14 KB, text/plain)
2023-01-16 12:51 UTC, Jagat Kafle
Details
New crash information added by DrKonqi (6.26 KB, text/plain)
2023-01-26 14:23 UTC, adao1003
Details
New crash information added by DrKonqi (4.36 KB, text/plain)
2023-03-07 14:44 UTC, evan.machefer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description safocl88 2023-01-16 00:12:51 UTC
Application: kalzium (22.12.1)

Qt Version: 5.15.8
Frameworks Version: 5.101.0
Operating System: Linux 6.1.3-1-1000hz x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
Running the Molecular Editor in the Kalzium causes the crash all it.
I'm using the wayland session of the plasma.

The crash can be reproduced every time.

-- Backtrace:
Application: Kalzium (kalzium), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[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  0x00007f0e752a16b3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8  0x00007f0e75251958 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9  0x00007f0e7523b53d in __GI_abort () at abort.c:79
#10 0x00007f0e7523b45c in __assert_fail_base (fmt=0x7f0e753b5a50 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f0e7708239c "m_activeMolecule != nullptr", file=0x7f0e77081ec0 "/build/avogadrolibs/src/avogadrolibs-1.97.0/avogadro/core/layermanager.cpp", line=97, function=<optimized out>) at assert.c:92
#11 0x00007f0e7524a486 in __GI___assert_fail (assertion=0x7f0e7708239c "m_activeMolecule != nullptr", file=0x7f0e77081ec0 "/build/avogadrolibs/src/avogadrolibs-1.97.0/avogadro/core/layermanager.cpp", line=97, function=0x7f0e770821c8 "static std::size_t Avogadro::Core::LayerManager::layerCount()") at assert.c:101
#12 0x00007f0e77033299 in Avogadro::Core::LayerManager::layerCount() () from /usr/lib/libAvogadroCore.so.1
#13 0x00007f0e77939600 in ?? () from /usr/lib/libAvogadroQtPlugins.so.1
#14 0x00007f0e75abdc40 in doActivate<false> (sender=0x557c3df663e0, signal_index=8, argv=0x7ffec4062970) at kernel/qobject.cpp:3935
#15 0x00007f0e7793a6f4 in ?? () from /usr/lib/libAvogadroQtPlugins.so.1
#16 0x00007f0e75abdc40 in doActivate<false> (sender=0x557c3df67880, signal_index=12, argv=0x7ffec4062a80) at kernel/qobject.cpp:3935
#17 0x00007f0e76878c56 in QComboBox::currentIndexChanged (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qcombobox.cpp:538
#18 0x00007f0e76871187 in QComboBoxPrivate::_q_emitCurrentIndexChanged (this=0x557c3df6a830, index=...) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:62
#19 0x00007f0e7687c98d in QComboBoxPrivate::setCurrentIndex (this=this@entry=0x557c3df6a830, mi=...) at widgets/qcombobox.cpp:2331
#20 0x00007f0e7687cb14 in QComboBox::setCurrentIndex (this=<optimized out>, index=0) at widgets/qcombobox.cpp:2293
#21 0x00007f0e75abdc40 in doActivate<false> (sender=0x557c3df648f0, signal_index=13, argv=0x7ffec4062cf0) at kernel/qobject.cpp:3935
#22 0x00007f0e75a460b3 in QAbstractItemModel::rowsInserted (this=this@entry=0x557c3df648f0, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:592
#23 0x00007f0e75a46217 in QAbstractItemModel::endInsertRows (this=this@entry=0x557c3df648f0) at itemmodels/qabstractitemmodel.cpp:2780
#24 0x00007f0e762a2c21 in QStandardItemModelPrivate::rowsInserted (count=1, row=<optimized out>, parent=<optimized out>, this=0x557c3df697d0) at itemmodels/qstandarditemmodel.cpp:665
#25 QStandardItemPrivate::insertRows (this=<optimized out>, row=<optimized out>, count=<optimized out>, items=...) at itemmodels/qstandarditemmodel.cpp:537
#26 0x00007f0e7687ab5c in QStandardItemModel::insertRow (aitem=<optimized out>, arow=<optimized out>, this=0x557c3df648f0) at ../../include/QtGui/../../src/gui/itemmodels/qstandarditemmodel.h:447
#27 QComboBox::insertItem (this=<optimized out>, index=0, icon=..., text=..., userData=...) at widgets/qcombobox.cpp:2444
#28 0x00007f0e77938c0f in ?? () from /usr/lib/libAvogadroQtPlugins.so.1
#29 0x00007f0e77fd293b in Avogadro::QtOpenGL::GLWidget::setMolecule(Avogadro::QtGui::Molecule*) () from /usr/lib/libAvogadroQtOpenGL.so.1
#30 0x0000557c3a23a4a4 in KalziumGLWidget::KalziumGLWidget (this=<optimized out>, parent=<optimized out>, this=<optimized out>, parent=<optimized out>) at /usr/src/debug/kalzium/kalzium-22.12.1/compoundviewer/kalziumglwidget.cpp:73
#31 0x0000557c3a23afe1 in Ui_moleculeViewerForm::setupUi (moleculeViewerForm=0x557c3dc76750, this=0x557c3df43148) at /usr/src/debug/kalzium/build/src/ui_moleculeviewerwidget.h:104
#32 MoleculeDialog::MoleculeDialog (this=<optimized out>, parent=<optimized out>, this=<optimized out>, parent=<optimized out>) at /usr/src/debug/kalzium/kalzium-22.12.1/src/tools/moleculeview.cpp:77
#33 0x0000557c3a272962 in Kalzium::slotMoleculeviewer (this=0x557c3c1348e0) at /usr/src/debug/kalzium/kalzium-22.12.1/src/kalzium.cpp:356
#34 0x00007f0e75abda91 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#35 doActivate<false> (sender=0x557c3da34ad0, signal_index=4, argv=0x7ffec40632e0) at kernel/qobject.cpp:3923
#36 0x00007f0e7676bec7 in QAction::triggered (this=this@entry=0x557c3da34ad0, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#37 0x00007f0e767718c7 in QAction::activate (this=0x557c3da34ad0, event=<optimized out>) at kernel/qaction.cpp:1161
#38 0x00007f0e7686050e in QAbstractButtonPrivate::click (this=0x557c3dabee60) at widgets/qabstractbutton.cpp:399
#39 0x00007f0e76860710 in QAbstractButton::mouseReleaseEvent (this=0x557c3dadf670, e=0x7ffec4063870) at widgets/qabstractbutton.cpp:1045
#40 0x00007f0e7695369f in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:622
#41 0x00007f0e767af837 in QWidget::event (this=0x557c3dadf670, event=0x7ffec4063870) at kernel/qwidget.cpp:8671
#42 0x00007f0e76778b5c in QApplicationPrivate::notify_helper (this=this@entry=0x557c3bb257f0, receiver=receiver@entry=0x557c3dadf670, e=e@entry=0x7ffec4063870) at kernel/qapplication.cpp:3640
#43 0x00007f0e7677e379 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7ffec4063870) at kernel/qapplication.cpp:3084
#44 0x00007f0e75a8cf98 in QCoreApplication::notifyInternal2 (receiver=0x557c3dadf670, event=0x7ffec4063870) at kernel/qcoreapplication.cpp:1064
#45 0x00007f0e7677c377 in QApplicationPrivate::sendMouseEvent (receiver=0x557c3dadf670, event=0x7ffec4063870, alienWidget=<optimized out>, nativeWidget=0x557c3c1348e0, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#46 0x00007f0e767cd505 in QWidgetWindow::handleMouseEvent (this=0x557c3daca460, event=0x7ffec4063bd0) at kernel/qwidgetwindow.cpp:683
#47 0x00007f0e767cf2ae in QWidgetWindow::event (this=0x557c3daca460, event=0x7ffec4063bd0) at kernel/qwidgetwindow.cpp:300
#48 0x00007f0e76778b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x557c3daca460, e=0x7ffec4063bd0) at kernel/qapplication.cpp:3640
#49 0x00007f0e75a8cf98 in QCoreApplication::notifyInternal2 (receiver=0x557c3daca460, event=0x7ffec4063bd0) at kernel/qcoreapplication.cpp:1064
#50 0x00007f0e75f3f03c in QGuiApplicationPrivate::processMouseEvent (e=0x7f0e58008270) at kernel/qguiapplication.cpp:2285
#51 0x00007f0e75f28885 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:1169
#52 0x00007f0e6f1fba55 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib/libQt5WaylandClient.so.5
#53 0x00007f0e71f1687b in g_main_dispatch (context=0x7f0e60004f70) at ../glib/glib/gmain.c:3454
#54 g_main_context_dispatch (context=0x7f0e60004f70) at ../glib/glib/gmain.c:4172
#55 0x00007f0e71f6dc89 in g_main_context_iterate.constprop.0 (context=0x7f0e60004f70, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#56 0x00007f0e71f15132 in g_main_context_iteration (context=0x7f0e60004f70, may_block=1) at ../glib/glib/gmain.c:4313
#57 0x00007f0e75ad7c8c in QEventDispatcherGlib::processEvents (this=0x557c3c04d0c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#58 0x00007f0e75a8574c in QEventLoop::exec (this=0x7ffec4063f70, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#59 0x00007f0e75a90269 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#60 0x00007f0e75f39fe2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#61 0x00007f0e76776f2a in QApplication::exec () at kernel/qapplication.cpp:2832
#62 0x0000557c3a22b0ce in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kalzium/kalzium-22.12.1/src/main.cpp:136
[Inferior 1 (process 558705) detached]

Reported using DrKonqi
Comment 1 safocl88 2023-01-16 00:38:35 UTC
I think what the code sample in the crash info isn't good:
     std::unique_ptr<char []>  -- why used unique_ptr with c-stile array (on stack) here?
Comment 2 Antonio Rojas 2023-01-16 08:06:27 UTC

*** This bug has been marked as a duplicate of bug 457191 ***
Comment 3 Jagat Kafle 2023-01-16 12:51:03 UTC
Created attachment 155350 [details]
New crash information added by DrKonqi

kalzium (22.08.1) using Qt 5.15.6

The application crashes when clicking the Molecular Editor.

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f99f5c3bc46 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f99f5c227fc in __GI_abort () at ./stdlib/abort.c:79
Comment 4 adao1003 2023-01-26 14:23:37 UTC
Created attachment 155666 [details]
New crash information added by DrKonqi

kalzium (22.12.1) using Qt 5.15.8

Molecues editor crash every time.

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#5  0x00007f196e8a9d2f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  0x00007f196e85aef2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#7  0x00007f196e845472 in __GI_abort () at ./stdlib/abort.c:79
#8  0x00007f196e845395 in __assert_fail_base (fmt=0x7f196e9b9a70 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f19703a8090 "m_activeMolecule != nullptr", file=0x7f19703a8148 "./avogadro/core/layermanager.cpp", line=97, function=<optimized out>) at ./assert/assert.c:92
Comment 5 evan.machefer 2023-03-07 14:44:17 UTC
Created attachment 157086 [details]
New crash information added by DrKonqi

kalzium (22.12.2) using Qt 5.15.8

Each time I try to use the molecular editor the application crash

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139906385485504) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=139906385485504) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=139906385485504, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f3e83e42476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f3e83e287f3 in __GI_abort () at ./stdlib/abort.c:79