Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatabaseException(attempt to re-open an already-closed object) #427

Open
1 task
sudha-anecure opened this issue Aug 18, 2023 · 0 comments
Open
1 task

Comments

@sudha-anecure
Copy link

sudha-anecure commented Aug 18, 2023

馃悰 Bug Report

Getting DatabaseException(attempt to re-open an already-closed object
flutter_cache_manager(v3.3.0) is indirectly used in our app because we use CachedNetworkImageProvider to display images in our app

We get the following exception in our app from some of our customer devices. We do not have repro steps. We are using v3.3.0. flutter_cache_manager is indirectly used in our app because we use CachedNetworkImageProvider

DatabaseException(attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/ourapp_bundle_removed/files/libCachedImageData.db) sql 'SELECT * FROM cacheObject WHERE key = ?' args [https://cdnimages.ourappdomain_removed.com/3fe587d7369f7f0784881...] Stack trace: #0 wrapDatabaseException (package:sqflite/src/exception_impl.dart:11) <asynchronous suspension> #1 SqfliteDatabaseMixin.txnRawQuery.<anonymous closure> (package:sqflite_common/src/database_mixin.dart:559) <asynchronous suspension> #2 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33) <asynchronous suspension> #3 SqfliteDatabaseMixin.txnSynchronized (package:sqflite_common/src/database_mixin.dart:490) <asynchronous suspension> #4 CacheObjectProvider.get (package:flutter_cache_manager/src/storage/cache_info_repositories/cache_object_provider.dart:110) <asynchronous suspension> #5 CacheStore._getCacheDataFromDatabase (package:flutter_cache_manager/src/cache_store.dart:116) <asynchronous suspension>

Expected behavior

This alert does not occur

Reproduction steps

N/A

Configuration

v3.3.0 of flutter_cache_manager
Flutter Version: 3.3.10

Platform:

  • 馃摫 iOS
  • [ X] 馃 Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant