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(void*, void const*, unsigned long, int) + 84 Flutterdownsample_2_2:
-> 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

你可能感兴趣的:(flutter',flutter)