jdevuono54 opened a new issue, #917: URL: https://github.com/apache/cordova-plugin-camera/issues/917
# Bug Report ## Problem ### What is expected to happen? The camera should open, capture a high-quality photo, and return the captured image URI to the application without causing an out-of-memory (OOM) crash. ### What does actually happen? On a Redmi 9A device, the application crashes right **after pressing the capture button** in the camera interface, **before reaching onActivityResult**. The crash log indicates an OOM error. ## Information - The crash happens **before onActivityResult,**, right **after pressing the capture button** Log Output: ``` 2024-11-06 11:21:18.432 29632-29784 cr_ChildProcessConn [APP_NAME] W onServiceDisconnected (crash or killed by oom): pid=29786 bindings:W S 2024-11-06 11:21:18.671 29632-29632 chromium [APP_NAME] E [ERROR:aw_browser_terminator.cc(165)] Renderer process (29786) crash detected (code -1). ``` ### Command or Code ```javascript return new Promise((resolve, reject) => { navigator.camera.getPicture(path => { Filesystem.resolveUrl(path).then(resolve, reject); }, error => { if (error === 'No Image Selected'){ return resolve(null); } reject(error); }, { destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, quality: 100, allowEdit: false, correctOrientation: true, saveToPhotoAlbum: true, encodingType: Camera.EncodingType.JPEG, mediaType: Camera.MediaType.PICTURE }); }) as unknown as Promise<Entry>; ``` ### Environment, Platform, Device - Device: Redmi 9A - Android Version: 10 (MIUI 12.0.17) - Cordova Plugins: - cordova-plugin-camera: ^8.0.0 - cordova-plugin-file: ^8.0.1 - Platform: Android ### Version information - cordova-android: ^13.0.0 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org