"Insufficient memory to continue the execution of the program."
I used emulator, HTC 8x test. How to fix it.
My project: http://www.mediafire.com/download/5hk27tzhu0wflx2/TEST_ImageEditor.rar
Thank.
16 Answers, 1 is accepted
I've posted an answer to your other support thread. Take a look at it and let us know what you think.
Regards,
Kiril Stanoev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thanks for writing.
RadImageEditor is not designed for editing huge files since the resources on a phone a extremely limited. Please downscale your image to an appropriate size first and then proceed with editing.
Thank you for understanding.
Regards,
Victor
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Can you guys give us information about limitations? What is the maximum resolution or size and etc. The picture 3264x1836 should take only about 24Mb in memory (w * h * 4 / 1024 / 1024). I don't think its a problem to hold it on WP apps. Right now the limit is 180Mb for low memory devices.
Thanks in advance,
Victor
Thank you for bringing our attention to this. Our preliminary investigations on this matter shown that even the image itself does not exceed the minimum memory, when transformation starts to be applied the framework consider the memory usage excesive and throws out of memory exception. We will dig deeper into these issues in order to determine better memory handling in such scenarios.
Regards,
Tsvyatko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I`v just tried to load image 4312x2868 through WriteableBitmap and control crashes with Insufficient memory exception or with unexpected range if i delete all tools. I know there is limitation on texture on WP for 4000px but for live-view looks like control create a small image for preview and this can not be bottleneck.
BitmapImage have a nice properties decodePixelHeight and decodePixelWidth using this properties you can resize image without full unpacking it in memory. I think you need take a look on it.
Thank you for digging into this matter. We have looked into the issue. You are correct - the thumbnail we use for preview is much smaller than the original and it is not the bottleneck. The issue occurs when processing the original image as we try to preserve the original size. In addition when rotating the image we use slightly bigger bitmap to render the image correctly.
We will consider evaluating the image size and if the image when needed scale it down automatically. This will result in creating different, smaller image than the input, so we will add it as an option.
Regards,
Tsvyatko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Any news on that issue? By the way Nokia Imaging SDK have a nice high perf tools for rotation and etc and optimized on low memory devices maybe you will look at it and use it http://developer.nokia.com/lumia/nokia-apis/imaging ? It have nice feature to reframe image and work with partials of image to decrease of using a lot memory.
-Victor
we have evaluated using Nokia Imaging SDK and it is in our backlog for future releases. We will do our best to add this in our next official release.
Regards,
Tsvyatko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
If you can give us any approximate dates for this release it will be fantastic.
We will do our best to include this in our next official release which will be available at the end of October.
Let me know should you have any other questions or suggestions.
Regards,
Ivaylo Gergov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
PS: There are 3 Victors in this thread. What are the changes :)
our official release is scheduled for the end of October. Meanwhile we have considering preparing blogpost describing how Nokia Imaging SDK can be utilized to extend our current ImageEditor. Once it is published we will post link in this thread.
Regards,
Tsvyatko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Any news here guys?
Here is the link to the mentioned blog post : http://blogs.telerik.com/windowsphoneteam/posts/14-11-25/leveraging-the-nokia-imaging-sdk-in-your-windows-phone-app.
Regards,
Ivaylo Gergov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.