I am glad to have found this thread as I was having this very issue, albeit on a Mac. Double happy that the cause has been identified and the fix is in the pipeline. Thank you all involved very much!
I would just like to highlight a couple of seemingly related effects that I experienced last night. They may or may not be due to the same issue, but please consider.
First of all, it was
not only the Scheduler that was failing to count written files. The Capture module was also failing to do so, although in a slightly different setting, as follows:
- Create a sequence file with subframe file name patterns containing gain and offset placeholders (that we now know confuse the Scheduler), save it and start Scheduler with that sequence
- As the job is executed, the Capture module actually shows the number of captured frames correctly, but the Scheduler is showing 0 progress (this much I believe has already been discussed in this thread)
- (But here comes the new part) In my case it was guiding failures that made the Scheduler restart (I think it only restarted the Guider, because it certainly did not re-run alignment or autofocus), but whatever it was, the Scheduler reloaded the sequence file in the Capture module, and from this point the number of captured frames there was also reset to 0
In effect, when this happened after 24 out of 25 frames in the first job were already taken, the Capture module started shooting the first job all the way from 0, but on the disk I would end up having 49 subframes for the first job (with correct numbering, because even though the Capture module showed its status incorrectly, the file names were generated with correct numbering).
"Remember job progress" in Ekos Scheduler options is checked.
Hopefully the fix that is already in the pipeline will help not only the Scheduler, but also the Capture module in this case.
And one more issue that seems somewhat related, but may as well not be.
In the Capture module, where it displays the current Gain and Offset values for the camera, there are text input fields to override those values for the current job, by default those fields are populated with double dashes ("--").
If I use gain and offset placeholders in my filename pattern in this situation, the files will have -1 instead of the actual gain and offset, just as in the preview pop-up on the following screenshot (confirmed with the actual written file name, so it is not just the name preview pop-up that has the issue):
So even if I don't need to override the current values, I still need to populate those text fields in order to get them reflected in file names.