[ 
https://issues.apache.org/jira/browse/CB-8346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard B Knoll closed CB-8346.
-------------------------------
    Resolution: Fixed

> App silently crashes after crop intent task at [email protected]
> -----------------------------------------------------------
>
>                 Key: CB-8346
>                 URL: https://issues.apache.org/jira/browse/CB-8346
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>         Environment: Android 4.4.3 (Nexus 7)
>            Reporter: Shingo Toda
>            Priority: Minor
>
> After sequentially taking pictures with allowEdit == true, an app ends up 
> silently being killed. This issue may be reproduced using mobilespec as below.
> # Set allowEdit to true and sourceType to CAMERA
> # Touch "Get Picture"
> # Take photo
> # Really resize the taken picture
> # Do this cycle several times
> Maybe the first a few of photos are successfully retrieved but at some point, 
> an app silently ends. 
> It seems that when an app ends, the app does not get resumed after crop 
> intent task is finished.
> This does not happen when I actually don't resize a photo within crop intent 
> task.
> Also I didn't see this happen on ICS device (Android 4.0.3).
> Log below was shown when I took a picture but the app ended.
> {noformat}
> 01-22 18:39:57.686: D/CordovaLog(14287): 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js:
>  Line 117 : Getting picture with options: 
> {"sourceType":1,"destinationType":1,"encodingType":0,"mediaType":0,"quality":50,"allowEdit":1,"correctOrientation":1,"saveToPhotoAlbum":1}
> 01-22 18:39:57.686: I/chromium(14287): [INFO:CONSOLE(117)] "Getting picture 
> with options: 
> {"sourceType":1,"destinationType":1,"encodingType":0,"mediaType":0,"quality":50,"allowEdit":1,"correctOrientation":1,"saveToPhotoAlbum":1}",
>  source: 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js
>  (117)
> 01-22 18:39:57.706: D/CordovaActivity(14287): Paused the application!
> 01-22 18:39:57.706: D/CordovaWebView(14287): Handle the pause
> 01-22 18:39:57.976: W/IInputConnectionWrapper(14287): showStatusIcon on 
> inactive InputConnection
> 01-22 18:39:58.387: W/ManagedEGLContext(14287): doTerminate failed: EGL count 
> is 2 but managed count is 1
> 01-22 18:40:06.685: D/CordovaActivity(14287): Incoming Result
> 01-22 18:40:06.685: D/CordovaActivity(14287): Request code = 34
> 01-22 18:40:06.685: D/CordovaActivity(14287): We have a callback to send this 
> result to
> 01-22 18:40:06.725: D/dalvikvm(14287): GC_FOR_ALLOC freed 433K, 33% free 
> 9194K/13660K, paused 12ms, total 12ms
> 01-22 18:40:06.765: I/dalvikvm-heap(14287): Grow heap (frag case) to 28.233MB 
> for 20155408-byte allocation
> 01-22 18:40:06.785: D/dalvikvm(14287): GC_FOR_ALLOC freed <1K, 14% free 
> 28876K/33344K, paused 15ms, total 15ms
> 01-22 18:40:06.785: W/CursorWrapperInner(14287): Cursor finalized without 
> prior close()
> 01-22 18:40:07.556: D/dalvikvm(14287): GC_EXPLICIT freed 19711K, 33% free 
> 9179K/13660K, paused 2ms+3ms, total 31ms
> 01-22 18:40:07.566: D/CordovaActivity(14287): Resuming the App
> 01-22 18:40:07.566: W/CursorWrapperInner(14287): Cursor finalized without 
> prior close()
> 01-22 18:40:07.566: D/CordovaActivity(14287): Paused the application!
> 01-22 18:40:07.566: D/CordovaWebView(14287): Handle the pause
> 01-22 18:40:07.896: W/ManagedEGLContext(14287): doTerminate failed: EGL count 
> is 2 but managed count is 1
> {noformat}
> When it successfully crops a photo, following log was shown after the message 
> above.
> {noformat}
> 01-22 18:39:54.923: D/CordovaActivity(14287): Incoming Result
> 01-22 18:39:54.923: D/CordovaActivity(14287): Request code = 100
> 01-22 18:39:54.923: D/CordovaActivity(14287): We have a callback to send this 
> result to
> 01-22 18:39:54.943: D/CordovaActivity(14287): Resuming the App
> 01-22 18:39:54.963: D/CordovaLog(14287): 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js:
>  Line 117 : URL: 
> file:///storage/emulated/0/Android/data/org.apache.mobilespec/cache/1421912394938.jpg
> 01-22 18:39:54.963: I/chromium(14287): [INFO:CONSOLE(117)] "URL: 
> file:///storage/emulated/0/Android/data/org.apache.mobilespec/cache/1421912394938.jpg",
>  source: 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js
>  (117)
> 01-22 18:39:55.123: D/CordovaLog(14287): 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js:
>  Line 117 : resolveLocalFileSystemURI is deprecated. Please call 
> resolveLocalFileSystemURL instead.
> 01-22 18:39:55.123: I/chromium(14287): [INFO:CONSOLE(117)] 
> "resolveLocalFileSystemURI is deprecated. Please call 
> resolveLocalFileSystemURL instead.", source: 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js
>  (117)
> 01-22 18:39:55.184: D/CordovaLog(14287): 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js:
>  Line 117 : Call to resolveLocalFileSystemURI() success: 
> ["file:///storage/emulated/0/Android/data/org.apache.mobilespec/cache/1421912394938.jpg"]
> 01-22 18:39:55.184: I/chromium(14287): [INFO:CONSOLE(117)] "Call to 
> resolveLocalFileSystemURI() success: 
> ["file:///storage/emulated/0/Android/data/org.apache.mobilespec/cache/1421912394938.jpg"]",
>  source: 
> file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js
>  (117)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to