You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Ingo Bürk (JIRA)" <ji...@apache.org> on 2013/01/24 08:53:13 UTC

[jira] [Created] (CB-2292) ArithmeticException in org.apache.cordova.CameraLauncher.calculateAspectRatio

Ingo Bürk created CB-2292:
-----------------------------

             Summary: ArithmeticException in org.apache.cordova.CameraLauncher.calculateAspectRatio
                 Key: CB-2292
                 URL: https://issues.apache.org/jira/browse/CB-2292
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.3.0
         Environment: User was running Android JellyBean in a Samsung Galaxy S3
            Reporter: Ingo Bürk
            Assignee: Joe Bowser


App crashes when calling getPicture() to load an image from the gallery. No further information about the picture trying to be loaded.

StackTrace:

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=50, result=-1, data=Intent { dat=content://com.sec.android.gallery3d.provider/sns/item/10150626814657661 }} to activity {MYAPP/MYAPP.MainActivity}: java.lang.ArithmeticException: divide by zero
at android.app.ActivityThread.deliverResults(ActivityThread.java:3183)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3226)
at android.app.ActivityThread.access$1200(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1272)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4918)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ArithmeticException: divide by zero
at org.apache.cordova.CameraLauncher.calculateAspectRatio(CameraLauncher.java:606)
at org.apache.cordova.CameraLauncher.getScaledBitmap(CameraLauncher.java:575)
at org.apache.cordova.CameraLauncher.onActivityResult(CameraLauncher.java:407)
at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:806)
at android.app.Activity.dispatchActivityResult(Activity.java:5232)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3179)
... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira