Hi smhxx,
I feel the same way. I am in trouble in exactly the same situation.
If you can reproduce the problem, can you post a log?
It will surely help you to analyze the situation.

The normal log is as follows.

INFO    1001.632236 sec    : Exposure done, downloading image...
DEBUG    1007.745475 sec    : read_libraw: raw_width: 6288 top_margin 0 left_margin 0 first_visible_pixel 0
DEBUG    1007.780411 sec    : read_libraw: rawdata.sizes.width: 6288 rawdata.sizes.height 4056 memsize 51008256 bayer_pattern RGGB
DEBUG    1007.900445 sec    : read_libraw: memsize (51008256) naxis (2) w (6288) h (4056) bpp (16) pattern (RGGB)
DEBUG    1008.470803 sec    : Uploading file. Ext: fits, Size: 51013440, sendImage? Yes, saveImage? No
DEBUG    1009.271505 sec    : Upload complete

The error log is as follows.
INFO    1052.571810 sec    : Exposure done, downloading image...
ERROR    1057.966632 sec    : Cannot convert /tmp/indi_V62GLb : Unsufficient memory
ERROR    1057.967516 sec    : Exposure failed to parse raw image.

An error is output by the read_libraw () function defined in indi-gphoto / gphoto_readimage.cpp.
Looking at the source code, the result of Libraw 's raw2image () is an error.
It is considered an error due to memory shortage, so I do not know whether there is a problem with libraw or indi_gphoto.
There is a possibility that indi_gphoto forgot to release memory.

I tracked memory usage. (ps aux command)
It is a comparison of VSZ and RSS when I capture 10 times.
Count	%MEM	VSZ	RSS	COMMAND
1	10.2	150068	96820	indi_canon_ccd
2	13.7	183432	129996	indi_canon_ccd
3	17.2	216544	163108	indi_canon_ccd
4	20.7	249664	196228	indi_canon_ccd
5	24.1	282784	229348	indi_canon_ccd
6	27.6	315916	262480	indi_canon_ccd
7	31.1	349064	295628	indi_canon_ccd
8	34.6	382224	328788	indi_canon_ccd
9	38.1	415392	361956	indi_canon_ccd
10	41.6	448560	395124	indi_canon_ccd

The memory used is increasing about 33000 kb each time it is taken.
And that memory is not freed when the capture is over.
The only way to free it is to restart the INDI server.

Read More...