×

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

Bi-monthly release with minor bug fixes and improvements

KSTARS crashes when sequence has filter specified but trains has no filterwheel

  • Posts: 456
  • Thank you received: 76
This is a bit of an edge case and the fix is to ensure you have a filter wheel set in your trains.
I noticed this when I was trying to take flats using a sequence file that I always use. There had been some strange previous error preventing my EFW from connecting and the optical-trains was then missing the filter wheel. When I ran the sequence kstars crashed right after clicking 'Continue'on the screenshot modal below.

my reproduction steps
1) Ensure the optical train has the filter wheel set to '---'
2) Load up the sequence and click the start button
3) Click continue when it asks you to confim covering the scope with a light source
4) RESULT: Crashes. Probably when it goes to change filter.




I grabbed the backtrace here
[Thread 0x7fffc4939640 (LWP 13937) exited]
[New Thread 0x7fffc4939640 (LWP 13938)]
[Thread 0x7fff7abff640 (LWP 13926) exited]
org.kde.kstars.ekos.capture: "Warning: option \"Always Reset Sequence When Starting\" is enabled and resets the sequence counts."
org.kde.kstars.ekos.capture: "Job requires 11.000-second PV images, has 0/10 frames captured and will be processed."
org.kde.kstars.ekos.capture: "Warning: in-sequence focusing is selected but autofocus process was not started."
[Thread 0x7fffbdffe640 (LWP 13886) exited]
[Thread 0x7fffc5394640 (LWP 13884) exited]
org.kde.kstars.indi: Dome Scripting Gateway :  "[INFO] Dome already parked. "
[Thread 0x7fffc4939640 (LWP 13938) exited]
 
Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
Ekos::FilterManager::getFilterPosition (this=0x0, forceRefresh=forceRefresh@entry=false) at ./kstars/ekos/auxiliary/filtermanager.cpp:371
371	./kstars/ekos/auxiliary/filtermanager.cpp: No such file or directory.
(gdb) 
(gdb) bt
#0  Ekos::FilterManager::getFilterPosition (this=0x0, 
    forceRefresh=forceRefresh@entry=false)
    at ./kstars/ekos/auxiliary/filtermanager.cpp:371
#1  0x0000555555cabb77 in Ekos::CaptureDeviceAdaptor::updateFilterPosition (
    this=0x55555b8c1b30)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:301
#2  0x00007ffff4ef1793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x0000555555cd3936 in Ekos::SequenceJobState::prepareTargetFilter (
    isPreview=<optimized out>, frameType=FRAME_FLAT, this=0x55555a8fc950)
    at ./kstars/ekos/capture/sequencejobstate.cpp:274
#4  Ekos::SequenceJobState::initCapture (this=0x55555a8fc950, 
    frameType=FRAME_FLAT, isPreview=<optimized out>, 
    isAutofocusReady=<optimized out>, mode=<optimized out>)
    at ./kstars/ekos/capture/sequencejobstate.cpp:129
#5  0x0000555555cc6cfc in Ekos::SequenceJob::startCapturing (
    this=<optimized out>, autofocusReady=<optimized out>, mode=<optimized out>)
    at ./kstars/ekos/capture/sequencejob.cpp:337
#6  0x0000555555c97b56 in Ekos::CaptureProcess::captureImage (
    this=0x55555b8a63d0) at ./kstars/ekos/capture/refocusstate.h:75
#7  0x0000555555c99daf in Ekos::CaptureProcess::executeJob (
    this=0x55555b8a63d0) at ./kstars/ekos/capture/captureprocess.cpp:665
#8  0x00007ffff4ef1793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff4ef1793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--c
#10 0x0000555555a472c3 in Ekos::SequenceJob::prepareComplete (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/kstars/KStarsLib_autogen/VONTORZADU/moc_sequencejob.cpp:218
#11 0x00007ffff4ef1793 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
Backtrace stopped: Cannot access memory at address 0x7fffffffce78
(gdb)

Also my seqence file is attached
The following user(s) said Thank You: Jasem Mutlaq
5 months 4 weeks ago #96813
Attachments:

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

Time to create page: 0.397 seconds