[AC-3105] Camera crashes Android 2.3.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-06-10T04:18:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 2.3, android, camera, release-1.7.0 |
Reporter | Patric de Waha |
Assignee | Tony Guntharp |
Created | 2011-05-26T00:43:24.000+0000 |
Updated | 2016-03-08T07:48:09.000+0000 |
Description
After creating an heavyweight window, this javascript is being executed in its context.
Titanium.Media.showCamera({
success:function(event) {},
cancel:function() {},
error:function(error) {},
allowEditing:true
});
That's all.
Complete log of the device until crash can be found here:
[http://pastebin.com/5C5JzBpG]
Thanks in advance for fixing this, it holds us back from releasing.
-----------------------------------------------------------
Small extract from pastebin regarding the exception
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): (main) [5649,10361] Sending event: exception on thread: main msg:java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data dat=file:///sdcard/dcim/Camera/zapon/tia1482999171.jpg typ=image/jpeg (has extras) }} to activity {com.zapon.zapon/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException; Titanium 1.7.0,2011/03/31 12:08,6cae16
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data dat=file:///sdcard/dcim/Camera/zapon/tia1482999171.jpg typ=image/jpeg (has extras) }} to activity {com.zapon.zapon/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.ActivityThread.deliverResults(ActivityThread.java:2504)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.ActivityThread.handleSendResult(ActivityThread.java:2546)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.ActivityThread.access$2000(ActivityThread.java:121)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:966)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.os.Looper.loop(Looper.java:123)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.ActivityThread.main(ActivityThread.java:3652)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at java.lang.reflect.Method.invokeNative(Native Method)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at java.lang.reflect.Method.invoke(Method.java:507)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at dalvik.system.NativeStart.main(Native Method)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): Caused by: java.lang.NullPointerException
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at java.io.File.fixSlashes(File.java:205)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at java.io.File.init(File.java:189)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at java.io.File.<init>(File.java:139)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at ti.modules.titanium.media.MediaModule$CameraResultHandler.onResult(MediaModule.java:318)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:52)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:68)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:351)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.Activity.dispatchActivityResult(Activity.java:3907)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): at android.app.ActivityThread.deliverResults(ActivityThread.java:2500)
05-26 09:39:14.318: ERROR/TiUncaughtHandler(952): ... 11 more
05-26 09:39:14.348: ERROR/AndroidRuntime(952): FATAL EXCEPTION: main
05-26 09:39:14.348: ERROR/AndroidRuntime(952): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data dat=file:///sdcard/dcim/Camera/zapon/tia1482999171.jpg typ=image/jpeg (has extras) }} to activity {com.zapon.zapon/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.ActivityThread.deliverResults(ActivityThread.java:2504)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.ActivityThread.handleSendResult(ActivityThread.java:2546)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.ActivityThread.access$2000(ActivityThread.java:121)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:966)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.os.Looper.loop(Looper.java:123)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.ActivityThread.main(ActivityThread.java:3652)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at java.lang.reflect.Method.invokeNative(Native Method)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at java.lang.reflect.Method.invoke(Method.java:507)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at dalvik.system.NativeStart.main(Native Method)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): Caused by: java.lang.NullPointerException
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at java.io.File.fixSlashes(File.java:205)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at java.io.File.init(File.java:189)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at java.io.File.<init>(File.java:139)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at ti.modules.titanium.media.MediaModule$CameraResultHandler.onResult(MediaModule.java:318)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:52)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:68)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:351)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.Activity.dispatchActivityResult(Activity.java:3907)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): at android.app.ActivityThread.deliverResults(ActivityThread.java:2500)
05-26 09:39:14.348: ERROR/AndroidRuntime(952): ... 11 more
In order for us to progress this issue, please edit your ticket to include a proper [Use-case](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases) (ie one that runs without modification). Also, please use the wiki markup to make the ticket easier to understand. Thank you
No response from user after request for information. Marking resolved / incomplete.
Closed after 30 days of inactivity.