用户在使用拍照->拍照完成点击确认->闪退->自动重启
- 发布:2021-12-07 10:04
- 更新:2022-08-11 11:21
- 阅读:1105
产品分类: 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
你把安装包发出来看一下,代码麻烦也发一下
-
回复 hansen: 我这边用上面的安装包测试没问题。这个是部分用户的问题吗?我进入应用的时候看到了wgt更新,会不会存在部分用户apk是低版本的,但是wgt是最新的
2021-12-07 16:04
-
hansen (作者)
回复 DCloud_Android_zl: 目前就一个用户有这个问题,其他还没发现。 apk版本就是最新的1.5.0的,我们用两种方式拍照都是会闪退,他的手机应用权限也都有打开,我设置的是拍照压缩模式,请问会不会跟图片压缩有关系?
2021-12-07 17:06
7***@qq.com
请问拍照,点击确定闪退怎么解决
2022-05-03 17:18
hansen (作者)
回复 7***@qq.com: 可能是内存爆了、可能是保存图片到本地的话有没有开通权限也有可能
2022-05-06 17:34