Search found 4 matches

by chu_bun
2020-03-05T11:59:45-07:00
Forum: MagickWand
Topic: Function calls take longer and longer to complete over time.
Replies: 5
Views: 2991

Re: Function calls take longer and longer to complete over time.

ClearMagickWand fixes the problem. Thanks.

Regarding freeing the gphoto2 buffer, it is declared const and shows a compiler warning/error when freed. Since the above works, we didn't inspect this further.
by chu_bun
2020-03-05T11:00:29-07:00
Forum: MagickWand
Topic: Function calls take longer and longer to complete over time.
Replies: 5
Views: 2991

Re: Function calls take longer and longer to complete over time.

Does your memory usage increase at each iteration? MagickReadImageBlob() allocates memory for the image in the wand. You don't show code that frees this image. So I should call ClearMagickWand on each iteration? By the way, "top" does not show memory usage increase, just spikes in CPU usage once in...
by chu_bun
2020-03-05T10:54:36-07:00
Forum: MagickWand
Topic: Function calls take longer and longer to complete over time.
Replies: 5
Views: 2991

Re: Function calls take longer and longer to complete over time.

magick wrote:
2020-03-03T17:12:40-07:00
See https://github.com/gphoto/libgphoto2/issues/278. Do you need to free the gphoto2 buffer?
I didn't free the buffer, because the document seems to imply it will be managed by the CamFile object. Will try free() to see what happens.
by chu_bun
2020-03-03T16:49:53-07:00
Forum: MagickWand
Topic: Function calls take longer and longer to complete over time.
Replies: 5
Views: 2991

Function calls take longer and longer to complete over time.

We have an app using libgphoto2 and libmagickwand on Raspberry Pi. The app captures a preview from a camera with gphoto2 and uses magickwand to draw a circle at the center of the preview. The app starts up fine. But over time, calls to magickwand often take longer and longer to complete. The code in...