moonraker-timelapse icon indicating copy to clipboard operation
moonraker-timelapse copied to clipboard

Bug: Snapshot Command Cancelled

Open eprouty opened this issue 1 year ago • 3 comments

Near the end of a print a snapshot command was cancelled for an undetermined reason... then it appears to hop between trying to capture the failed frame (1083) and failure + 1 (1084) but instead captures no additional frames after that failure.

Here's the log output showing this event:

2023-07-10 07:59:31,203 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001079.jpg) successfully finished
2023-07-10 08:00:23,990 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001080.jpg) successfully finished
2023-07-10 08:01:15,658 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001081.jpg) successfully finished
2023-07-10 08:01:16,810 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001082.jpg) successfully finished
2023-07-10 08:02:09,614 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg) cancelled
2023-07-10 08:02:09,615 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg
2023-07-10 08:02:59,673 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg) cancelled
2023-07-10 08:02:59,674 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg
2023-07-10 08:03:00,600 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001084.jpg) cancelled
2023-07-10 08:03:00,600 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001084.jpg
2023-07-10 08:03:49,298 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg) cancelled
2023-07-10 08:03:49,299 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg
2023-07-10 08:04:40,232 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg) cancelled
2023-07-10 08:04:40,232 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg
2023-07-10 08:04:40,653 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001084.jpg) cancelled
2023-07-10 08:04:40,654 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001084.jpg
2023-07-10 08:05:30,904 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg) cancelled
2023-07-10 08:05:30,904 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg
2023-07-10 08:06:17,094 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg) cancelled
2023-07-10 08:06:17,095 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001083.jpg
2023-07-10 08:06:17,426 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001084.jpg) cancelled
2023-07-10 08:06:17,426 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost:8080/?action=snapshot -O /tmp/timelapse/printer/frame001084.jpg

Any ideas what might have caused this?

If anyone has a suggestion for where to look in the code base I'd be happy to contribute a fix and/or feature to properly mitigate this issue so that you may lose a frame or two but the timelapse can continue and finish as successfully as possible.

eprouty avatar Jul 10 '23 13:07 eprouty