cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Wayne Gallavin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-11068) Application getting crashed on Android, iOS and Windows(Universal) when more than 20 images are captured using BASE64 DATA URL format.
Date Wed, 14 Mar 2018 21:50:00 GMT

    [ https://issues.apache.org/jira/browse/CB-11068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16399479#comment-16399479
] 

Jason Wayne Gallavin edited comment on CB-11068 at 3/14/18 9:49 PM:
--------------------------------------------------------------------

I am having this issue also. It only happens on older devices that have a lower memory limit.
More me it is happening on an older iPad (the client's). after around 20 camera shots the
app gets a SIGKILL 9 from IOS.

It may be due to a memory leak but the memory usage doesn't seem to increase by that much
over time when profling. I used instruments and the run information in xcode to view both
the native app memory and the webview memory.

It does however make ~20m-30m spike for a 150kb image after compression. I understand the
image needs to be resized but why does that still need to be in memory when base64 encoding?


In some applications the javascript side needs the base64 string for quicker database access
etc. I think giving the option to serialize chunks at a time would reduce the memory spike.
This modification would need to modify CameraLauncher.java:1269 or the equivalent place on
ios.


was (Author: jasekiw):
I am having this issue also. It only happens on older devices that have a lower memory limit.
It may be due to a memory leak but the memory usage doesn't seem to increase by that much
over time but it does jump quite a bit because of the serialization of the image. In some
applications the javascript side needs the base64 string for quicker database access etc.
I think giving the option to serialize chunks at a time would reduce the memory spike. This
modification would need to modify CameraLauncher.java:1269 or the equivalent place on ios.

> Application getting crashed on Android, iOS and Windows(Universal) when more than 20
images are captured using BASE64 DATA URL format.
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-11068
>                 URL: https://issues.apache.org/jira/browse/CB-11068
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-camera
>    Affects Versions: 3.5.0
>         Environment: Android, Windows and iOS mobiles
>            Reporter: COE
>            Priority: Major
>              Labels: android, ios, triaged, wfc, windows
>
> We have used Cordova for our hybrid mobile application targeting multiple platforms with
usage of Camera Plugin. After a certain no of images are captured, the camera feature is getting
crashed and application is becoming inaccessible. Please suggest us a possible solution.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message