1

Closed

ImageTile memory consumption

description

  1. Mesurement
    For mesure memory consumption I am using Memory Counter from Coding4Fun Tools;
  2. Tile reload
    In the view model I have ObservbaleCollection;
    MyEntity has List of images url;
    For reload purpose I am using Clear method of ObeservableCollection and Add method;
    After each iteration of Clear and Add actions memory consumption increasing;
    I do not re-create ObservableCollection only Clear, Add and Insert in some cases;

file attachments

Closed Feb 25, 2013 at 7:33 AM by
solved :-) Completed: At revision: 78717

comments

crutkas wrote Feb 4, 2013 at 8:46 PM

I really need you to create a sample so I can attach a debugger to it and reproduce the issue

crutkas wrote Feb 10, 2013 at 8:20 PM

Hey lubushyn, I really need a sample I can put a debugger against so I can target your exact issue. Me attempting to recreate what is happening typically doesn't work as I'm not seeing the case in my sample

lubushyn wrote Feb 12, 2013 at 6:54 AM

Hi crutkas. Thank you for assistance. But I have some troubles now. I will create sample during next few days. I'am sorry. But I cannot do it now. It's very important issue for me. My skype: lubushyn. If nesessary

lubushyn wrote Feb 12, 2013 at 6:55 AM

Hi crutkas. Thank you for assistance. But I have some troubles now. I will create sample during next few days. I'am sorry. But I cannot do it now. It's very important issue for me. My skype: lubushyn. If nesessary

crutkas wrote Feb 12, 2013 at 8:59 AM

I just attempted to create this pretty singular with it pulling some large images from flickr that I took and the memory jumps up and runs high (as expected since it has between 6 to 9 images in memory) where clicking the image tile removes it from the DOM and is recreated.

If you get latest, you'll find my failed repo in [trunk]\Bugs\ImageTileMemoryIssue

crutkas wrote Feb 15, 2013 at 2:08 AM

Any word on a repo test project?

crutkas wrote Feb 16, 2013 at 11:20 PM

lubushyn, I really need a repo project from you on this bug or I will have to close this out as "cannot reproduce"

lubushyn wrote Feb 17, 2013 at 7:24 PM

Hi, crutkas. I am sorry for the delay from my side. But I have a very big problems with my father health now. And I can work from time to time. But attached code more similar with mine and it show memory consumption problem. After few seconds application raise OutOfMemoryException.

crutkas wrote Feb 18, 2013 at 9:48 PM

i see it, looking into why

crutkas wrote Feb 19, 2013 at 3:32 AM

ok, I did a few perf gains and memory reductions for WP8/WinStore but still seeing after a few minutes of hard running, it gets bogged down. Think there are pinned objects ... now to track them down :-)

crutkas wrote Feb 19, 2013 at 4:17 AM

I know where the leak is, just not sure how to shut it.

crutkas wrote Feb 19, 2013 at 5:30 AM

The memory issue may be a platform issue. I have put it under an extreme stress condition, 50 items in observablecollection with a 1 second forced refresh of it. 50 ms cycle for the images on the image tile as well. It ran find for over four minutes on the 512mb emulator.

If I did my math correctly, that is 12,000 forced OC cycles and a total of 240,000 image shifts.

This is a hands down much improved memory scenario. I'm going to have a friend help me out with some lower level memory debugging to verify where the last little bit is.