hansen
hansen
  • 发布:2021-12-07 10:04
  • 更新:2022-08-11 11:21
  • 阅读:1105

【报Bug】急!拍照完成点击√确认闪退后重启,有崩溃日志

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 3.2.16

手机系统: Android

手机系统版本号: Android 10

手机厂商: 小米

手机机型: 红米K30至尊

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

App下载地址或H5⽹址: https://pic.klfspp.com/app/klfsManagerV1.5.0_android.apk

操作步骤:

用户在使用拍照->拍照完成点击确认->闪退->自动重启

预期结果:

拍照确认晚应该返回到页面进行上传

实际结果:

闪退 自动重启

bug描述:

用户在使用拍照->拍照完成点击确认->闪退->自动重启
告知用户清空内存 和 卸载重装 打开权限 都是一样复现

有复现视频,在附件。
使用的是 plus.camera.getCamera() H5+的方法

崩溃日志有三个信息如下:

2021/12/03 16:26:50 [crash] imei:87AF377A50925F47A69A1DBF0D51B0A5 md:Pixel 3 XL p:a os:28 net:3 vb:1.9.9.81128 mc: appid:__UNI__8CF547F appcount:1 wvcount:4 pn:com.klfs.manager mem:19416kb etype:1 eurl: carsh_info:java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.klfs.manager/io.dcloud.imagepick.CustomGalleryActivity}: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.imagepick.CustomGalleryActivity" on path: DexPathList[[zip file "/data/app/com.klfs.manager-XfnfoJ0RMburm4ed_aniUw==/base.apk"],nativeLibraryDirectories=[/data/app/com.klfs.manager-XfnfoJ0RMburm4ed_aniUw==/lib/arm, /data/app/com.klfs.manager-XfnfoJ0RMburm4ed_aniUw==/base.apk!/lib/armeabi-v7a, /system/lib]]  
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2881)  
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)  
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)  
    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:1816)  
    at android.os.Handler.dispatchMessage(Handler.java:106)  
    at android.os.Looper.loop(Looper.java:193)  
    at android.app.ActivityThread.main(ActivityThread.java:6718)  
    at java.lang.reflect.Method.invoke(Native Method)  
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)  
Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.imagepick.CustomGalleryActivity" on path: DexPathList[[zip file "/data/app/com.klfs.manager-XfnfoJ0RMburm4ed_aniUw==/base.apk"],nativeLibraryDirectories=[/data/app/com.klfs.manager-XfnfoJ0RMburm4ed_aniUw==/lib/arm, /data/app/com.klfs.manager-XfnfoJ0RMburm4ed_aniUw==/base.apk!/lib/armeabi-v7a, /system/lib]]  
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)  
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)  
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)  
    at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)  
    at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:43)  
    at android.app.Instrumentation.newActivity(Instrumentation.java:1215)  
    at EdHooker_.hook(Unknown Source:150)  
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2869)  
    ... 11 more  

2021/12/03 16:30:24 [crash] imei:87AF377A50925F47A69A1DBF0D51B0A5 md:Pixel 3 XL p:a os:28 net:3 vb:1.9.9.81128 mc: appid:__UNI__8CF547F appcount:1 wvcount:2 pn:com.klfs.manager mem:12496kb etype:1 eurl: carsh_info:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.klfs.manager/com.dmcbig.mediapicker.PreviewActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference  
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)  
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)  
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)  
    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:1816)  
    at android.os.Handler.dispatchMessage(Handler.java:106)  
    at android.os.Looper.loop(Looper.java:193)  
    at android.app.ActivityThread.main(ActivityThread.java:6718)  
    at java.lang.reflect.Method.invoke(Native Method)  
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)  
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference  
    at java.util.ArrayList.addAll(ArrayList.java:588)  
    at com.dmcbig.mediapicker.PreviewActivity.onCreate(SourceFile:55)  
    at android.app.Activity.performCreate(Activity.java:7144)  
    at android.app.Activity.performCreate(Activity.java:7135)  
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)  
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)  
    ... 11 more  

