Baseflow / Baseflow/flutter_cache_manager

stop reason = EXC_RESOURCE RESOURCE_TYPE_MEMORY

Open
#389 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
809
Forks
510
Avg merge
6m
Merged PRs (30d)
1

Description

## 🐛 Bug Report

It starts to use a lot of memory and the application crashes when switching pages in the bottom bar.

and I got

`stop reason = EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2098 MB, unused=0x0)`

in terminal with physical phone.

----

I tried to add
- memCacheWidth parameter
- `ImageCache _imageCache = PaintingBinding.instance!.imageCache!;`
` _imageCache.clear();`
` _imageCache.clearLiveImages();`

but it's not working still.

----
`Flutter version 3.0.0`
`Dart version 2.17.0`

`cached_network_image: v3.2.0`

**Platform:**
- [x] :iphone: iOS
- [x] :robot: Android

Contributor guide

Open the contributing guide

Research direction

No repository file or test is named. Start by reproducing repeated bottom-bar page switches on a physical iOS and Android device using the reported Flutter and Dart versions, then investigate the cached_network_image and ImageCache behavior described. Done means identifying the memory growth cause and verifying that page switching no longer exhausts memory or crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter, ios
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.