Bug 417033 - kstars crash on startup
Summary: kstars crash on startup
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-02-01 18:28 UTC by Flavius
Modified: 2020-08-10 15:19 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (8.75 KB, text/plain)
2020-02-07 21:18 UTC, RD Beck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flavius 2020-02-01 18:28:23 UTC
Application: kstars (3.4.0)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 5.3.0-28-generic x86_64
Distribution: Ubuntu 18.04.4 LTS

-- Information about the crash:
- What I was doing when the application crashed:
kstars crashes on startup after the last update. every startup. no exception. i am running kubuntu, plasma kde

The crash can be reproduced every time.

-- Backtrace:
Application: KStars (kstars), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0ef4b79440 (LWP 1270))]

Thread 6 (Thread 0x7f0ebe541700 (LWP 1534)):
#0  0x00007f0eee0909f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f0eac02cc10) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f0eac02cbc0, cond=0x7f0eac02cbe8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f0eac02cbe8, mutex=0x7f0eac02cbc0) at pthread_cond_wait.c:655
#3  0x00007f0eeedbf5ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0eeedb7c1b in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0eeefcb958 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x000056342a368292 in ClientManager::newINDIProperty (this=this@entry=0x56342eca4330, _t1=<optimized out>, _t1@entry=0x7f0eac0490d0) at ./obj-x86_64-linux-gnu/kstars/KStarsLib_autogen/FRI4DANIHA/moc_clientmanager.cpp:342
#7  0x000056342a3d5e2f in ClientManager::newProperty (this=0x56342eca4330, prop=0x7f0eac0490d0) at ./kstars/indi/clientmanager.cpp:92
#8  0x000056342a90b92b in INDI::BaseDevice::buildProp(xml_ele_*, char*) ()
#9  0x000056342a910054 in INDI::BaseClient::dispatchCommand(xml_ele_*, char*) ()
#10 0x000056342a910d0a in INDI::BaseClient::listenINDI() ()
#11 0x000056342a910eb9 in INDI::BaseClient::listenHelper(void*) ()
#12 0x000056342a910ef6 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void* (*)(void*), INDI::BaseClient*> > >::_M_run() ()
#13 0x00007f0eed78966f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#14 0x00007f0eee08a6db in start_thread (arg=0x7f0ebe541700) at pthread_create.c:463
#15 0x00007f0eece4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f0ebf3a8700 (LWP 1475)):
#0  0x00007f0eee094384 in __libc_read (fd=17, buf=0x7f0ebf3a7b10, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f0eea5172d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0eea4d20b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0eea4d2570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0eea4d26dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f0eeeff599b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f0eeef9a9fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f0eeedb923a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f0eeedbe17d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f0eee08a6db in start_thread (arg=0x7f0ebf3a8700) at pthread_create.c:463
#10 0x00007f0eece4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f0ec5e10700 (LWP 1368)):
#0  0x00007f0eee0909f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56342c2907a8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x56342c290758, cond=0x56342c290780) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x56342c290780, mutex=0x56342c290758) at pthread_cond_wait.c:655
#3  0x00007f0ec7152eab in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f0ec7152aa7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f0eee08a6db in start_thread (arg=0x7f0ec5e10700) at pthread_create.c:463
#6  0x00007f0eece4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f0ed20c8700 (LWP 1308)):
#0  0x00007f0eece39bf9 in __GI___poll (fds=0x7f0ecc01a070, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f0eea4d25c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0eea4d26dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0eeeff599b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0eeef9a9fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0eeedb923a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f0eef472d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f0eeedbe17d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f0eee08a6db in start_thread (arg=0x7f0ed20c8700) at pthread_create.c:463
#9  0x00007f0eece4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f0ed910b700 (LWP 1284)):
#0  0x00007f0eece39bf9 in __GI___poll (fds=0x7f0ed910ac28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f0ee7258747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f0ee725a36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f0edbeb85e9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f0eeedbe17d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0eee08a6db in start_thread (arg=0x7f0ed910b700) at pthread_create.c:463
#6  0x00007f0eece4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f0ef4b79440 (LWP 1270)):
[KCrash Handler]
#6  Ekos::Manager::syncActiveDevices (this=this@entry=0x56342f775a30) at ./kstars/ekos/manager.cpp:3409
#7  0x000056342a460570 in Ekos::Manager::processNewProperty (this=0x56342f775a30, prop=0x7f0eac0490d0) at ./kstars/ekos/manager.cpp:1754
#8  0x00007f0eeefcb75f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x000056342a3696d2 in ISD::GDInterface::propertyDefined (this=this@entry=0x56343077df10, _t1=<optimized out>, _t1@entry=0x7f0eac0490d0) at ./obj-x86_64-linux-gnu/kstars/KStarsLib_autogen/FRI4DANIHA/moc_indistd.cpp:432
#10 0x000056342a3eecff in ISD::GenericDevice::registerProperty (this=0x56343077df10, prop=0x7f0eac0490d0) at ./kstars/indi/indistd.cpp:81
#11 0x000056342a3f1929 in INDIListener::registerProperty (this=0x56342fcd0600, prop=0x7f0eac0490d0) at ./kstars/indi/indilistener.cpp:359
#12 0x000056342a39a02c in INDIListener::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./obj-x86_64-linux-gnu/kstars/KStarsLib_autogen/FRI4DANIHA/moc_indilistener.cpp:182
#13 0x00007f0eeefcc1b2 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f0ef042183c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f0ef0429104 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f0eeef9c9c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f0eeef9f13d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f0eeeff6353 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f0eea4d2417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f0eea4d2650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f0eea4d26dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f0eeeff597f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f0eeef9a9fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f0eeefa3aa4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x000056342a158c7a in main (argc=<optimized out>, argv=<optimized out>) at ./kstars/main.cpp:332

Reported using DrKonqi
Comment 1 RD Beck 2020-02-07 21:18:37 UTC
Created attachment 125758 [details]
New crash information added by DrKonqi

kstars (3.4.0) using Qt 5.12.4

- What I was doing when the application crashed:

KStars starts fine.  The crash occurs when I start INDI server, no devices connected.  Not all devices in the profile are presently attached.

Happened on consecutive startups.  Can sometimes be non-repeatable.

-- Backtrace (Reduced):
#6  Ekos::Manager::syncActiveDevices (this=0x5620d6b0bc40) at ./kstars/ekos/manager.cpp:3409
#7  0x00005620d282e374 in Ekos::Manager::processNewProperty (this=0x5620d6b0bc40, prop=0x7f073802eaf0) at ./kstars/ekos/manager.cpp:1754
[...]
#9  0x00005620d271b916 in ISD::GDInterface::propertyDefined (this=this@entry=0x5620d820ffa0, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/kstars/KStarsLib_autogen/FRI4DANIHA/moc_indistd.cpp:440
#10 0x00005620d27af4e0 in ISD::GenericDevice::registerProperty (this=0x5620d820ffa0, prop=<optimized out>) at ./kstars/indi/indistd.cpp:81
#11 0x00005620d27b3da8 in INDIListener::registerProperty (this=0x5620d7609090, prop=0x7f073802eaf0) at ./kstars/indi/indilistener.cpp:359
Comment 2 Flavius 2020-02-07 21:50:05 UTC
my workaround for this (which started to happen after the last update) is to select the simulator, connect then disconnect and select my profile.
Comment 3 Jasem Mutlaq 2020-07-26 18:26:18 UTC
Please test again on 3.4.3
Comment 4 RD Beck 2020-07-26 19:15:19 UTC
Seems to work fine in 3.4.3.  

I started KStars and then EKOS.  I attached my arduino-based Moonlite-command set focuser, my arduino-based SQM and each of my ASI cameras and filter wheel with no issues.
Comment 5 RD Beck 2020-07-26 19:16:19 UTC
By attached on the previous comment, I meant connected in EKOS.
Comment 6 Bug Janitor Service 2020-08-10 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!