点开播放视频然后打开摄像头拍照,拍完确认后会crash
- 发布:2022-04-22 17:52
- 更新:2022-04-22 17:54
- 阅读:346
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
手机系统: Android
手机系统版本号: Android 6.0
手机厂商: OPPO
手机机型: OPPO A57
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: CLI
CLI版本号: ^2.0.1-33920220314003
操作步骤:
预期结果:
点开播放视频然后打开摄像头拍照,拍完确认后不会crash
点开播放视频然后打开摄像头拍照,拍完确认后不会crash
实际结果:
点开播放视频然后打开摄像头拍照,拍完确认后会crash
点开播放视频然后打开摄像头拍照,拍完确认后会crash
bug描述:
应用原生崩溃怎么解决?日志如下
2022/04/21 17:52:20 [crash] imei: md:OPPO A57 p:a os:23 net:3 vb:1.9.9.81245 mc: appid:UNI64C4596 appcount:1 wvcount:6 pn:com.qishikj.learn mem:27280kb etype:1 eurl: carsh_info:java.lang.IllegalArgumentException: Cannot setSurfaceTexture to a released SurfaceTexture
at android.view.TextureView.setSurfaceTexture(TextureView.java:725)
at io.dcloud.media.video.ijkplayer.media.TextureRenderView$InternalSurfaceHolder.bindToMediaPlayer(TextureRenderView.java:171)
at io.dcloud.media.video.ijkplayer.media.IjkVideoView.bindSurfaceHolder(IjkVideoView.java:1038)
at io.dcloud.media.video.ijkplayer.media.IjkVideoView.access$2500(IjkVideoView.java:68)
at io.dcloud.media.video.ijkplayer.media.IjkVideoView$9.onSurfaceCreated(IjkVideoView.java:1070)
at io.dcloud.media.video.ijkplayer.media.TextureRenderView$SurfaceCallback.onSurfaceTextureAvailable(TextureRenderView.java:288)
at android.view.TextureView.getHardwareLayer(TextureView.java:368)
at android.view.View.updateDisplayListIfDirty(View.java:15195)
at android.view.View.draw(View.java:15991)
at android.view.ViewGroup.drawChild(ViewGroup.java:3648)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3438)
at android.view.View.updateDisplayListIfDirty(View.java:15213)
at android.view.View.draw(View.java:15991)
at android.view.ViewGroup.drawChild(ViewGroup.java:3648)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3438)
at android.view.View.draw(View.java:16224)
at android.view.View.updateDisplayListIfDirty(View.java:15218)
at android.view.View.draw(View.java:15991)
at android.view.ViewGroup.drawChild(ViewGroup.java:3648)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3438)
at android.view.View.updateDisplayListIfDirty(View.java:15213)
at android.view.View.draw(View.java:15991)
at android.view.ViewGroup.drawChild(ViewGroup.java:3648)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3438)
at android.view.View.updateDisplayListIfDirty(View.java:15213)
at android.view.View.draw(View.java:15991)
at android.view.ViewGroup.drawChild(ViewGroup.java:3648)
at com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$InnerWebView.super_drawChild(TbsJavaCore:1874)
at com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy.super_drawChild(TbsJavaCore:3576)
at com.tencent.tbs.core.webkit.adapter.X5WebViewAdapter.drawChild(TbsJavaCore:657)
at com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$InnerWebView.drawChild(TbsJavaCore:1869)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3438)
at com.tencent.tbs.core.webkit.WebView.dispatchDraw(TbsJavaCore:2645)
at android.view.View.draw(View.java:16224)
at com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$InnerWebView.super_draw(TbsJavaCore:1905)
at com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy.super_draw(TbsJavaCore:3571)
at com.tencent.tbs.core.webkit.adapter.X5WebViewAdapter.draw(TbsJavaCore:872)
at com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$InnerWebView.draw(TbsJavaCore:1900)
at android.view.View.updateDisplayListIfDirty(View.java:15218)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3632)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3612)
at android.view.View.updateDisplayListIfDirty(View.java:15178)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2773)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2592)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2200)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1209)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6330)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:862)
at android.view.Choreographer.doCallbacks(Choreographer.java:674)
at android.view.Choreographer.doFrame(Choreographer.java:610)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:848)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:179)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
2 个回复
小枫叶 - 外包接单加v:wlmk1234567 注明来意
demo给一下
DCloud_Android_DQQ
给个可以复现问题的简单示例。