-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS - App crashes when load full image size #209
Comments
@LSmint 300 x 2000 is not an extremely large image and should not lead to OOM. However, please do let me know what is the device you are using in this scenario - I've tested on several iPhones but was not able to reproduce anything close to a memory exception. Apart from that, you can't modify the ImageAsset size but only the size of the created ImageSource. |
Hi @NickIliev, I'm using iPhoneX version 11.2.6. I found that the error exception occur only if i apply nativescript-imagecropper after the return image from imagepicker. For temporary solution, i resize the image size as following:
|
Closing this one as the issue seems related to the image cropper and not to nativescript-imagepicker. |
@NickIliev @LSmint Actually I get a similar memory problem when using the image-picker plugin by itself. In fact, even on the demo app, the memory usage is way higher than expected. I posted about it here: |
I was encountered an issue after loaded the image while using ImageSource module. The trace log shows 'Unable to load image data, ' when selected a large image size such as 3000 width x 2000 height.
Here is how i called the imagepicker and convert it to imagesource:
After tried a few times to reselect the image, i get another error and app was crashed due to memory leaked. "Connection to assetsd was interrupted or assetsd die. Unbalanced calls to begin/end appearance transitions for <UIViewControllerImpl: 0x12bd13230>. Received memory warning."
Any proper way to get the image source or resize the image before load the image source? I'm using the latest version of nativescript-imagepicker.
The text was updated successfully, but these errors were encountered: