New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package crashes my app when more than 10 cached images widgets are used #618
Comments
You don't share the image urls, but can it be that the images themselves are really large? They are by default loaded completely, so it might be better to load them in a smaller size, you can do that this way:
|
you want to see the actual urls of the images i am loading? memCacheHeight does nothing to prevent the crash btw. This is quite a problem. |
But could you at least share your crash log? With no other information than this I cannot really help you. |
Sure thing, how do i send you that. I am using vscode, i am not too familiar with android studio. Well it's hard to isolate just that in my huge project but i will see what i can do. |
Hello @renefloor i think i might have been using quite large images. Could that be the source of the error? I'm not an expert at crash logs and profiling (btw if you could recommend a good article on this i would be grateful) but i was using relatively large images on load 500 to 1200 kb and i switched to using max 60 kb images and things seem to be smoother and no more crash. |
Yes that could be it, showing a lot of very large images can lead to memory issues. If you have control over the backend serving smaller images from there is the best approach. |
Hello @renefloor I've been facing this app crash and exit issue, where I've a gridview of 100+ cards with Please suggest an optimal way to avoid such scenario. Following is the error log before app crashes and exits:
|
Have the same issue |
the same as you ,100 pictures are easier |
Same here with a |
same issue with Flutter 3.3.10 |
same issue,when I load many and big image, app sigterm |
@renefloor Using |
Can you provide a code sample of your use of memCacheHeight please? |
@nicolasvahidzein please have a look:
|
Is any investigation going to be made into this issue ? We have dozens of users reporting the same error : the database of the caching backend crashes when you load too many big images. Please either put a warning on the package specifying its limited usage, or solve the issue. |
How big are the images you are loading? Ping me on skype i can help. Otherwise use thumbnail version of the images. I can load hundreds ok. |
🐛 Bug Report
when i use more than 10 cached network images my app crashes
this is my code:
Expected behavior
it should not crash :)
Reproduction steps
Configuration
Version: flutter 2.2.1
Platform:
The text was updated successfully, but these errors were encountered: