android 在录屏时一直出现这个错误,解决过几次后来又出现过一次,怎么都想不起来是为什么了,最后发现原来是初始化视频保存地址是一个错误的地址!异常信息如下:
FATAL EXCEPTION: main
Process: com.llectionvideo, PID: 19932
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=101, result=-1, data=Intent { (has extras) }} to activity {com.llectionvideo/com.llectionvideo.CameraView.VideoActivity}: java.lang.IllegalStateException: failed to get surface
at android.app.ActivityThread.deliverResults(ActivityThread.java:3576)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3619)
at android.app.ActivityThread.access$1300(ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1338)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5258)
at flect.Method.invoke(Native Method)
at flect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
Caused by: java.lang.IllegalStateException: failed to get surface
Surface(Native Method)
at com.llectionvideo.ateVirtualDisplay(RecordService.java:146)
at com.llectionvideo.screenrecoder.RecordService.startRecord(RecordService.java:120)
at com.llectionvideo.ActivityResult(VideoActivity.java:177)
at android.app.Activity.dispatchActivityResult(Activity.java:6181)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3572)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3619)
at android.app.ActivityThread.access$1300(ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1338)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5258)
at flect.Method.invoke(Native Method)
at flect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
本文发布于:2024-02-02 22:09:53,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170688299146765.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |