不知道什么原因,猜想是页面数据过多,但是有那么多新闻app 他们都是怎么弄得
崩溃日志:
2021/07/16 14:58:18 [crash] imei:023903ECAC60E89543553FAA482C1AC8 md:HUAWEI GRA-UL10 p:a os:21 net:3 vb:1.9.9.80859 mc: appid:UNI71D60DA appcount:1 wvcount:1 pn:com.lionmobo.matrix.news mem:240080kb etype:1 eurl: carsh_info:java.lang.OutOfMemoryError: Failed to allocate a 172436 byte allocation with 165369 free bytes and 161KB until OOM
at java.lang.String.<init>(String.java:332)
at java.lang.String.<init>(String.java:206)
at com.taobao.weex.http.WXStreamModule.readAsString(WXStreamModule.java:275)
at com.taobao.weex.http.WXStreamModule$2.onResponse(WXStreamModule.java:212)
at com.taobao.weex.http.WXStreamModule$StreamHttpListener.onHttpFinish(WXStreamModule.java:397)
at io.dcloud.feature.weex.adapter.DCWXHttpAdapter$1.run(DCWXHttpAdapter.java:99)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:831)
2021/07/16 15:29:39 [crash] imei:023903ECAC60E89543553FAA482C1AC8 md:HUAWEI GRA-UL10 p:a os:21 net:3 vb:1.9.9.80859 mc: appid:UNI71D60DA appcount:1 wvcount:1 pn:com.lionmobo.matrix.news mem:239800kb etype:1 eurl: carsh_info:java.lang.OutOfMemoryError: Failed to allocate a 1881612 byte allocation with 591002 free bytes and 577KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:847)
at android.graphics.Bitmap.createBitmap(Bitmap.java:817)
at android.graphics.Bitmap.createBitmap(Bitmap.java:784)
at com.facebook.imagepipeline.memory.BucketsBitmapPool.alloc(BucketsBitmapPool.java:54)
at com.facebook.imagepipeline.memory.BucketsBitmapPool.alloc(BucketsBitmapPool.java:29)
at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:267)
at com.facebook.imagepipeline.platform.DefaultDecoder.decodeFromStream(DefaultDecoder.java:212)
at com.facebook.imagepipeline.platform.DefaultDecoder.decodeJPEGFromEncodedImageWithColorSpace(DefaultDecoder.java:152)
at com.facebook.imagepipeline.decoder.DefaultImageDecoder.decodeJpeg(DefaultImageDecoder.java:177)
at com.facebook.imagepipeline.decoder.DefaultImageDecoder$1.decode(DefaultImageDecoder.java:58)
at com.facebook.imagepipeline.decoder.DefaultImageDecoder.decode(DefaultImageDecoder.java:121)
at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode(DecodeProducer.java:277)
at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200(DecodeProducer.java:124)
at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:166)
at com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:202)
at com.facebook.imagepipeline.producers.JobScheduler.access$000(JobScheduler.java:22)
at com.facebook.imagepipeline.producers.JobScheduler$1.run(JobScheduler.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:51)
at java.lang.Thread.run(Thread.java:831)
tab新闻列表代码
<swiper-item class="swiper-item-box" v-for="(page, index) in tabList" :key="index">
<list style="width: 690rpx" @scroll="scrollAppFun" @loadmore="scrolltolowerFun" enable-back-to-top="true" loadmoreoffset="100" :style="{height: swiperHeight + 'px'}">
<cell class="swiper-item" v-for="(list, listIndex) in list[index].arr" :key="list.id">
<news-item ref="newsItem" :videoPlayArr="videoPlayArr" :scrollTop="scrollTop" :index="index" :listIndex="listIndex" :list="list" :title="page.title" @videoPlayObj="videoPlayObj"></news-item>
</cell>
<cell>
<text class="loading-text">{{loadingText}}</text>
</cell>
</list>
</view>
</swiper-item>
1***@qq.com (作者)
好的
2021-07-19 13:37