Dman replied to the topic 'Kstars crashes when using Align module' in the forum. 8 months ago

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?

Read More...