×

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

Bi-monthly release with minor bug fixes and improvements

Kstars crashes when using Align module

  • Posts: 14
  • Thank you received: 3
I recently started trying out astrophotography and I've been trying to get Ekos to work on my M1 Mac (Sonoma) with no luck.
My setup uses an HEQ5 mount and a Canon 90D Dslr for picture capturing. But the issue I'm having also happens when using simulators (which is what I've been mostly doing when trying to debug this issue during the day)

Basically I can connect with no issues to everything. I can create captures with no issues, I can start guiding process with no issues, etc. But as soon as I click "Capture & Solve" or try to start the Polar Alignment process Kstars instantly crashes. I've tried looking enabling every log option and it literally just ends with 0 error messages.

The weirder issue is that sometimes for some completely random reason it works and it doesn't crash. But as soon as I close kstars it's starts crashing again

Is there anything I can do to try and understand what's wrong? I've tried running through the terminal and yet again there seems to be no errors in the log is just terminates with a seg fault.
3 months 3 weeks ago #98044

Please Log in or Create an account to join the conversation.

What's in your optical train?
3 months 3 weeks ago #98045

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 3
I've tried with the simulators as well as with my canon 90d and HEQ5 mount. When I use my canon I can also select it as the focuser. Other than this nothing. When use the canon I also change the lenses to match up with what I have in the camera.

3 months 3 weeks ago #98046
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 3
I'll just add some info.
I'm running 3.6.8 stable version.
I've added a video of the whole process of launching and crashing. It says that there's an indi server already running because of the previous crash. If I start this after a laptop restart the indi server starts without the warning. But it still crashes.

3 months 2 weeks ago #98062
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 3
Since the last post I spent an ungodly amount of time trying to build this locally with no luck. I wanted to build a debug version to which I could attach an lldb session to get a backtrace but no luck.

I've tried running kstars on multiple macs with all of them crashing. Is there anything else I can do? Any way to get a more descriptive error?
3 months 2 weeks ago #98210

Please Log in or Create an account to join the conversation.

  • Posts: 1226
  • Thank you received: 566
I have not built on mac for a long long time, can't help with that, but this is the resource for doing so.
github.com/rlancaste/kstars-on-osx-craft/blob/master/README.md/
Rob Lancaster is the guy who supports that.

Hy
3 months 2 weeks ago #98211

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 3
So after quite a few headaches I finally managed to build Kstars and run it with lldb. Funnily enough the first time I ran it it didn't crash (it happens once in a blue moon)

The second time crashed straight away.

This is the backtrace:
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
  * frame #0: 0x000000010fc42257 libindiclient.2.0.5.dylib`INDI::AbstractBaseClient::getBLOBMode(char const*, char const*) [inlined] std::__1::unique_ptr<INDI::AbstractBaseClientPrivate, std::__1::default_delete<INDI::AbstractBaseClientPrivate>>::get[abi:v160006](this=0x0000000000000018) const at unique_ptr.h:276:105 [opt]
    frame #1: 0x000000010fc42257 libindiclient.2.0.5.dylib`INDI::AbstractBaseClient::getBLOBMode(char const*, char const*) [inlined] std::__1::unique_ptr<INDI::AbstractBaseClientPrivate, std::__1::default_delete<INDI::AbstractBaseClientPrivate>>::element_type* getPtrHelper<std::__1::unique_ptr<INDI::AbstractBaseClientPrivate, std::__1::default_delete<INDI::AbstractBaseClientPrivate>>>(p=nullptr) at indimacros.h:133:14 [opt]
    frame #2: 0x000000010fc42257 libindiclient.2.0.5.dylib`INDI::AbstractBaseClient::getBLOBMode(char const*, char const*) [inlined] INDI::AbstractBaseClient::d_func(this=0x0000000000000010) at abstractbaseclient.h:39:9 [opt]
    frame #3: 0x000000010fc42257 libindiclient.2.0.5.dylib`INDI::AbstractBaseClient::getBLOBMode(this=0x0000000000000010, dev="CCD Simulator", prop="CCD1") at abstractbaseclient.cpp:449:5 [opt]
    frame #4: 0x00000001004a22f2 kstars`___lldb_unnamed_symbol13189 + 1026
    frame #5: 0x0000000112f8242d QtCore`void doActivate<false>(QObject*, int, void**) + 1133
    frame #6: 0x0000000111242330 QtWidgets`QAbstractButtonPrivate::emitClicked() + 112
    frame #7: 0x000000011124219a QtWidgets`QAbstractButtonPrivate::click() + 250
    frame #8: 0x000000011124347f QtWidgets`QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 271
    frame #9: 0x000000011119aa72 QtWidgets`QWidget::event(QEvent*) + 514
    frame #10: 0x00000001112e8480 QtWidgets`QPushButton::event(QEvent*) + 80
    frame #11: 0x000000011115f7e0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 256
    frame #12: 0x0000000111162641 QtWidgets`QApplication::notify(QObject*, QEvent*) + 7201
    frame #13: 0x0000000112f54779 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 169
    frame #14: 0x000000011116019e QtWidgets`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 846
    frame #15: 0x00000001111b8030 QtWidgets`QWidgetWindow::handleMouseEvent(QMouseEvent*) + 2048
    frame #16: 0x00000001111b6c2b QtWidgets`QWidgetWindow::event(QEvent*) + 203
    frame #17: 0x000000011115f7e0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 256
    frame #18: 0x0000000111160c04 QtWidgets`QApplication::notify(QObject*, QEvent*) + 484
    frame #19: 0x0000000112f54779 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 169
    frame #20: 0x0000000111f6845d QtGui`QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3069
    frame #21: 0x0000000111f4e1fb QtGui`QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 235
    frame #22: 0x0000000115ccd4f8 libqcocoa.dylib`QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
    frame #23: 0x00007ff8065437d6 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #24: 0x00007ff806543779 CoreFoundation`__CFRunLoopDoSource0 + 157
    frame #25: 0x00007ff806543548 CoreFoundation`__CFRunLoopDoSources0 + 215
    frame #26: 0x00007ff8065421b8 CoreFoundation`__CFRunLoopRun + 919
    frame #27: 0x00007ff806541859 CoreFoundation`CFRunLoopRunSpecific + 557
    frame #28: 0x00007ff8112df9d9 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #29: 0x00007ff8112df616 HIToolbox`ReceiveNextEventCommon + 201
    frame #30: 0x00007ff8112df531 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 66
    frame #31: 0x00007ff809ab17b9 AppKit`_DPSNextEvent + 880
    frame #32: 0x00007ff80a3a9f64 AppKit`-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1304
    frame #33: 0x00007ff809aa2d32 AppKit`-[NSApplication run] + 603
    frame #34: 0x0000000115ccc174 libqcocoa.dylib`QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2132
    frame #35: 0x0000000112f51296 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 502
    frame #36: 0x0000000112f54d13 QtCore`QCoreApplication::exec() + 131
    frame #37: 0x0000000100016d46 kstars`___lldb_unnamed_symbol4191 + 22870
    frame #38: 0x00000002011c6386 dyld`start + 1942


This is a consistent crash in every mac with sonoma I tried (I don't have access to a mac without sonoma installed)
Does anyone have any insight on what might be causing this?
The following user(s) said Thank You: Jasem Mutlaq
3 months 1 week ago #98280

Please Log in or Create an account to join the conversation.

  • Posts: 147
  • Thank you received: 16
So after quite a few headaches I finally managed to build Kstars
And you're using an M1 mac with Sonoma, like me.

So I have to ask: how did you manage?

I've been trying to establish a build environment for over a week, starting with Rob Lancaster's kstars-on-osx-craft, and modifying a few things (eg adjusting it for arm64). But I never get to t working system.

Thanks for any guidance!
Richard
Last edit: 3 months 1 week ago by Richard Francis. Reason: slight expansion
3 months 1 week ago #98343

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 3
I did it for x86_64 instead with rosetta. I don't think it's buildable yet to arm64. It'd be a headache to get indi to build in arm64 and then kstars after.
3 months 1 week ago #98344

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 3
That said and since you also have an M1 Sonoma. Are you able to boot up ekos with internal indi server with a mount simulator and a ccd simulator and use the align module? For me it crashes almost always. Capture and Solve, load and slew and polar align all crash.
3 months 1 week ago #98345

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
I have the exact same issue. Anytime I try to polar align or plate solve it instantly crashes. I am using a Mac M1 chip Sonoma 14.2.1. I also have the issue using both the simulator and my own equipment. I am able to guide and capture images. I have been trying to get this to work for over a month now.

I too had no helpful logs from within Kstars Ekos. I know the apple crash reports are not overly helpful but here is the termination reason it provided me:

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [29008]

Any help or solutions is greatly appreciated!
3 months 1 week ago #98353

Please Log in or Create an account to join the conversation.

For some reason, it's crashing trying to access clientManager pointer. Client Manager should exist by this point. At any rate, I added a check in that line that *might* help.. but if client manager was not established by then or was reset of corrupted for whatever reason, then the check won't matter and it will crash again down the line.

Please update and recompile.
3 months 1 week ago #98354

Please Log in or Create an account to join the conversation.

Time to create page: 1.098 seconds