You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shemrick Flannigan (JIRA)" <ji...@apache.org> on 2017/10/07 16:21:00 UTC

[jira] [Created] (CB-13415) Importing corrupt images using the Camera plugin crashes the app

Shemrick Flannigan created CB-13415:
---------------------------------------

             Summary: Importing corrupt images using the Camera plugin crashes the app
                 Key: CB-13415
                 URL: https://issues.apache.org/jira/browse/CB-13415
             Project: Apache Cordova
          Issue Type: Bug
         Environment: Android, iOS
            Reporter: Shemrick Flannigan
            Priority: Critical


ISSUE
Importing corrupt images using the Camera plugin crashes the app

Current Behavior
# Importing a corrupt image using the Cordova Camera plugin crashes the Cordova app which uses the plugin

Expected Behavior
# Importing a corrupt image using the Cordova Camera plugin:
#* Throws an exception which can be caught by the Cordova app which uses the plugin
#* Does not crash the Cordova app which uses the plugin
#* Allows the Cordova app which uses the plugin to render a Toast error message relaying the error

# # Platforms affected
#* Android
#* iOS

REFERENCES
# [Sample corrupt image which crashes the app | https://www.dropbox.com/s/e7dz007svtvscbc/Corrupt_Image_4.7MB_13500x13500.D2.jpg?dl=0]
# [Technique used to wrap the call in a Try/Catch block in a callable inner class to prevent an app crash | https://stackoverflow.com/questions/19183174/phonegap-video-capture-crashes] 

ADDITIONAL INFORMATION
# Importing corrupt images does not crash apps which do not use the Camera plugin, such as:
#* Yelp mobile app
#* Slack mobile app



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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