2021/12/03 19:45:46 [crash] imei:F27EAAEC8AD1A9D8D1DA4AD1C61F5D52 md:AGS3-W00E p:a os:29 net:3 vb:1.9.9.81128 mc: appid:__UNI__8CF547F appcount:1 wvcount:5 pn:com.klfs.manager mem:6436kb etype:1 eurl: carsh_info:java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=60505, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.klfs.manager/io.dcloud.PandoraEntryActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.DIAL dat=tel:xxxxxxxxxxx }  
    at android.app.ActivityThread.deliverResults(ActivityThread.java:5589)  
    at android.app.ActivityThread.handleSendResult(ActivityThread.java:5630)  
    at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)  
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)  
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)  
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2473)  
    at android.os.Handler.dispatchMessage(Handler.java:110)  
    at android.os.Looper.loop(Looper.java:219)  
    at android.app.ActivityThread.main(ActivityThread.java:8349)  
    at java.lang.reflect.Method.invoke(Native Method)  
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)  
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.DIAL dat=tel:xxxxxxxxxxx }  
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2120)  
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1746)  
    at android.app.Activity.startActivityForResult(Activity.java:5362)  
    at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:767)  
    at android.app.Activity.startActivityForResult(Activity.java:5303)  
    at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:754)  
    at android.app.Activity.startActivity(Activity.java:5733)  
    at android.app.Activity.startActivity(Activity.java:5701)  
    at io.dcloud.feature.device.DeviceFeatureImpl.a(SourceFile:70)  
    at io.dcloud.feature.device.DeviceFeatureImpl$a.onGranted(SourceFile:1)  
    at io.dcloud.common.adapter.util.PermissionUtil$1.onGranted(SourceFile:8)  
    at io.dcloud.common.adapter.util.PermissionUtil.onSystemPermissionsResult(SourceFile:35)  
    at io.dcloud.b.onRequestPermissionsResult(SourceFile:1)  
    at io.dcloud.WebAppActivity.onRequestPermissionsResult(SourceFile:1)  
    at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:8566)  
    at android.app.Activity.dispatchActivityResult(Activity.java:8416)  
    at android.app.ActivityThread.deliverResults(ActivityThread.java:5582)  
    ... 11 more
2021-12-07 10:04 负责人:DCloud_Android_zl 分享
已邀请:
hansen

hansen (作者)

官方大佬帮忙看下错误日志,给个方案呗

  • 7***@qq.com

    请问拍照,点击确定闪退怎么解决

    2022-05-03 17:18

  • hansen (作者)

    回复 7***@qq.com: 可能是内存爆了、可能是保存图片到本地的话有没有开通权限也有可能

    2022-05-06 17:34

DCloud_Android_zl

DCloud_Android_zl

你把安装包发出来看一下,代码麻烦也发一下

  • hansen (作者)

    apk下载地址 和 代码都重新上传了,你检查下,还需要别的加我qq 840399345 沟通比较方便

    2021-12-07 13:53

  • DCloud_Android_zl

    回复 hansen: 我这边用上面的安装包测试没问题。这个是部分用户的问题吗?我进入应用的时候看到了wgt更新,会不会存在部分用户apk是低版本的,但是wgt是最新的

    2021-12-07 16:04

  • hansen (作者)

    回复 DCloud_Android_zl: 目前就一个用户有这个问题,其他还没发现。 apk版本就是最新的1.5.0的,我们用两种方式拍照都是会闪退,他的手机应用权限也都有打开,我设置的是拍照压缩模式,请问会不会跟图片压缩有关系?

    2021-12-07 17:06

  • DCloud_Android_zl

    回复 hansen: 应该不会,让用户卸载安装试一下

    2021-12-07 17:36

  • hansen (作者)

    回复 DCloud_Android_zl: 都试过了,还是复现。有没有一点可以解决的希望呢,或者可以尝试什么方式呢?

    2021-12-07 17:39

  • DCloud_Android_zl

    回复 hansen: 有今天收集到的错误日志吗?我看上面的日志里没有这个设备的日志。

    2021-12-07 18:24

  • hansen (作者)

    回复 DCloud_Android_zl: 刚刚看了没有相关错误日志,那这是不是属于内存爆了的可能性比较大? 他的闪退会自动重启APP

    2021-12-08 09:31

  • DCloud_Android_zl

    回复 hansen: 这个问题我们这边先记录一下吧,如果能复现或者有日志的话,我们尽快解决

    2021-12-08 19:03

  • hansen (作者)

    回复 DCloud_Android_zl: 好的,谢谢

    2021-12-09 09:44

  • 7***@qq.com

    回复 hansen:您好,请问 拍照闪退问题,怎么解决

    2022-05-03 17:14

  • 7***@qq.com

    回复 DCloud_Android_zl: 请问您解决了吗?拍照闪退问题

    2022-05-03 17:18

3***@qq.com

3***@qq.com - 个人开发

这个问题解决了吗。bugly日志管理平台最近离线sdk(3.4.7)也报这个错误

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