1***@qq.com
1***@qq.com
  • 发布:2022-12-13 18:28
  • 更新:2023-01-16 14:44
  • 阅读:2164

【报Bug】鸿蒙系统真机运行,配制已经勾选了Camera模块,调用chooseImage方法,点击从相册选择,无法展示相册,且应用崩溃重启

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 11

HBuilderX类型: 正式

HBuilderX版本号: 3.6.13

手机系统: 全部

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

测试过的手机:

品牌:HUAWEI MATE9 系统:鸿蒙2.0

操作步骤:

调用chooseImage方法点击从相册选择

预期结果:

相册显示不出来,且一会系统崩溃重启

实际结果:

相册显示不出来,且一会系统崩溃重启

bug描述:

仅在鸿蒙2.0系统重现 其他安卓系统没问题

2022-12-13 18:28 负责人:DCloud_Android_YJC 分享
已邀请:

最佳回复

DCloud_Android_YJC

DCloud_Android_YJC

HBuilderX 3.6.15 已修复

DCloud_Android_YJC

DCloud_Android_YJC

需要帮忙抓一份复现问题时的日志,执行以下命令
adb logcat -v time > 文件全路径

rabit咚咚

rabit咚咚

请问解决了吗,华为畅享9plus也遇到该问题

DCloud_Android_YJC

DCloud_Android_YJC

3.6.14-alpha 云打包 已修复此问题

  • rabit咚咚

    离线打包有修复吗,我这边抓到的崩溃日志是这样的

    get PatchStore::createDisableExceptionQarthFile method fail.

    12-27 11:57:41.715 15776 15917 E DEBUG : encryptLog: false, zipCrashLog: false

    12-27 11:57:41.715 15776 15917 E DEBUG : begin to generate java report

    12-27 11:57:41.719 15776 16114 E DEBUG : another thread is generating java report!

    12-27 11:57:41.719 15776 16114 E DEBUG : current thread exception is:

    12-27 11:57:41.720 15776 16114 E DEBUG : at com.dmcbig.mediapicker.adapter.MediaGridAdapter.lambda$onBindViewHolder$1$MediaGridAdapter(Unknown Source:1)

    12-27 11:57:41.720 15776 16114 E DEBUG : at com.dmcbig.mediapicker.adapter.-$$Lambda$MediaGridAdapter$RhS1fqzye-mnxJJNCXUrk3S-07w.run(Unknown Source:6)

    12-27 11:57:41.720 15776 16114 E DEBUG : at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)

    12-27 11:57:41.720 15776 16114 E DEBUG : at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)

    12-27 11:57:41.720 15776 16114 E DEBUG : at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

    12-27 11:57:41.720 15776 16114 E DEBUG : at java.lang.Thread.run(Thread.java:784)

    2022-12-27 15:50

yangjw

yangjw

遇到相同的问题,选择图片确认后就闪退了

  • rabit咚咚

    HBuilderX 3.6.15 已修复

    2023-01-16 09:07

  • yangjw

    回复 rabit咚咚: 还是不行

    java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.bigsiku.yixiaozu/apps/UNI68D5229/doc: open failed: EISDIR (Is a directory)

    W/System.err: at libcore.io.IoBridge.open(IoBridge.java:574)

    W/System.err: at java.io.FileInputStream.<init>(FileInputStream.java:160)

    W/System.err: at io.dcloud.common.util.FileUtil.getFileInputStream(Unknown Source:13)

    W/System.err: at io.dcloud.common.adapter.util.PlatformUtil.getInputStream(Unknown Source:11)

    W/System.err: at io.dcloud.common.adapter.util.PlatformUtil.getInputStream(Unknown Source:21)

    W/System.err: at io.dcloud.e.b.e.convert2LocalFullPath(Unknown Source:7)

    W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl.a(Unknown Source:99)

    W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl.a(Unknown Source:1)

    W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl$a.onGranted(Unknown Source:15)

    W/System.err: at io.dcloud.common.adapter.util.PermissionUtil.usePermission(Unknown Source:4)

    W/System.err: at io.dcloud.js.gallery.GalleryFeatureImpl.execute(Unknown Source:4)

    W/System.err: at io.dcloud.g.b.a(Unknown Source:141)

    W/System.err: at io.dcloud.g.b.b(Unknown Source:3)

    W/System.err: at io.dcloud.g.b.processEvent(Unknown Source:174)

    W/System.err: at io.dcloud.e.c.c.dispatchEvent(Unknown Source:22)

    W/System.err: at io.dcloud.common.core.ui.l.processEvent(Unknown Source:2)

    W/System.err: at io.dcloud.common.adapter.ui.AdaUniWebView.exec(Unknown Source:7)

    W/System.err: at io.dcloud.common.adapter.ui.AdaUniWebView$1.execute(Unknown Source:5)

    W/System.err: at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(Unknown Source:3)

    W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)

    W/System.err: at android.os.Looper.loopOnce(Looper.java:223)

    W/System.err: at android.os.Looper.loop(Looper.java:324)

    W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8418)

    W/System.err: at java.lang.reflect.Method.invoke(Native Method)

    W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)

    W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1059)

    W/System.err: Caused by: android.system.ErrnoException: open failed: EISDIR (Is a directory)

    W/System.err: at libcore.io.IoBridge.open(IoBridge.java:564)

    W/System.err: ... 25 more

    2023-01-16 14:43

  • rabit咚咚

    回复 yangjw: 这个你提个bug给平台方吧

    2023-01-17 11:11

yangjw

yangjw

java.lang.Throwable: A WebView method was called on thread 'WeexJSBridgeThread'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 2) {1591aed} called on Looper (WeexJSBridgeThread, tid 33) {719e138}, FYI main Looper is Looper (main, tid 2) {1591aed})
at android.webkit.WebView.checkThread(WebView.java:2696)
at android.webkit.WebView.getSettings(WebView.java:2079)
at io.dcloud.common.util.AppRuntime.applyWebViewDarkMode(Unknown Source:6)
at io.dcloud.common.adapter.ui.webview.SysWebView.applyWebViewDarkMode(Unknown Source:1)
at io.dcloud.common.util.AppRuntime.lambda$switchAllWebViewDarkMode$0(Unknown Source:2)
at io.dcloud.common.util.AppRuntime$$ExternalSyntheticLambda0.accept(Unknown Source:2)
at java.util.ArrayList.forEach(ArrayList.java:1262)
at io.dcloud.common.util.AppRuntime.lambda$switchAllWebViewDarkMode$1(Unknown Source:4)
at io.dcloud.common.util.AppRuntime$$ExternalSyntheticLambda1.accept(Unknown Source:2)
at java.util.ArrayList.forEach(ArrayList.java:1262)
at io.dcloud.common.util.AppRuntime.switchAllWebViewDarkMode(Unknown Source:5)
at io.dcloud.common.util.AppRuntime.setAppDarkMode(Unknown Source:21)
at io.dcloud.feature.ui.nativeui.NativeUIFeatureImpl.execute(Unknown Source:858)
at io.dcloud.g.b.a(Unknown Source:141)
at io.dcloud.g.b.b(Unknown Source:3)
at io.dcloud.g.b.processEvent(Unknown Source:174)
at io.dcloud.e.c.c.dispatchEvent(Unknown Source:22)
at io.dcloud.common.core.ui.l.processEvent(Unknown Source:2)
at io.dcloud.common.adapter.ui.AdaUniWebView.exec(Unknown Source:7)
at io.dcloud.common.adapter.ui.AdaUniWebView.prompt(Unknown Source:12)
at io.dcloud.feature.weex.adapter.DCVueBridgeAdapter.execSync(DCVueBridgeAdapter.java:25)
at com.taobao.weex.bridge.WXBridge.callVueExecSync(WXBridge.java:330)
at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method)
at com.taobao.weex.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:104)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:223)
at android.os.Looper.loop(Looper.java:324)
at android.os.HandlerThread.run(HandlerThread.java:67)

要回复问题请先登录注册