cached_network_image 多个图片卡顿崩溃
cached_network_image
之前的舊版還好,新版的加載直接用 container 包裹展示,多個圖片導致內存問題卡頓崩潰,
官方的 issues 給的建議是 ,請使用小尺寸的圖片,但是小尺寸的圖片,加載幾十張也一樣崩潰。目前還沒找到什么比較好的圖片加載組件替換。
I am using cache network image for displaying images but it is crashing every time while loading images and it is showing errors like the below.
thread?flutter/flutter#11, name = 'io.flutter.1.io', stop reason = EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2098 MB, unused=0x0)
frame #0: 0x00000001084d0e68 Fluttervoid downsample_2_2<ColorTypeFilter_8888>(void*, void const*, unsigned long, int) + 84 Flutterdownsample_2_2<ColorTypeFilter_8888>:
-> 0x1084d0e68 <+84>: st1.s { v0 }[0], [x0],?flutter/flutter#4
0x1084d0e6c <+88>: subs x8, x8, #0x1
0x1084d0e70 <+92>: b.ne 0x1084d0e24 ; <+16>
0x1084d0e74 <+96>: ret
Target 0: (Runner) stopped.
thread?flutter/flutter#11, name = 'io.flutter.1.io', stop reason = EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2098 MB, unused=0x0)
frame #0: 0x00000002232e1aa8 libsystem_platform.dylib_platform_memmove + 88 libsystem_platform.dylib_platform_memmove:
-> 0x2232e1aa8 <+88>: stnp q0, q1, [x3]
0x2232e1aac <+92>: add x3, x3, #0x20
0x2232e1ab0 <+96>: ldnp q0, q1, [x1]
0x2232e1ab4 <+100>: add x1, x1, #0x20
總結
以上是生活随笔為你收集整理的cached_network_image 多个图片卡顿崩溃的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【安全归约】第一讲 | Definiti
- 下一篇: 关于VG数据集的分析