Open HetalGohil opened 3 years ago
Which version of the library are you using? Can you also give me the output of flutter doctor -v
?
D:\flutter_windows_v1.12.13+hotfix.5-stable\flutter\bin\flutter.bat doctor --verbose [√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.19041.630], locale en-US) • Flutter version 1.22.1 at D:\flutter_windows_v1.12.13+hotfix.5-stable\flutter • Framework revision f30b7f4db9 (9 weeks ago), 2020-10-08 10:06:30 -0700 • Engine revision 75bef9f6c8 • Dart version 2.10.1
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\Hetal\AppData\Local\Android\sdk
• Platform android-30, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
X Android license status unknown.
Run flutter doctor --android-licenses
to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Android Studio (version 3.6) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 44.0.2 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] Connected device (1 available) • Mi A3 (mobile) • bdca8f28ecf0 • android-arm64 • Android 10 (API 29)
can you guide me, bcz of this issue my app stuck working and i cannot do anything further
I have the same problem. below is my environment, I using cached_network_image: ^2.3.2+1. [✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.0.1) [✓] Android Studio (version 4.0) [✓] VS Code (version 1.50.0) [✓] Connected device (1 available)
Has this issue been resolved in the latest version?
This url is the image where the problem occurs. https://lh3.googleusercontent.com/viovNz52VJ1CMbB2tu9Q4TFnrUhvUoSbJ7cR6emptbpxuEzidR_OKLeqpXiu4dw6uffEvc2zNNIh34QQGCsh8b-h36BIgCKlENPztk2Fe0cQwL8=s0
cached_network_image: ^2.4.1 same occured.
sir can you can you please help
This url is the image where the problem occurs. https://lh3.googleusercontent.com/viovNz52VJ1CMbB2tu9Q4TFnrUhvUoSbJ7cR6emptbpxuEzidR_OKLeqpXiu4dw6uffEvc2zNNIh34QQGCsh8b-h36BIgCKlENPztk2Fe0cQwL8=s0
I tried this url in a simple example app, but that shows normally. I have no idea what is going on here, that makes it difficult to help. If you have a reproducible example that would be great.
This url is the image where the problem occurs. https://lh3.googleusercontent.com/viovNz52VJ1CMbB2tu9Q4TFnrUhvUoSbJ7cR6emptbpxuEzidR_OKLeqpXiu4dw6uffEvc2zNNIh34QQGCsh8b-h36BIgCKlENPztk2Fe0cQwL8=s0
I tried this url in a simple example app, but that shows normally. I have no idea what is going on here, that makes it difficult to help. If you have a reproducible example that would be great.
Please try to reproduce it in the list view widget.
same issue please fix bug
Sorry @theqooslevin can you give me a small piece of code and clear instructions how to reproduce? It is difficult to fix if we can't reproduce it.
sir issue is when we you use list view and in list more image then this issue is arrieving...may be it is related to cache size
I picked the example in this repository. I tested list_content (the second tab) with itemCount increased to 25000. I scrolled fast and slow, up and down, nothing weird happened. I tried grid_content. Also set item count to 25000, set crossAxisCount to 10 to show a bizarrely large amount of images at the same time on the screen. I agree, the scrolling performance is not great, although in profile mode the performance is still oke to me. Still the app doesn't crash.
Might be related to : https://github.com/flutter/flutter/issues/50024 and https://github.com/flutter/flutter/issues/50024
My app also face a recurrent random crashing issue cause by loading user image.
i got same error [ERROR:flutter/lib/ui/painting/image_descriptor.cc(181)] Failed to get pixels for image.
i using version : cached_network_image: 2.3.1
my workaround: i just remove this line, imageBuilder: (BuildContext context, ImageProvider imageProvider) { },
May it help you.
my workaround: i just remove this line, imageBuilder: (BuildContext context, ImageProvider imageProvider) { },
You had an empty imageBuilder? Why did you have that builder at all?
my workaround: i just remove this line, imageBuilder: (BuildContext context, ImageProvider imageProvider) { },
You had an empty imageBuilder? Why did you have that builder at all?
no, i used container like an example inside image builder
imageBuilder: (context, imageProvider) => Container(
decoration: BoxDecoration(
image: DecorationImage(
image: imageProvider,
fit: BoxFit.cover,
),
),
),
details image that i download from url size 1MB width 2613 height 12000
still randomly crash while render
I picked the example in this repository. I tested list_content (the second tab) with itemCount increased to 25000. I scrolled fast and slow, up and down, nothing weird happened. I tried grid_content. Also set item count to 25000, set crossAxisCount to 10 to show a bizarrely large amount of images at the same time on the screen. I agree, the scrolling performance is not great, although in profile mode the performance is still oke to me. Still the app doesn't crash.
1.You can make the cache store size smaller ,
I picked the example in this repository. I tested list_content (the second tab) with itemCount increased to 25000. I scrolled fast and slow, up and down, nothing weird happened. I tried grid_content. Also set item count to 25000, set crossAxisCount to 10 to show a bizarrely large amount of images at the same time on the screen. I agree, the scrolling performance is not great, although in profile mode the performance is still oke to me. Still the app doesn't crash.
1.You can make the cache store size smaller , 2. then make a big listView with many images , and stroll quickly 3. click a button to delete your app's tempDir ,which will delete your image file in disk also, 4. quick do 2 and 3 many times, 5. may be you will find this issue.
You can add a refresh Button and a uniqueKey on ListView, quickly scroll and complete refresh and delete temDir meanwhile
Sorry , If you test use case as I comment above , you cannot reproduce . Because I extend cacheNetWorkImage and do lot ovrride
I create a new issue about this error and a reproduce demo: https://github.com/Baseflow/flutter_cached_network_image/issues/786#issue-1396448918
[ERROR:flutter/lib/ui/painting/image_descriptor.cc(181)] Failed to get pixels for image. F/libc (28782): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 28916
Build fingerprint: 'Xiaomi/laurel_sprout/laurel_sprout:10/QKQ1.190910.002/V11.0.17.0.QFQMIXM:user/release-keys' Revision: '0' ABI: 'arm64' Timestamp: 2020-12-11 15:15:01+0530 pid: 28782, tid: 28916, name: uid: 10240 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 Cause: null pointer dereference x0 0000000000000000 x1 0000000000000000 x2 0000000000000000 x3 00000071c0b7b658 x4 0000007229802538 x5 0000007229836380 x6 00000071c0b7b2dc x7 0000000000000000 x8 00000071c0b7b688 x9 0000000000000000 x10 0000000000000000 x11 0000000000000060 x12 00000000000c0480 x13 0000000000000001 x14 0000000000000068 x15 a54a24c05087d5b6 x16 00000072b96638f0 x17 00000072b9655070 x18 00000071b1494000 x19 00000071c0b7b718 x20 0000000000000000 x21 00000071c0b7b678 x22 00000000000001a0 x23 0000000000000193 x24 00000071c161f99b x25 0000000000000000 x26 0000000000000001 x27 0000000000000055 x28 0000000000000000 x29 0000000000000000 sp 00000071c0b7b670 lr 00000071c27a8978 pc 00000071c27a8978 backtrace:
00 pc 0000000001342978 /data/app/com.wrteam.eshop-UmfkQa2ZhOjnAZ50u8ttqA==/lib/arm64/libflutter.so (BuildId: 532d99140d263fc44b0d99bd1a44339f9ff57793)