收藏
回答

手机微信拨打设备报错?

设备sn:XYWP20231219000310

测试了Android 7.1.2 和8.1 都不行

XYWP20231219000310

wmpf 9.2.0.17

cli 2.1

小程序框架是最新的

第一次拨打没有问题,提示授权也授权了,第二次拨打出现预览界面后闪退

杀死我们应用后再次拨打,小程序框架未杀死,出现已接听出现摄像后闪退报错如下:

2024-01-05 09:36:15.028 6666-6666/com.tencent.wmpf E/camera:Camera2: Failed to start camera preview.

    java.lang.IllegalStateException: Session has been closed; further changes are illegal.

        at android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed(CameraCaptureSessionImpl.java:835)

        at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:289)

        at com.google.android.cameraview.b$b.onConfigured(Camera2.java:50)

        at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$-android_hardware_camera2_impl_CallbackProxies$SessionStateCallbackProxy_2060(CallbackProxies.java:53)

        at android.hardware.camera2.impl.-$Lambda$UdvcvpwFMuXX5GvYZ7F3wfLSIEo.$m$4(Unknown Source:8)

        at android.hardware.camera2.impl.-$Lambda$UdvcvpwFMuXX5GvYZ7F3wfLSIEo.run(Unknown Source:27)

        at android.os.Handler.handleCallback(Handler.java:790)

        at android.os.Handler.dispatchMessage(Handler.java:99)

        at android.os.Looper.loop(Looper.java:164)

    java.lang.RuntimeException: java.lang.IllegalArgumentException: Bad argument passed to camera service


        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:755)


        at android.os.Handler.dispatchMessage(Handler.java:95)


        at android.os.Looper.loop(Looper.java:154)


        at android.app.ActivityThread.main(ActivityThread.java:6141)


        at java.lang.reflect.Method.invoke(Native Method)


        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)


        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)


     Caused by: java.lang.IllegalArgumentException: Bad argument passed to camera service


        at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:652)


        at android.hardware.camera2.CameraManager.openCameraDeviceUserAsync(CameraManager.java:351)


        at android.hardware.camera2.CameraManager.openCameraForUid(CameraManager.java:477)


        at android.hardware.camera2.CameraManager.openCamera(CameraManager.java:441)


        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:755) 


        at android.os.Handler.dispatchMessage(Handler.java:95) 


        at android.os.Looper.loop(Looper.java:154) 


        at android.app.ActivityThread.main(ActivityThread.java:6141) 


        at java.lang.reflect.Method.invoke(Native Method) 


        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 


        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802) 


     Caused by: android.os.ServiceSpecificException: Bad argument passed to camera service


        at android.hardware.camera2.legacy.LegacyExceptionUtils.throwOnServiceError(LegacyExceptionUtils.java:132)


        at android.hardware.camera2.legacy.CameraDeviceUserShim.connectBinderShim(CameraDeviceUserShim.java:363)


        at android.hardware.camera2.CameraManager.openCameraDeviceUserAsync(CameraManager.java:328)


        at android.hardware.camera2.CameraManager.openCameraForUid(CameraManager.java:477) 


        at android.hardware.camera2.CameraManager.openCamera(CameraManager.java:441) 


        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:755) 


        at android.os.Handler.dispatchMessage(Handler.java:95) 


        at android.os.Looper.loop(Looper.java:154) 


        at android.app.ActivityThread.main(ActivityThread.java:6141) 


        at java.lang.reflect.Method.invoke(Native Method) 


        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 


        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802) 


    


    

最后一次编辑于  01-05
回答关注问题邀请回答
收藏

1 个回答

  • 晨
    01-08

    给一下xlog看看?

    01-08
    有用
    回复 2
    • 申健
      申健
      01-09
      已经好了  未改代码 很奇怪
      01-09
      回复
    • 晨
      01-10回复申健
      看报错怀疑和硬件或者驱动相关
      01-10
      回复
登录 后发表内容