使用微信小程序音视频(for 硬件)的方式在Android 12的设备上运行后,调用initByCaller发起通话,出现通话预览界面后,闪退,日志如下
2024-10-09 08:34:17.259 7982-7982 AndroidRuntime com.tencent.wmpf E FATAL EXCEPTION: main
Process: com.tencent.wmpf:container, PID: 7982
java.lang.RuntimeException: java.lang.IllegalArgumentException: getCameraCharacteristics:747: Unable to retrieve camera characteristics for unknown device : No such file or directory (-2)
at com.tencent.xweb.ReflectMethod.invoke(ReflectMethod.java:77)
at com.tencent.xweb.pinus.ExtendPluginClientInterfaceImpl.onPluginReady(ExtendPluginClientInterfaceImpl.java:41)
at com.tencent.xweb.pinus.PSExtendPluginClient.onPluginReady(PSExtendPluginClient.java:23)
at com.tencent.xweb.ExtendPluginManager$3.run(ExtendPluginManager.java:169)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7880)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.IllegalArgumentException: getCameraCharacteristics:747: Unable to retrieve camera characteristics for unknown device : No such file or directory (-2)
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:1263)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:591)
at android.hardware.camera2.CameraManager.openCameraDeviceUserAsync(CameraManager.java:662)
at android.hardware.camera2.CameraManager.openCameraForUid(CameraManager.java:958)
at android.hardware.camera2.CameraManager.openCameraForUid(CameraManager.java:979)
at android.hardware.camera2.CameraManager.openCamera(CameraManager.java:817)
at com.tencent.luggage.voip.service.SameLayerOpenVoiceOpenGlView.g(SameLayerOpenVoiceOpenGlView.kt:206)
at r66$b.run(VoipRoomPluginHandler.kt:151)
at r66$a.run(VoipRoomPluginHandler.kt:19)
at zn.l0(AppBrandRuntime.java:50)
at zn.k0(AppBrandRuntime.java:3)
at h9.f(AppBrandComponentWxaSharedKT.kt:10)
at r66.g(VoipRoomPluginHandler.kt:74)
at r66.m(VoipRoomPluginHandler.kt:26)
at fv0.e(DefaultExtendPluginClientProxy.java:53)
at lk6.onPluginReady(WebViewExtendPluginClient.java:10)
at java.lang.reflect.Method.invoke(Native Method)
at com.tencent.xweb.ReflectMethod.invoke(ReflectMethod.java:71)
at com.tencent.xweb.pinus.ExtendPluginClientInterfaceImpl.onPluginReady(ExtendPluginClientInterfaceImpl.java:41)
at com.tencent.xweb.pinus.PSExtendPluginClient.onPluginReady(PSExtendPluginClient.java:23)
at com.tencent.xweb.ExtendPluginManager$3.run(ExtendPluginManager.java:169)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7880)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: android.os.ServiceSpecificException: getCameraCharacteristics:747: Unable to retrieve camera characteristics for unknown device : No such file or directory (-2) (code 3)
at android.os.Parcel.createExceptionOrNull(Parcel.java:2439)
at android.os.Parcel.createException(Parcel.java:2409)
at android.os.Parcel.readException(Parcel.java:2392)
at android.os.Parcel.readException(Parcel.java:2334)
at android.hardware.ICameraService$Stub$Proxy.getCameraCharacteristics(ICameraService.java:812)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:570)
at android.hardware.camera2.CameraManager.openCameraDeviceUserAsync(CameraManager.java:662)
at android.hardware.camera2.CameraManager.openCameraForUid(CameraManager.java:958)
at android.hardware.camera2.CameraManager.openCameraForUid(CameraManager.java:979)
at android.hardware.camera2.CameraManager.openCamera(CameraManager.java:817)
at com.tencent.luggage.voip.service.SameLayerOpenVoiceOpenGlView.g(SameLayerOpenVoiceOpenGlView.kt:206)
at r66$b.run(VoipRoomPluginHandler.kt:151)
at r66$a.run(VoipRoomPluginHandler.kt:19)
at zn.l0(AppBrandRuntime.java:50)
at zn.k0(AppBrandRuntime.java:3)
at h9.f(AppBrandComponentWxaSharedKT.kt:10)
at r66.g(VoipRoomPluginHandler.kt:74)
at r66.m(VoipRoomPluginHandler.kt:26)
at fv0.e(DefaultExtendPluginClientProxy.java:53)
at lk6.onPluginReady(WebViewExtendPluginClient.java:10)
at java.lang.reflect.Method.invoke(Native Method)
at com.tencent.xweb.ReflectMethod.invoke(ReflectMethod.java:71)
at com.tencent.xweb.pinus.ExtendPluginClientInterfaceImpl.onPluginReady(ExtendPluginClientInterfaceImpl.java:41)
at com.tencent.xweb.pinus.PSExtendPluginClient.onPluginReady(PSExtendPluginClient.java:23)
at com.tencent.xweb.ExtendPluginManager$3.run(ExtendPluginManager.java:169)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7880)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
看上去是 WMPF 在操作摄像头时出错了。 这个设备用的摄像头特殊吗?是 usb 摄像头? 可以看看 InitGlobalConfig 里是否可以做相关的配置,也可以升级下 WMPF 框架版本。
你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点