×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

[SOLVED] Kstars keeps crashing

Replied by Jasem Mutlaq on topic Kstars keeps crashing

So it's related to multi-threaded code and some race conditions.. anyone above can build from source? I might send a patch for testing.

File Attachment:

File Name: patch.txt
File Size:1 KB

cp patch.txt ~/Projects/kstars
cd ~/Projects/kstars
patch -p1 < ./patch.txt

Then recompile and test.
Last edit: 3 years 8 months ago by Jasem Mutlaq.
3 years 8 months ago #58870
Attachments:
The topic has been locked.
  • Posts: 294
  • Thank you received: 54

Replied by Gilles Gagnon on topic Kstars keeps crashing

Thanks for the patch. I can give it a try and report if building kstars is not too involved for my machine.

Keep you posted ASAP.

Gilles
3 years 8 months ago #58879
The topic has been locked.
  • Posts: 294
  • Thank you received: 54

Replied by Gilles Gagnon on topic Kstars keeps crashing

OK, after sorting through a package that had changed name in Ubuntu Mate 20.04 LTS (kio), and waiting over 3.5 hours for kstars to build on my ODroid C4 (doesn't like "make -j 8" or even "make -j 4" so I had to "make" -> SLOW) I started kstars and, unfortunately, the patch did not help, the problem persisted. Too bad as I was hopeful things would work. Anyway, I re-ran kstars from the EKOS debugger and have attached the debug zip file for examination.

Thanks again for all the help on this issue.

Gilles
3 years 8 months ago #58896
Attachments:
The topic has been locked.
  • Posts: 1119
  • Thank you received: 182

Replied by Jose Corazon on topic Kstars keeps crashing


Stupid question: How do I start Ekos with debugger activated and where are the logs?
3 years 8 months ago #58897
The topic has been locked.
  • Posts: 294
  • Thank you received: 54

Replied by Gilles Gagnon on topic Kstars keeps crashing

You don't need to start Ekos the an activated debugger. 'ekosdebugger' takes care of that.

Once you install ekos-debugger, you can start it (ekosdebugger, no hyphen) and it will open a window with 2 tabs, one for kstars and the other for INDI where you select the setup you want to debug (mount, guide, observatory..., profile, etc...). You start kstars and the debugging process pressing the 'play' button (top left). kstars will start soon after that. You then do whatever is needed to reproduce the problem you want to debug and once kstars crashes, the log files will have been generated and can be saved by pressing the 'disk' button on the top right.

Great tool for someone like me, not used to debugging.

Hope this help.
3 years 8 months ago #58900
The topic has been locked.
  • Posts: 116
  • Thank you received: 2

Replied by Joshua R on topic Kstars keeps crashing

is it possible to start kstars, indi and all the devices separately from the console? If so how to do it.
I'm looking for a temporarily workaround.
3 years 8 months ago #58915
The topic has been locked.

Replied by Jasem Mutlaq on topic Kstars keeps crashing


Please check your email.
3 years 7 months ago #58917
The topic has been locked.
  • Posts: 1009
  • Thank you received: 133

Just start kstars as usual, but edit your profile and remove the hook at "Auto Connect". Then start INDI, and the INDI control window will show up. There you can connect devices one by one. That should work both for local and remote setups....
3 years 7 months ago #58920
The topic has been locked.
  • Posts: 116
  • Thank you received: 2

Replied by Joshua R on topic Kstars keeps crashing

Is it also possible to connect the devices one by one thru a script manually?
3 years 7 months ago #58923
The topic has been locked.
  • Posts: 1009
  • Thank you received: 133
Should be possible via indi_setprop, e.g.,
indi_setprop "CCD Simulator.CONNECTION.CONNECT=On"

Use option "-h <IP>" if it's on another computer, and in doubt indi_getprop to see available settings...
3 years 7 months ago #58927
The topic has been locked.
  • Posts: 116
  • Thank you received: 2

Replied by Joshua R on topic Kstars keeps crashing

Thanx a lot
3 years 7 months ago #58934
The topic has been locked.
  • Posts: 10
  • Thank you received: 0
Still having issues with the latest build, with the patch. The application is getting further. I can setup a device now, but when I go back in and try to load a configuration, it crashes again.
 
Starting program: /home/myuser/sand-box/kstars/kstars/kstars
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdc106700 (LWP 24088)]
[New Thread 0x7fffd1fb6700 (LWP 24090)]
[New Thread 0x7fffd17b5700 (LWP 24091)]
[New Thread 0x7fffcbfff700 (LWP 24092)]
[New Thread 0x7fffbffff700 (LWP 24094)]
[New Thread 0x7fffb77fe700 (LWP 24095)]
[New Thread 0x7fffbf7fe700 (LWP 24096)]
[New Thread 0x7fffbe5ed700 (LWP 24101)]
[New Thread 0x7fffbcb9a700 (LWP 24102)]
[New Thread 0x7fffb7fff700 (LWP 24103)]
[New Thread 0x7fffb6ffd700 (LWP 24104)]
[New Thread 0x7fff9ffff700 (LWP 24105)]
[New Thread 0x7fffb48f9700 (LWP 24106)]
[New Thread 0x7fff9f7fe700 (LWP 24107)]
[New Thread 0x7fff9effd700 (LWP 24108)]
[New Thread 0x7fff9e7fc700 (LWP 24109)]
[New Thread 0x7fff9dffb700 (LWP 24110)]
[New Thread 0x7fff9d5bf700 (LWP 24111)]
[Thread 0x7fff9d5bf700 (LWP 24111) exited]
[Thread 0x7fffbcb9a700 (LWP 24102) exited]
[New Thread 0x7fffbcb9a700 (LWP 24143)]
[New Thread 0x7fff9d5bf700 (LWP 24162)]
 
Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
0x00005555562d8d54 in INDI::Property::getState() const ()
(gdb) bt
#0  0x00005555562d8d54 in INDI::Property::getState() const ()
#1  0x00005555559d5514 in INDI_P::updateStateLED() (this=0x55555b090ac0) at /home/myuser/sand-box/kstars/kstars/indi/indiproperty.cpp:64
#2  0x00005555559d573a in INDI_P::initGUI() (this=0x55555b090ac0) at /home/myuser/sand-box/kstars/kstars/indi/indiproperty.cpp:101
#3  0x00005555559d52d1 in INDI_P::INDI_P(INDI_G*, INDI::Property*) (this=0x55555b090ac0, ipg=0x55555a14dc10, prop=0x7fffa002ae30)
    at /home/myuser/sand-box/kstars/kstars/indi/indiproperty.cpp:52
