- 微信人脸SDK异常,相机卡死,有日志,是不是SDK问题?
我们在断网大概36分钟后,发现相机会卡死, 大概有一段错误日志 06-20 10:57:07.681 W/System.err( 8219): java.lang.reflect.InvocationTargetException 06-20 10:57:07.682 W/System.err( 8219): at java.lang.reflect.Method.invoke(Native Method) 06-20 10:57:07.682 W/System.err( 8219): at d.e.w.k1.a.b$a.a(SourceFile:3) 06-20 10:57:07.682 W/System.err( 8219): at d.e.w.k1.a.b.a(SourceFile:3) 06-20 10:57:07.682 W/System.err( 8219): at com.tencent.wxpayface.iot.sdk.internal.link.LinkApiImpl.sendCommonRequest(SourceFile) 06-20 10:57:07.682 W/System.err( 8219): at com.tencent.wxpayface.network.ilink.manager.WxpayIlinkApiManager.sendCommonRequestByIoT(SourceFile:2) 06-20 10:57:07.683 W/System.err( 8219): at com.tencent.wxpayface.network.ilink.manager.WxpayIlinkApiManager.doSendCommonRequest(SourceFile:3) 06-20 10:57:07.683 W/System.err( 8219): at com.tencent.wxpayface.network.ilink.manager.WxpayIlinkApiManager.sendCommonRequest(SourceFile:1) 06-20 10:57:07.683 W/System.err( 8219): at d.e.w.v.c.c$b.a(SourceFile:1) 06-20 10:57:07.683 W/System.err( 8219): at d.e.d.d.b(SourceFile:4) 06-20 10:57:07.683 W/System.err( 8219): at d.e.d.a.a(SourceFile:5) 06-20 10:57:07.683 W/System.err( 8219): at d.e.w.v.c.c.a(SourceFile:8) 06-20 10:57:07.683 W/System.err( 8219): at d.e.w.v.c.c.d(SourceFile:2) 06-20 10:57:07.683 W/System.err( 8219): at d.e.w.v.c.f$a.run(SourceFile:10) 06-20 10:57:07.683 W/System.err( 8219): at android.os.Handler.handleCallback(Handler.java:751) 06-20 10:57:07.683 W/System.err( 8219): at android.os.Handler.dispatchMessage(Handler.java:95) 06-20 10:57:07.683 W/System.err( 8219): at android.os.Looper.loop(Looper.java:154) 06-20 10:57:07.683 W/System.err( 8219): at android.os.HandlerThread.run(HandlerThread.java:61) 06-20 10:57:07.685 W/System.err( 8219): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference 06-20 10:57:07.685 W/System.err( 8219): at com.tencent.wxpayface.performance.monitor.IOTUtils.isIotProcessExisted(SourceFile:4) 06-20 10:57:07.685 W/System.err( 8219): at com.tencent.wxpayface.performance.monitor.network.ILinkInject.sendCommonRequest(SourceFile:2) 06-20 10:57:07.685 W/System.err( 8219): ... 17 more
2022-06-20 - 刷脸支付相机预览交给SDK,那如何获取相机的NV21数据呢?
通过 setCameraPreview 接口,将SurfaceView传递给wxSDK,我们没有去操作 camera,那我们如何获取相机实时的画面数据呢? WxPayFace.getInstance() .setCameraPreview(mSurfaceView, info, object : IWxPayfaceCallback() { ....... } })
2022-01-06