Bug 469870

Summary: KStars crashed when setting up a new optical train
Product: [Applications] kstars Reporter: Charles <kennedy.charles.e>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: crash CC: james.ytedmonds
Priority: NOR Keywords: drkonqi
Version First Reported In: 3.6.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 3.6.5
Sentry Crash Report:

Description Charles 2023-05-16 21:04:50 UTC
Application: kstars (3.6.4 Stable)

Qt Version: 5.15.8
Frameworks Version: 5.104.0
Operating System: Linux 6.2.0-20-generic x86_64
Windowing System: X11
Distribution: Ubuntu 23.04
DrKonqi: 5.27.4 [KCrashBackend]

-- Information about the crash:
I was adding a telescope and stuff into the optical train window when it just crashed.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KStars (kstars), signal: Segmentation fault

[KCrash Handler]
#4  0x000056472e30fc54 in Ekos::OpticalTrainManager::addOpticalTrain (this=this@entry=0x564736246b80, main=main@entry=false, name=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:301
#5  0x000056472e312722 in operator() (__closure=0x56473a314800) at /usr/src/kstars-bleeding-6:3.6.4+202304120910~ubuntu23.04.1/kstars/ekos/auxiliary/opticaltrainmanager.cpp:139
#6  QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Ekos::OpticalTrainManager::OpticalTrainManager()::<lambda()> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#7  QtPrivate::Functor<Ekos::OpticalTrainManager::OpticalTrainManager()::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#8  QtPrivate::QFunctorSlotObject<Ekos::OpticalTrainManager::OpticalTrainManager()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=0x56473a3147f0, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#9  0x00007f0f022f39af in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f0f030604a6 in QAbstractButton::clicked(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f0f0306071e in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f0f0306235c in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f0f0306257b in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f0f02faec28 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f0f02f6bf92 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f0f02f74612 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f0f022bae38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f0f02f72712 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f0f02fc81cc in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f0f02fcb590 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f0f02f6bf92 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f0f022bae38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f0f0274240d in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#24 0x00007f0f027164bc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007f0efc6fa54e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#26 0x00007f0f015f249d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f0f0164d178 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f0f015f11b0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f0f02314e7a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f0f022b97cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f0f022c1c1a in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x000056472de4756b in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/kstars-bleeding-6:3.6.4+202304120910~ubuntu23.04.1/kstars/main.cpp:385
[Inferior 1 (process 11520) detached]

Reported using DrKonqi
Comment 1 James Edmonds 2023-05-27 20:44:57 UTC
I also experience this bug.

I have three computers:
Lenovo ThinkCentre (4th gen i3 4GB ram, Ubuntu MATE 22.04, Kstars-bleeding from the PPA on official website 3.6.4 stable)
Desktop PC (Ryzen 5800x 96GB ram, Endeavour OS, kstars installed via normal arch package 3.6.4 stable)
Laptop (6th gen i7, 16GB ram, Ubuntu Gnome 20.04, kstars-bleeding installed from PPA on official website 3.6.4 stable)

I have found that in some instances I could create an optical train, but at some point it becomes either impossible to edit, or most recently, the trains disappear entirely and clicking the add button to make a new one immediately closes the application.
This feature clearly has something very wrong with it but I have not (yet) done any digging, just adding my input for confirmation that this bug affects more people and lots of machines at this time.
Comment 2 Jasem Mutlaq 2023-05-29 07:30:55 UTC
This is fixed in GIT and should be fine in 3.6.5 release.