Bi-monthly release with minor bug fixes and improvements
Cannot convert /tmp/indi_V62GLb : Unsufficient memory
Exposure failed to parse raw image.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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
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.
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
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
RawProcessor.recycle()
int read_libraw(const char *filename, uint8_t **memptr, size_t *memsize, int *n_axis, int *w, int *h, int *bitsperpixel,
char *bayer_pattern)
{
int ret = 0;
// Creation of image processing object
LibRaw RawProcessor;
// Let us open the file
if ((ret = RawProcessor.open_file(filename)) != LIBRAW_SUCCESS)
{
DEBUGFDEVICE(device, INDI::Logger::DBG_ERROR, "Cannot open %s: %s", filename, libraw_strerror(ret));
RawProcessor.recycle();
return -1;
}
// Let us unpack the image
if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS)
{
DEBUGFDEVICE(device, INDI::Logger::DBG_ERROR, "Cannot unpack %s: %s", filename, libraw_strerror(ret));
RawProcessor.recycle();
return -1;
}
...
...
for (int i = 0; i < RawProcessor.imgdata.rawdata.sizes.height; i++)
{
memcpy(image, src, RawProcessor.imgdata.rawdata.sizes.width * 2);
image += RawProcessor.imgdata.rawdata.sizes.width;
src += RawProcessor.imgdata.rawdata.sizes.raw_width;
}
return 0;
}
~/dev/astronomy/indi/3rdparty/indi-gphoto>grep -r "recy" .
./gphoto_driver.cpp: lib_raw.recycle();
./gphoto_readimage.cpp: RawProcessor.recycle();
./gphoto_readimage.cpp: RawProcessor.recycle();
./gphoto_readimage.cpp: RawProcessor.recycle();
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
sudo add-apt-repository ppa:mutlaqja/indinightly
sudo apt install indi-gphoto
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.