cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SrajanPathak <...@git.apache.org>
Subject [GitHub] cordova-plugin-camera issue #245: Handle OutOfMemoryError exception when sca...
Date Wed, 26 Apr 2017 08:27:21 GMT
Github user SrajanPathak commented on the issue:

    https://github.com/apache/cordova-plugin-camera/pull/245
  
    this issue is reproduced on Samsung S5, app crashes when we take the picture from the
camera
    
    below is the screenshot of memory usage at the time of crash
    
    ![capture](https://cloud.githubusercontent.com/assets/8060648/25424739/1c40d268-2a87-11e7-86f0-f82b06e2a641.PNG)
    
    here are the logs
    
    E/libEGL: ------------------------------------------------
    E/libEGL: HWUI Context(-1670624000) Damaged Report-Shader
    E/libEGL: HWUI   Shaders(1):
    E/libEGL: HWUI     Unit 0) DAMAGED Handle(25)
    E/libEGL: ------------------------------------------------
    E/libGLESv2: HWUI Protection: wrong calling from app context F:ES2-glDeleteShader, handle(25)
    D/libEGL: eglTerminate EGLDisplay = 0x9b7a5834
    D/CordovaActivity: Incoming Result. Request code = 33
    D/CordovaInterfaceImpl: Sending activity result to plugin
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Starting a blocking GC Alloc
    I/art: Starting a blocking GC Alloc
    I/art: Starting a blocking GC Alloc
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Alloc partial concurrent mark sweep GC freed 6(192B) AllocSpace objects, 0(0B)
LOS objects, 5% free, 120MB/128MB, paused 192us total 6.918ms
    I/art: Starting a blocking GC Alloc
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Alloc concurrent mark sweep GC freed 6(12KB) AllocSpace objects, 0(0B) LOS objects,
5% free, 120MB/128MB, paused 210us total 11.587ms
    I/art: Forcing collection of SoftReferences for 19MB allocation
    I/art: Starting a blocking GC Alloc
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Alloc concurrent mark sweep GC freed 11(344B) AllocSpace objects, 0(0B) LOS objects,
5% free, 120MB/128MB, paused 203us total 9.859ms
    W/art: Throwing OutOfMemoryError "Failed to allocate a 20455264 byte allocation with 7831968
free bytes and 7MB until OOM"
    I/art: Starting a blocking GC Alloc
    I/art: Starting a blocking GC Alloc
    I/art: Starting a blocking GC Alloc
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Alloc partial concurrent mark sweep GC freed 4(128B) AllocSpace objects, 0(0B)
LOS objects, 5% free, 120MB/128MB, paused 192us total 6.832ms
    I/art: Starting a blocking GC Alloc
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Alloc concurrent mark sweep GC freed 2(64B) AllocSpace objects, 0(0B) LOS objects,
5% free, 120MB/128MB, paused 208us total 9.932ms
    I/art: Forcing collection of SoftReferences for 19MB allocation
    I/art: Starting a blocking GC Alloc
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects,
5% free, 120MB/128MB, paused 242us total 12.225ms
    I/art: Starting a blocking GC HomogeneousSpaceCompact
    I/art: Clamp target GC heap from 136MB to 128MB
    I/art: HomogeneousSpaceCompact marksweep + semispace GC freed 0(0B) AllocSpace objects,
0(0B) LOS objects, 5% free, 120MB/128MB, paused 26.291ms total 26.291ms
    W/art: Throwing OutOfMemoryError "Failed to allocate a 20455264 byte allocation with 7831904
free bytes and 7MB until OOM"
    D/AndroidRuntime: Shutting down VM
    E/AndroidRuntime: FATAL EXCEPTION: main
          Process: com.<something>, PID: 9925
          java.lang.OutOfMemoryError: Failed to allocate a 20455264 byte allocation with 7831904
free bytes and 7MB until OOM
          at java.lang.StringFactory.newStringFromChars(Native Method)
          at java.lang.StringFactory.newStringFromChars(StringFactory.java:218)
          at java.lang.StringFactory.newStringFromBytes(StringFactory.java:203)
          at java.lang.StringFactory.newStringFromBytes(StringFactory.java:53)
          at java.lang.StringFactory.newStringFromBytes(StringFactory.java:45)
          at org.apache.cordova.camera.CameraLauncher.processPicture(CameraLauncher.java:1260)
          at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:525)
          at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:805)
          at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:152)
          at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:358)
          at android.app.Activity.dispatchActivityResult(Activity.java:7137)
          at android.app.ActivityThread.deliverResults(ActivityThread.java:4916)
          at android.app.ActivityThread.handleSendResult(ActivityThread.java:4963)
          at android.app.ActivityThread.access$1600(ActivityThread.java:221)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1848)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:158)
          at android.app.ActivityThread.main(ActivityThread.java:7224)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message