×

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

Bi-monthly release with minor bug fixes and improvements

kstars crash with focusing

  • Posts: 21
  • Thank you received: 2
My apologies for introducing myself by way of a problem ...

I'm getting a SEGV when I try to autofocus with an ASI EAF.

kstars version: 3.6.1 on OpenSuSE leap 15.4. Indi running remotely on OpenSuSE Tumbleweed

Clicking on focus in, out or giving an explicit focus value works fine and I can hear the stepper, but autofocus causes and instant crash (ekosdebugger output below). Kstars v3.5.7 works fine without issues

Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
0x0000555555a74654 in ?? ()
#0 0x0000555555a74654 in ()
#1 0x0000555555b8189a in ()
#2 0x00007ffff0c30aab in () at /usr/lib64/libQt5Core.so.5
#3 0x00005555558fd781 in ()
#4 0x0000555555b9dc73 in ()
#5 0x00007ffff0c30aab in () at /usr/lib64/libQt5Core.so.5
#6 0x00007ffff1c92c42 in QAbstractButton::clicked(bool) () at /usr/lib64/libQt5Widgets.so.5
#7 0x00007ffff1c92eca in () at /usr/lib64/libQt5Widgets.so.5
#8 0x00007ffff1c9432a in () at /usr/lib64/libQt5Widgets.so.5
#9 0x00007ffff1c9451d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQt5Widgets.so.5
#10 0x00007ffff1be6c88 in QWidget::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#11 0x00007ffff1d3808f in QPushButton::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#12 0x00007ffff1ba64cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#13 0x00007ffff1bad807 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#14 0x00007ffff0bf30b3 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#15 0x00007ffff1bac80f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib64/libQt5Widgets.so.5
#16 0x00007ffff1c0146c in () at /usr/lib64/libQt5Widgets.so.5
#17 0x00007ffff1c044dd in () at /usr/lib64/libQt5Widgets.so.5
#18 0x00007ffff1ba64cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#19 0x00007ffff1bad28f in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#20 0x00007ffff0bf30b3 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#21 0x00007ffff1250dbb in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib64/libQt5Gui.so.5
#22 0x00007ffff1252065 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib64/libQt5Gui.so.5
#23 0x00007ffff1228b5b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Gui.so.5
#24 0x00007fffe7483500 in () at /usr/lib64/libQt5WaylandClient.so.5
#25 0x00007fffeca597fb in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#26 0x00007fffeca59ba0 in () at /usr/lib64/libglib-2.0.so.0
#27 0x00007fffeca59c2c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#28 0x00007ffff0c559fc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#29 0x00007ffff0bf191a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#30 0x00007ffff0bfb157 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#31 0x000055555566cb76 in ()
#32 0x00007fffeefda2bd in __libc_start_main () at /lib64/libc.so.6
#33 0x00005555556a32da in ()
1 year 4 months ago #88394

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

This looks like Qt crash, it's not showing any crash in KStars/INDI themselves.
1 year 4 months ago #88469

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

  • Posts: 21
  • Thank you received: 2

That's what I wondered from the backtrace so I updated all QT5 libs to current, but with no success. I also wondered why it should just crash on the "autofocus" button only
1 year 4 months ago #88470

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

  • Posts: 21
  • Thank you received: 2
I ran this again with kstars debug version in gdb and got this back:

(gdb) bt
#0 Ekos::FilterManager::setFocusStatus(Ekos::FocusState) (this=0x0, focusState=Ekos::FOCUS_PROGRESS)
at /usr/src/debug/kstars-3.6.1-lp154.35.3.x86_64/kstars/ekos/auxiliary/filtermanager.cpp:688
#1 0x0000555555b8189a in Ekos::Focus::<lambda(Ekos::FocusState)>::operator() (state=Ekos::FOCUS_PROGRESS, __closure=0x55555d17f890)
at /usr/src/debug/kstars-3.6.1-lp154.35.3.x86_64/kstars/ekos/focus/focus.cpp:3778
#2 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<Ekos::FocusState>, void, Ekos::Focus::setupFilterManager()::<lambda(Ekos::FocusState)> >::call (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:146
#3 QtPrivate::Functor<Ekos::Focus::setupFilterManager()::<lambda(Ekos::FocusState)>, 1>::call<QtPrivate::List<Ekos::FocusState>, void>
(arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:256
#4 QtPrivate::QFunctorSlotObject<Ekos::Focus::setupFilterManager()::<lambda(Ekos::FocusState)>, 1, QtPrivate::List<Ekos::FocusState>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *)
(which=<optimized out>, this_=0x55555d17f880, r=<optimized out>, a=<optimized out>, ret=<optimized out>)
at /usr/include/qt5/QtCore/qobjectdefs_impl.h:443
#5 0x00007ffff0c30aab in () at /usr/lib64/libQt5Core.so.5

etc ...

Is this expected given I have no filter wheel attached?

As a workaround inserting the filter wheel simulator into the train stops the crash
Last edit: 1 year 4 months ago by Damian Connell. Reason: further test with filter simulator
1 year 4 months ago #88506

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

  • Posts: 1185
  • Thank you received: 370
Is there a log file available? That would be really helpful. It seems like the problem is around capturing a frame for focusing.

And, in case if not, what is your exact configuration? It sounds like you are using a color camera that does obviously does not require a filter wheel.
1 year 4 months ago #88528

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

  • Posts: 21
  • Thank you received: 2
I've attached a log without using the filter wheel simulator, and there's not much details at the point of the crash other than focusing was started. You're right about it being a colour camera, but for practical purposes I can at least focus with the simulator in the train.

here's a screen shot of the profile settings


If it's any use I can upload filtermanager.cpp and focus.cpp I'm debugging from
1 year 4 months ago #88530
Attachments:

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

  • Posts: 1185
  • Thank you received: 370
Hi Damian,
it looks like the problem does not occur anymore in the upcoming 3.6.2. I tried the autofocus routine with a setup without a filter wheel and did not experience a crash.

Give it a try to compile KStars from sources, it's not that difficult for people who could use gdb :-)

If you need assistance, take a look here invent.kde.org/education/kstars/-/tree/master#building

HTH
Wolfgang
The following user(s) said Thank You: Damian Connell
1 year 4 months ago #88537

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

  • Posts: 21
  • Thank you received: 2
Thanks Wolfgang,

It's good to know it's fixed in later versions.
I'd tried to build from git, but it looks like SuSE 15.4 doesn't have the development RPMs for KDE Frameworks 5 so it may take a bit more effort on my part to get it built, but I'll give it a go

regards
1 year 4 months ago #88545

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

  • Posts: 1185
  • Thank you received: 370
Maybe you should consider switching to Ubuntu or Debian.
1 year 4 months ago #88559

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

  • Posts: 21
  • Thank you received: 2
I've tried various distros over the years, but for the last 25 years SuSE has proved more useful to me in general
1 year 4 months ago #88564

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

  • Posts: 61
  • Thank you received: 10
For Leap 15.4 you can give this repo a try:

download.opensuse.org/repositories/Appli...trophotography/15.4/

Switch to kstars-git and you have 3.5.2 without compiling.
This works for me and the fault has gone.

Edgar
The following user(s) said Thank You: Damian Connell
1 year 4 months ago #88567

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

  • Posts: 21
  • Thank you received: 2
Thanks Edgar,

I'd not got around to trying the git build yet. Good to know it's fixed
1 year 4 months ago #88570

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

Time to create page: 0.995 seconds