Hi Rolf,

I created this bug: https://bugzilla.xamarin.com/show_bug.cgi?id=4856

It is looping a 1001 pages PDF and creates PNGs from every page.
Nothing is kept in memory. Thumb is saved and disposed.
In Instruments VM Tracker, "CG Image" tagged memory grows up to more
than 100MB. This is IMHO wrong. It should be absolutely constant.
I commented out all code that uses the images or brings them on
screen. They are only rendered and saved.

René

2012/5/2 René Ruppert <rene.rupp...@googlemail.com>:
> Just for info: I’m doing something similar here. A background thread is
> creating thumb images of huge PDFs.
>
> The thread keeps on  looping the pages and creates UIImages and saves them
> to disk. Everything is encapsulated in using blocks.
>
> In VM Tracker I can see that the memory type “CGImage” keeps on growing
> until the last image has been saved to disk and the thread exits. Meanwhile,
> I’m getting 200MB of “CGImage” dirty memory. I would expect the CGImages to
> be collected immediately because of the using block.
>
> Even after the thread “Memory tag 70” remains high – and from what I heard,
> this is cached image data. There shouldn’t be any.
>
> I’ll try if I can hack a small demo project tomorrow.
>
>
>
> René
>
>
>
> Von: monotouch-boun...@lists.ximian.com
> [mailto:monotouch-boun...@lists.ximian.com] Im Auftrag von Rolf Bjarne
> Kvinge
> Gesendet: Mittwoch, 2. Mai 2012 12:50
> An: fmuaddib
> Cc: MonoTouch Forums
> Betreff: Re: [MonoTouch] Strange memory leak in my MonoTouch app... only 5
> MB live bytes, yet memory goes up to 90 MB and crash
>
>
>
> Hi,
>
>
>
> Can you create a complete test project I can try out? I'd like to figure out
> what's going on here, but I can't see anything wrong from your code.
>
>
>
> Rolf
>
>
>
> On Wed, May 2, 2012 at 10:55 AM, fmuaddib <fmuad...@gmail.com> wrote:
>
> I've a problem with a strange memory leak in my Monotouch app. If you
> can help please check my post on stackoverflow:
>
> http://stackoverflow.com/questions/10373464/monotouch-app-killed-for-low-mem-why-live-bytes-allocation-5-mb-top
>
> Any help is appreciated! Thanks in advance!
> _______________________________________________
> MonoTouch mailing list
> MonoTouch@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to