LuckSiege / PictureSelector

Picture Selector Library for Android or 图片选择器
Apache License 2.0
13.3k stars 3.01k forks source link

华为nova 10闪退 #2816

Open MYaoDan opened 10 months ago

MYaoDan commented 10 months ago

Current use version?

当前使用的版本是多少?

3.10.7

Will this problem occur in demo?

Demo能否复现这问题?

友盟抓取,没有机型,无法复现

Describe the problem or provide an error log?

描述问题或提供错误log?

设备机型:HUAWEI 系统:HarmonyOS 机型版本:NCO-AL00 CPU架构:arm64-v8a,armeabi-v7a,armeabi

Thread Name: 'main'
Back traces starts.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gwm.smarteye/com.yalantis.ucrop.UCropMultipleActivity}: java.lang.IllegalArgumentException: Missing required parameters, count cannot be less than 1
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4293)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4495)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:93)
    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:2706)
    at android.os.Handler.dispatchMessage(Handler.java:109)
    at android.os.Looper.loop(Looper.java:228)
    at android.app.ActivityThread.main(ActivityThread.java:9108)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:614)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1129)
Caused by: java.lang.IllegalArgumentException: Missing required parameters, count cannot be less than 1
    at com.yalantis.ucrop.UCropMultipleActivity.initCropFragments(UCropMultipleActivity.java:111)
zpswz commented 10 months ago

看了下源码UCropMultipleActivity中判断了传递的数组数据为空就主动抛出异常 可以考虑手动把这个异常去掉 弹出提示提醒用户没有获取到图像数据。