Baseflow / Baseflow/flutter_cache_manager

v3.3.1 DefaultCacheManager().getSingleFile(url) throws and pauses the app in debug mode, rather than let the error be caught

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

Description

try {
return await DefaultCacheManager().getSingleFile(url);
} catch (e) {
debugPrint('Failed to load image: ${e}');
return null;
}

Should not crash or pause the app

Contributor guide

Open the contributing guide

Research direction

Start at the DefaultCacheManager().getSingleFile(url) entry point and reproduce the failure in debug mode using the try/catch shown in the issue. Trace why the error pauses or crashes the app instead of reaching the catch block; done means the failure is caught without pausing or crashing the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.