打开app,一直快速下拉加载分页数据
- 发布:2023-01-03 15:15
- 更新:2023-01-04 11:06
- 阅读:323
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 3.6.4
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: 红米readmik30pro,华为mate30
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
列表无卡顿,app不闪退
列表无卡顿,app不闪退
实际结果:
列表会出现卡顿,app也会出现闪退
列表会出现卡顿,app也会出现闪退
bug描述:
list页面一直快速下拉加载分页数据,重复多次,app会直接闪退
q***@163.com (作者)
2023-01-04 10:14:31.577 [WARNING:] [PluginHost] Unhandled Rejection at: Promise {
<rejected> TypeError: i is not a function
at Object.highlight (C:\HBuilderX\plugins\plugin-manager\out.js:1:411523)
} reason: TypeError: i is not a function
at Object.highlight (C:\HBuilderX\plugins\plugin-manager\out.js:1:411523)
2023-01-04 10:21:55.112 [WARNING:] [MENU] !!!Can't find the action id: "unicloud.localRunOrStop"
2023-01-04 10:24:06.121 [WARNING:] [MENU] !!!Can't find the action id: "unicloud.localRunOrStop"
闪退日志
q***@163.com (作者)
2023-01-04 10:40:29.859 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread
2023-01-04 10:44:09.204 [WARNING:] [MENU] !!!Can't find the action id: "unicloud.localRunOrStop"
2023-01-04 10:49:29.806 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread
2023-01-04 10:57:16.107 [WARNING:] uniapp compiled errorOccurred====== "进程已崩溃"
2023-01-04 10:57:16.835 [INFO:] node "C:/HBuilderX/plugins/node/node.exe"
2023-01-04 10:57:16.835 [INFO:] args ("--max-old-space-size=2048", "C:/HBuilderX/plugins/uniapp-cli/bin/uniapp-cli.js")
2023-01-04 11:02:48.499 [WARNING:] [MENU] !!!Can't find the action id: "unicloud.localRunOrStop"
请帮忙分析一下是什么问题
DCloud_Android_ST
该日志无用 是否可以稳定复现问题还是挑设备?
2023-01-04 11:06
q***@163.com (作者)
回复 DCloud_Android_ST: 目前试了华为mate30,红米k30pro,都会出现闪退问题,是一个安卓应用
2023-01-04 11:08
q***@163.com (作者)
java.lang.OutOfMemoryError
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1120)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1078)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1028)
at android.graphics.Bitmap.createBitmap(Bitmap.java:989)
at com.facebook.imagepipeline.memory.BucketsBitmapPool.alloc(BucketsBitmapPool.java:57)
at com.facebook.imagepipeline.memory.BucketsBitmapPool.alloc(BucketsBitmapPool.java:28)
at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:256)
at com.facebook.imagepipeline.bitmaps.ArtBitmapFactory.createBitmapInternal(ArtBitmapFactory.java:50)
at com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory.createBitmap(PlatformBitmapFactory.java:69)
at com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory.createBitmap(PlatformBitmapFactory.java:39)
at com.facebook.fresco.animation.bitmap.preparation.DefaultBitmapFramePreparer$FrameDecodeRunnable.prepareFrameAndCache(DefaultBitmapFramePreparer.java:140)
at com.facebook.fresco.animation.bitmap.preparation.DefaultBitmapFramePreparer$FrameDecodeRunnable.prepareFrameAndCache(DefaultBitmapFramePreparer.java:164)
at com.facebook.fresco.animation.bitmap.preparation.DefaultBitmapFramePreparer$FrameDecodeRunnable.run(DefaultBitmapFramePreparer.java:108)
at com.facebook.common.executors.ConstrainedExecutorService$Worker.run(ConstrainedExecutorService.java:170)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:52)
at java.lang.Thread.run(Thread.java:920)
app崩溃,手机显示的记录
2023-01-04 11:10
DCloud_Android_ST
回复 q***@163.com: 内存溢出了 你list加载的图片是不是质量太高了
2023-01-04 11:15
q***@163.com (作者)
回复 DCloud_Android_ST: 后端都已经压缩过了,现在一张图片四十几kb
2023-01-04 11:23
DCloud_Android_ST
回复 q***@163.com: 最好在压缩下 list加载的图片一般几KB即可 你可以测试降低后是否还有该问题 以上都是我通过日志推断的
2023-01-04 11:49