-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Memory leak on real device only #938
Comments
on Linux same issue, actually it crush quicker. |
For those facing this issue, the following solution/workaround worked for me. flutter/flutter#102140 (comment) |
@EArminjon I found using the Reference to #951 |
Any update for this Issue? |
Sadly we also bumped into this very serious issue. If you check ImageCompleterHandler's Replacing if (errorListener != null) {
imageStreamCompleter.addEphemeralErrorListener((exception, stackTrace) {
errorListener?.call(exception);
});
} Without the listener all errors are forwarded to |
🐛 Bug Report
On real device Android & iOS this package have a memory leak.
Our app got some crash in production because of this issue : we have a long list of product inside a paginated infinite list. User can scroll on it and some of them reported crash. After investigation we discover this memory leak.
Expected behavior
Constant RSS usage
Reproduction steps
Use code bellow and check on devtools the memory usage graph.
With CachedNetworkImage : (increase during scroll)
![Capture d’écran 2024-04-10 à 17 01 45](https://private-user-images.githubusercontent.com/37028599/321289513-e96613a8-efc3-438c-9712-223a5d070c27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxMDYzMTQsIm5iZiI6MTcyMzEwNjAxNCwicGF0aCI6Ii8zNzAyODU5OS8zMjEyODk1MTMtZTk2NjEzYTgtZWZjMy00MzhjLTk3MTItMjIzYTVkMDcwYzI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDA4MzMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwNDBkZTBjZGZiZGE5ODBkYjM2ODI3ZGQyYmI3MjgxMWMwOTczMTVkODQzOTc5OTZlYTA0ZTNjODc2ZjgwMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7S8zarakyRzwVHI4D-ZcjwLuz41xlnrQCcX0aCQkw_Q)
With Image.network: (stable during scroll)
![Capture d’écran 2024-04-10 à 17 02 46](https://private-user-images.githubusercontent.com/37028599/321289714-22e10858-fa39-4952-a4a9-387ce5c84119.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxMDYzMTQsIm5iZiI6MTcyMzEwNjAxNCwicGF0aCI6Ii8zNzAyODU5OS8zMjEyODk3MTQtMjJlMTA4NTgtZmEzOS00OTUyLWE0YTktMzg3Y2U1Yzg0MTE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDA4MzMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3ODdiN2ZjNWM2NTUyNWI0YjNlYTA5NmEzZjA0MWM5ODk0MWU2NTMyNjBlNWQ1NTI3YTBmNjcyYzJkOWZlYTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7BPOBcdg_N6t5FjDTsCspaKHld_ks16QCpS_glb40lk)
Configuration
Versions:
Platform:
The text was updated successfully, but these errors were encountered: