Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Hot restarting the app will make the db connection unusable #1

Open
long1eu opened this issue Oct 19, 2018 · 0 comments
Open

Hot restarting the app will make the db connection unusable #1

long1eu opened this issue Oct 19, 2018 · 0 comments

Comments

@long1eu
Copy link
Owner

long1eu commented Oct 19, 2018

Hot restarting the app will make the db connection unusable since we open it in lock mode.

-[FMResultSet nextWithError:]:168 Database busy (/var/mobile/Containers/Data/Application/F2C1D3CD-7968-46DE-B5EE-73B92CA02147/Documents/firestore.%5BDEFAULT%5D.flutter-sdk.%28default%29.db)
Database busy
[VERBOSE-2:shell.cc(181)] Dart Error: Unhandled exception:
Bad state: No element
#0      _ListBase&Object&ListMixin.first (dart:collection/list.dart:80:22)
#1      DatabaseImplementation.create (package:firebase_flutter/database.dart:35:38)
<asynchronous suspension>
#2      runFirebaseApp.<anonymous closure> (package:firebase_flutter/firebase_flutter.dart:61:39)
#3      SQLitePersistence._openDb (package:firebase_firestore/src/firebase/firestore/local/sqlite_persistence.dart:192:43)
<asynchronous suspension>
#4      SQLitePersistence.start (package:firebase_firestore/src/firebase/firestore/local/sqlite_persistence.dart:92:17)
<asynchronous suspension>
#5      FirestoreClient._initialize (package:firebase_firestore/src/firebase/firestore/core/firestore_client.dart:201:23)
<asynchronous suspension>
#6      FirestoreClient.initialize (package:firebase_firestore/src/firebase/firestore/core/firestore_client.dart:92:18)
<asynchronous suspension>
#7      FirebaseFirestore.newInstance (package:firebase_firestore/src/firebase/firestore/firebase_firestore.dart:106:58)
<asynchronous suspension>
#8      FirestoreMultiDbComponent.get (package:firebase_firestore/src/firebase/firestore/firestore_multi_db_component.dart:27:64)
<asynchronous suspension>
#9      FirebaseFirestore.getInstance (package:firebase_firestore/src/firebase/firestore/firebase_firestore.dart:73:25)
<asynchronous suspension>
#10     runFirebaseApp (package:firebase_flutter/firebase_flutter.dart:52:29)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant