Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled promise rejection{"code":120030,"message":"CAMERA_BUSY"}__ERROR #8

Open
wazsq opened this issue Oct 20, 2017 · 1 comment

Comments

@wazsq
Copy link

wazsq commented Oct 20, 2017

第一次触发打开照相机权限还是可以的,第二次就报异常了

10-20 19:55:52.605 3783-3883/com.alibaba.weex D/weex: callJS >>>> instanceId:3function:callJS tasks:[{"data":"3","type":2},{"data":"[{"args":["124","click",{"position":{"height":65.625,"width":750,"x":0,"y":713.5417}},null],"method":"fireEvent"}]","type":3}]
10-20 19:55:52.609 3783-3883/com.alibaba.weex D/weex: [WXBridgeManager] callNativeModule >>>> instanceId:3, module:nat/camera, method:captureImage, arguments:[{},"3"]
10-20 19:55:52.617 3783-3883/com.alibaba.weex D/weex: callJS >>>> instanceId:3function:callJS tasks:[{"data":"3","type":2},{"data":"[{"args":["3",{"error":{"code":120030,"message":"CAMERA_BUSY"}},false],"method":"callback"}]","type":3}]
10-20 19:55:52.619 3783-3883/com.alibaba.weex E/jsengine: ReportException : Exception: TypeError: null is not an object (evaluating 't.path')
(global function):5:895
(global function):5:2625
f@(weex framework):3:30852
(weex framework):3:31099
forEach@[native code]
d@(weex framework):3:30998
(weex framework):8:22648
10-20 19:55:52.619 3783-3883/com.alibaba.weex E/weex: reportJSException >>>> instanceId:3, exception function:callJS, exception:Exception: TypeError: null is not an object (evaluating 't.path')
(global function):5:895
(global function):5:2625
f@(weex framework):3:30852
(weex framework):3:31099
forEach@[native code]
d@(weex framework):3:30998
(weex framework):8:22648
10-20 19:55:52.621 3783-3883/com.alibaba.weex D/weex: callJS >>>> instanceId:function:setTimeoutCallback tasks:[{"data":"3","type":2}]
10-20 19:55:52.623 3783-3883/com.alibaba.weex D/jsLog: Unhandled promise rejection{"code":120030,"message":"CAMERA_BUSY"}__ERROR

也就是说重复触发会有问题,不知道其他人有没有碰到这种问题,跪求大佬解惑

@acathur
Copy link
Member

acathur commented Oct 23, 2017

请提供完整调用代码,及调试设备信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants