Baseflow / Baseflow/flutter_cache_manager
DatabaseException
- Dominant language
- Dart
- Stars
- 809
- Forks
- 510
- Avg merge
- 6m
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
Call the DefaultCacheManager().emptyCache() method to report an error
err:DatabaseException(attempt to write a readonly database - SQLITE_READONLY_DBMOVED (Sqlite code 1032), (OS error - 2:No such file or directory)) sql 'DELETE FROM cacheObject WHERE _id IN (1)' args []
### Expected behavior
### Reproduction steps
### Configuration
**Version:cached_network_image: ^3.1.0 flutter_cache_manager: ^3.1.2
**Platform:**
- [ ] :iphone: iOS
- [*] :robot: Android
Contributor guide
Research direction
Start with DefaultCacheManager().emptyCache() on Android using cached_network_image 3.1.0 and flutter_cache_manager 3.1.2, then trace the SQLite DELETE that reports SQLITE_READONLY_DBMOVED. The issue provides no reproduction steps or named files/tests; done means identifying the cause and confirming that emptyCache() works without the DatabaseException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, sqlite
- Domain
- databases, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100