1***@163.com
1***@163.com
  • 发布:2019-11-01 15:51
  • 更新:2019-11-01 15:51
  • 阅读:1443

【报Bug】Android 9, 华为手机 使用plus.gallery.pick获取视频,打开相册之后,无法选中视频

分类:5+ SDK

详细问题描述

(DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题)

[内容]

重现步骤

[步骤]
1.使用plus.gallery.pick获取视频,打开相册之后,无法选中视频

[结果]
Android studio抛出异常:
2019-11-01 12:43:27.377 10650-10650/com.msh186.app.emall W/InputMethodManager: startInputReason = 1
2019-11-01 12:43:27.378 10650-10650/com.msh186.app.emall E/AssistantInput: onCreateInputConnection 00
2019-11-01 12:43:27.408 10650-10650/com.msh186.app.emall D/Main_Path_Main_App: onActivityResult
2019-11-01 12:43:27.435 10650-10650/com.msh186.app.emall E/CursorWindow: Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 0 columns.
2019-11-01 12:43:27.436 10650-10650/com.msh186.app.emall W/System.err: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
2019-11-01 12:43:27.437 10650-10650/com.msh186.app.emall W/System.err: at android.database.CursorWindow.nativeGetString(Native Method)
2019-11-01 12:43:27.437 10650-10650/com.msh186.app.emall W/System.err: at android.database.CursorWindow.getString(CursorWindow.java:465)
2019-11-01 12:43:27.438 10650-10650/com.msh186.app.emall W/System.err: at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
2019-11-01 12:43:27.438 10650-10650/com.msh186.app.emall W/System.err: at android.database.CursorWrapper.getString(CursorWrapper.java:137)
2019-11-01 12:43:27.438 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl.a(GalleryFeatureImpl.java:513)
2019-11-01 12:43:27.439 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl.a(GalleryFeatureImpl.java:61)
2019-11-01 12:43:27.439 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl$4.onExecute(GalleryFeatureImpl.java:453)
2019-11-01 12:43:27.439 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.a.d.callSysEventListener(WebApp.java:2741)
2019-11-01 12:43:27.439 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.a.d.onExecute(WebApp.java:2761)
2019-11-01 12:43:27.439 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.a.b.a(RunningAppMgr.java:77)
2019-11-01 12:43:27.440 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.a.a.processEvent(AppMgr.java:599)
2019-11-01 12:43:27.440 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.b.a.dispatchEvent(Core.java:543)
2019-11-01 12:43:27.440 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.b.a.onActivityExecute(Core.java:115)
2019-11-01 12:43:27.440 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.common.b.b.a(PandoraEntryProxy.java:105)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.EntryProxy.onActivityExecute(EntryProxy.java:109)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.b.onActivityResult(BaseActivity.java:404)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at io.dcloud.WebAppActivity.onActivityResult(WebAppActivity.java:84)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.Activity.dispatchActivityResult(Activity.java:7794)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.ActivityThread.deliverResults(ActivityThread.java:4995)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.ActivityThread.handleSendResult(ActivityThread.java:5044)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.os.Handler.dispatchMessage(Handler.java:109)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.os.Looper.loop(Looper.java:207)
2019-11-01 12:43:27.441 10650-10650/com.msh186.app.emall W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7539)
2019-11-01 12:43:27.442 10650-10650/com.msh186.app.emall W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2019-11-01 12:43:27.442 10650-10650/com.msh186.app.emall W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
2019-11-01 12:43:27.442 10650-10650/com.msh186.app.emall W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
2019-11-01 12:43:27.443 10650-10650/com.msh186.app.emall W/DCloud_Exception: AppMgr.processEvent
java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetString(Native Method)
at android.database.CursorWindow.getString(CursorWindow.java:465)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
at android.database.CursorWrapper.getString(CursorWrapper.java:137)
at io.dcloud.js.gallery.GalleryFeatureImpl.a(GalleryFeatureImpl.java:513)
at io.dcloud.js.gallery.GalleryFeatureImpl.a(GalleryFeatureImpl.java:61)
at io.dcloud.js.gallery.GalleryFeatureImpl$4.onExecute(GalleryFeatureImpl.java:453)
at io.dcloud.common.a.d.callSysEventListener(WebApp.java:2741)
at io.dcloud.common.a.d.onExecute(WebApp.java:2761)
at io.dcloud.common.a.b.a(RunningAppMgr.java:77)
at io.dcloud.common.a.a.processEvent(AppMgr.java:599)
at io.dcloud.common.b.a.dispatchEvent(Core.java:543)
at io.dcloud.common.b.a.onActivityExecute(Core.java:115)
at io.dcloud.common.b.b.a(PandoraEntryProxy.java:105)
at io.dcloud.EntryProxy.onActivityExecute(EntryProxy.java:109)
at io.dcloud.b.onActivityResult(BaseActivity.java:404)
at io.dcloud.WebAppActivity.onActivityResult(WebAppActivity.java:84)
at android.app.Activity.dispatchActivityResult(Activity.java:7794)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4995)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5044)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:7539)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
2019-11-01 12:43:27.447 10650-10650/com.msh186.app.emall D/ZrHung.AppEyeUiProbe: notify runnable to start.
2019-11-01 12:43:27.447 10650-10676/com.msh186.app.emall D/ZrHung.AppEyeUiProbe: restart watching
2019-11-01 12:43:27.448 10650-10650/com.msh186.app.emall D/Main_Path_Main_App: onResume appid=Main_App
2019-11-01 12:43:27.448 10650-10650/com.msh186.app.emall I/DCloud_LOG: onResume resumeTime=1572583407448
2019-11-01 12:43:27.452 10650-10932/com.msh186.app.emall D/miniserver: 13131 serversocket running...
2019-11-01 12:43:27.452 10650-10650/com.msh186.app.emall E/Html5Plus-onResume: 1572583407452

[期望]
使用plus.gallery.pick获取视频,打开相册之后,可以选中视频,选中视频之后,点击确认,获取视频路径
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]

IDE运行环境说明

Android Studio
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]

[IDE版本号]
Android Studio 3.2
[windows版本号]
window 10
[mac版本号]

uni-app运行环境说明

[运行端是h5或app或某个小程序?]
h5
[运行端版本号]
最新版和1.9.9.62072
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]

[编译模式是老模板模式还是新的自定义组件模式?]

App运行环境说明

[Android版本号]
9
[iOS版本号]

[手机型号]

[模拟器型号]

附件

[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]

[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]

[App安装包或H5地址]

[可重现代码片段]

联系方式

[QQ]

2019-11-01 15:51 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复