Bug 472116 - ekos crashes when connecting to DSLR
Summary: ekos crashes when connecting to DSLR
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.6.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-10 01:06 UTC by skogar42
Modified: 2023-07-10 05:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 3.6.6


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skogar42 2023-07-10 01:06:25 UTC
SUMMARY
Trying to connect to a Nikon Z7II using indi gphoto ccd driver results in ekos crash.
 
STEPS TO REPRODUCE
1. Create a profile with camera set as gphoto CCD 
2. Check auto connect
3. Click "Start Ekos"
4. Ekos crashes during the connection sequence

OBSERVED RESULT
```
Thread 1 "kstars" received signal SIGFPE, Arithmetic exception.
0x0000555555d94b09 in Ekos::Focus::checkMosaicMaskLimits (this=0x55555bc3cad0) at ./kstars/ekos/focus/focus.cpp:5112
#0  0x0000555555d94b09 in Ekos::Focus::checkMosaicMaskLimits (this=0x55555bc3cad0) at ./kstars/ekos/focus/focus.cpp:5112
#1  0x0000555555d9730c in Ekos::Focus::resetFrame (this=0x55555bc3cad0) at ./kstars/ekos/focus/focus.cpp:259
#2  0x0000555555d975cc in Ekos::Focus::setCamera (this=this@entry=0x55555bc3cad0, device=device@entry=0x555558fdf9e0) at ./kstars/ekos/focus/focus.cpp:786
#3  0x0000555555d97af6 in Ekos::Focus::refreshOpticalTrain (this=0x55555bc3cad0) at ./kstars/ekos/focus/focus.cpp:6698
#4  0x00007ffff52c7793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff52c7793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff52c7793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff52cb7fe in QTimer::timeout(QTimer::QPrivateSignal) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffff52bd33f in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff5d81713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff528fe3a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff52e83eb in QTimerInfoList::activateTimers() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff52e8cec in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff4117d3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff416d258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff41153e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff52e90b8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff528e75b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff5296cf4 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00005555556ec2fa in main (argc=<optimized out>, argv=<optimized out>) at ./kstars/main.cpp:386
```

EXPECTED RESULT
Connection is successful

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04.2
(available in About System)

ADDITIONAL INFORMATION
Comment 1 Jasem Mutlaq 2023-07-10 05:13:15 UTC
It's fixed in KStars