https://bugs.kde.org/show_bug.cgi?id=392974
Bug ID: 392974 Summary: Ekos focuser taking multiple exposures (locking issue?) Product: kstars Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: mutla...@ikarustech.com Reporter: deathstal...@gmail.com Target Milestone: --- In Ekos, I use a D5300, a compiled INDI, and OnStep. I do sometimes get issues where, when trying to autofocus, it results in multiple requests being issued, rapidly. My guess is this is a threading issue. Usually, it works, but sometimes, I get sequences like the following. Sometimes it's 2-3 images, sometimes, it's a whole screen in small font of them. Usually it's just 1 image. If I wait for it to finish the images, it will continue. Example Logs below. (More can be provided, but I had debugging on the whole night, so that file is... not tiny. I don't think this was one where I let it go on to complete the images.) It's possible that the focuserInterface code, is having an impact, but I don't find it likely. My guess is that it's related to void Focus::capture(), and the time period between the check for if (captureInProgress) and setting captureInProgress = true; However, for that to happen, something would need to be calling capture repeatedly, quickly. I don't immediately see in focus.cpp any place that does that. I'm happy to do particular testing. Just let me know. I'll probably look at this more outside of KDE bug tracking. >From one of my logs (non ekos positions trimmed): [2018-04-06T03:17:03.644 CDT DEBG ][ org.kde.kstars.ekos.focus] - Focus newFITS # 1 : Current HFR 1.73739 [2018-04-06T03:17:03.680 CDT DEBG ][ org.kde.kstars.ekos.focus] - ======================================== [2018-04-06T03:17:03.680 CDT DEBG ][ org.kde.kstars.ekos.focus] - Current HFR: 1.73739 Current Position: 268 [2018-04-06T03:17:03.680 CDT DEBG ][ org.kde.kstars.ekos.focus] - Last minHFR: 1.65469 Last MinHFR Pos: 295 [2018-04-06T03:17:03.680 CDT DEBG ][ org.kde.kstars.ekos.focus] - Delta: "8.27" % [2018-04-06T03:17:03.680 CDT DEBG ][ org.kde.kstars.ekos.focus] - ======================================== [2018-04-06T03:17:03.680 CDT INFO ][ org.kde.kstars.ekos.focus] - "FITS received. HFR 1.74 @ 268. Delta (8.27%)" [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - Setting initial slop to 231 @ HFR 1.7744 [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - Using slope to calculate target pulse... [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - V-Curve Slope -0.00100039 current Position 268 targetPosition 1136.36 [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - Limiting target pulse to focus out limit 332 [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - delta (targetPosition - currentPosition) 64 [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - Focusing OUT [2018-04-06T03:17:03.683 CDT DEBG ][ org.kde.kstars.ekos.focus] - Focus out ( 64 ) [2018-04-06T03:17:03.683 CDT INFO ][ org.kde.kstars.ekos.focus] - "Focusing outward by 64 steps..." ... [2018-04-06T03:17:03.727 CDT INFO ][ org.kde.kstars.ekos.focus] - "Capturing image..." [2018-04-06T03:17:03.728 CDT INFO ][ org.kde.kstars.ekos.focus] - "Capturing image..." [2018-04-06T03:17:03.729 CDT INFO ][ org.kde.kstars.ekos.focus] - "Capturing image..." [2018-04-06T03:17:03.729 CDT INFO ][ org.kde.kstars.ekos.focus] - "Capturing image..." [2018-04-06T03:17:03.732 CDT INFO ][ org.kde.kstars.ekos.focus] - "Capturing image..." [2018-04-06T03:17:03.733 CDT INFO ][ org.kde.kstars.ekos.focus] - "Capturing image..." ... [2018-04-06T03:17:12.711 CDT INFO ][ org.kde.kstars.ekos.focus] - "Image received." -- You are receiving this mail because: You are watching all bug changes.