#4  0x00005555559d3805 in INDI_G::addProperty(INDI::Property*) (this=0x55555a14dc10, prop=0x7fffa002ae30) at /home/myuser/sand-box/kstars/kstars/indi/indigroup.cpp:74
#5  0x00005555559cfe71 in INDI_D::buildProperty(INDI::Property*) (this=0x55555a66cd60, prop=0x7fffa002ae30) at /home/myuser/sand-box/kstars/kstars/indi/indidevice.cpp:97
#6  0x00005555559cc535 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<INDI::Property*>, void, bool (INDI_D::*)(INDI::Property*)>::call(bool (INDI_D::*)(INDI::Property*), INDI_D*, void**) (f=(bool (INDI_D::*)(INDI_D * const, INDI::Property *)) 0x5555559cfcfc <INDI_D::buildProperty(INDI::Property*)>, o=0x55555a66cd60, arg=0x7fffa002b9b0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:136
#7  0x00005555559cc035 in QtPrivate::FunctionPointer<bool (INDI_D::*)(INDI::Property*)>::call<QtPrivate::List<INDI::Property*>, void>(bool (INDI_D::*)(INDI::Property*), INDI_D*, void**) (f---Type <return> to continue, or q <return> to quit---
=(bool (INDI_D::*)(INDI_D * const, INDI::Property *)) 0x5555559cfcfc <INDI_D::buildProperty(INDI::Property*)>, o=0x55555a66cd60, arg=0x7fffa002b9b0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:169
#8  0x00005555559cb603 in QtPrivate::QSlotObject<bool (INDI_D::*)(INDI::Property*), QtPrivate::List<INDI::Property*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x55555a663ec0, r=0x55555a66cd60, a=0x7fffa002b9b0, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:120
#9  0x00007ffff23ed0c2 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff388175b in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff384283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff384a104 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff23bd8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff23c004d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff2417263 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007fffed34c417 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007fffed34c650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007fffed34c6dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff241688f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff23bb90a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff23c49b4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00005555556338e8 in main(int, char**) (argc=1, argv=0x7fffffffdd98) at /home/myuser/sand-box/kstars/kstars/main.cpp:348
 
3 years 7 months ago #58992
The topic has been locked.
Time to create page: 0.918 seconds