This project is read-only.

Out of memory with many ARItems and attitude changed WP8


When adding many items to ar overlay, moving phone around couses Out of memory exception. I was able to pinpoint source code that couse this behaviour:
    // Set the transform, which moves the item
                    wvItem.RenderTransform = ct;
In file WorldView.cs line 268. Memory profiler for windows phone shows that 100 MB+ for texture memory, so im guesing that changing transform for item fires rebuilding of list view item textures and old are not released.

ArItem content is just string, no data template attached to arview.

Any ideas ? Someone else can reproduce this behaviour ?


bemon wrote Nov 29, 2013 at 6:32 PM

Well, i think i found answer for that in short time. Using arview on page with phone toolkit page transitions is cousing this. For now i dont know why its happening ;(

itoledo wrote Dec 31, 2013 at 1:47 PM

Also happens with Telerik RadPhoneApplicationFrame, out of memory.

It's also causing icons to disappear/reappear randomly. Removing transitions makes it work.

Thanks for your answer, helped me a lot!