how to solve "('convert'): generic error" problem?

Hello. I made a workflow which includes 2 scripts and a image processing tool. First script is for converting from canon raw to fits and calibration frames, second is for stacking those calibrated light frames. There is a stage that I apply background extraction to all calibrated light frames in the same sequence. Then I apply second script. This workflow worked for 64 light frames. However, I tried for 2048 and it failed. This is last 14 rows:

00:14:48: Saving FITS: file …/masters/dark_stacked.fit, 1 layer(s), 6024x4020 pixels, 32 bits
00:14:48: Stacked sequence successfully.
00:14:48: Execution time: 5.50 s
00:14:48: Running command: cd
00:14:48: Setting CWD (Current Working Directory) to ‘D:\Astrophotography\Rho Ophiuchi’
00:14:48: # Convert Light Frames to .fit files
00:14:48: Running command: cd
00:14:48: Setting CWD (Current Working Directory) to ‘D:\Astrophotography\Rho Ophiuchi\lights’
00:14:48: Running command: convert
00:14:48: You should pass an extra argument -fitseq to convert your sequence to fitseq format.
00:14:48: Error in line 56 (‘convert’): generic error.
00:14:48: Exiting batch processing.
00:14:48: Setting CWD (Current Working Directory) to ‘D:\Astrophotography\Rho Ophiuchi’
00:14:48: Script execution failed.

What should I do exactly? By the way, I didn’t write scripts by myself. I took them from siril’s osc_preprocessing scripts. I just divided it by 2.

I’m not sure why this is a limitation for convert, but that will be a limitation for stacking, caused by the operating system’s limits:

Some operating systems limit the number of images that can be opened at the same time, which is required for median or mean stacking methods. For Windows, the limit is 2048 images. If you have a lot of images, you should use another type of sequence, described below.
(from Sequences — Siril 1.2.0 documentation )

The log you showed also shows the solution You should pass an extra argument -fitseq to convert your sequence to fitseq format.

It’s a limitation from Windows, for which we can’t have more than a certain number of file handles opened at the same time (the actual number varies depending on which Windows build you have, we have a query which returned 2048 in your case). Problem is you won’t be able to stack with such a sequence because that’s a step that requires to have all the files handles opened at the same time for performance reasons (conversion, calibration and registration could work without this limitation).
We’ve prefered to block early on, at the conversion step (and give an indication on a possible solution), so that you don’t go through all the previous steps only to discover at stacking that you can’t continue.

1 Like