Bug 514825

Summary: Scheduler's alignment check interrupts and aborts meridian flip in progress
Product: [Applications] kstars Reporter: kulczwoj
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.8.0   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Excert from logs showing the bug and its outcome

Description kulczwoj 2026-01-19 11:47:56 UTC
Created attachment 188682 [details]
Excert from logs showing the bug and its outcome

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

With enabled Meridian Flip and Scheduler->Alignment-> "Verify captured image position" + "Reset pipeline if delta exceeds"

STEPS TO REPRODUCE
1. Enable meridian flip
2. Set Scheduler->Alignment->"Verify captured image position every" 1 "frames"
3. Set Scheduler->Alignment->"Reset pipeline if verified image delta exceeds" 0.1 "arcminutes" (very small on purpose to ensure it triggers together with meridian flip); use e.g. dithering to ensure image drift exceeds delta
4. (optional) Set HA limit
5. Start job that for target that will go past meridian mid-job, triggering MF

OBSERVED RESULT

Meridian flip fires up, mount status changes to "Slewing", but MF gets immediately aborted due to re-alignment triggered by captured frame being too far from target. Alignment finishes, but MF doesn't happen and job never resumes, eventually mount reaches max HA limit and/or hardware HA limit and freezes.

EXPECTED RESULT

Target drift check and re-alignment are skipped when MF is pending/running.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS 26.06
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.12.63 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 kulczwoj 2026-01-19 12:03:38 UTC
Complete SUMMARY part:

With enabled Meridian Flip and Scheduler->Alignment-> "Verify captured image position" + "Reset pipeline if delta exceeds"

when re-alignment triggers together with meridian flip, meridian flip gets interrupted and aborted by re-alignment, causing MF not occurring, job not resume, and mount eventually hitting HA limit and/or hardware limit