File Camera picks up old Images
[x] Is the issue reproducible?
[x] Are you running the latest version?
[x] Are all prerequisites that are mentioned inside the manual met?
Description
File Camera picks up old Images first when an exposure was aborted or an Image was taken outside of NINA.
Steps to Reproduce
- Connect File Camera
- Place an image in the watched folder or take exposure outside of NINA or abort an Exposure in NINA
- Take exposure with FileCamera or place file in folder
Expected behaviour
Nina imports the latest Image
Actual behaviour
NINA imports the first image that landed in the Folder after connecting to FileCamera or the one that was created after the last NINA exposure. The error will continue in importing the Images in the order they were created, never the latest that was captured.
Maybe fixable by avoiding images that landed in the folder before the actual Exposure gets taken.
Comments (4)
-
repo owner -
reporter Yeah that would fix the issue. Right now simply aborting an Exposure in Nina doesn’t cancel it with the camera, so the queue gets outdated quite easily.
-
repo owner PR is open for it: https://bitbucket.org/Isbeorn/nina/pull-requests/469/issue-469-start-filewatcher-only-on-start/diff
need to do some more in-depth testing around it. Also thinking about making this behavior configurable to also have the old behavior available.
-
repo owner - changed status to resolved
- Log in to comment
The Filewatcher is initialized when connecting. That means that any file that is dropped into the watched folder will be put into a queue, which you correctly described.
What could be done instead is to start the filewatcher only on start of exposure and suspend it again after download.