-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Running my flutter app in debug mode using firebase_dart 1.1.0-dev.10 sometimes the following error is thrown:
`[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:firebase_dart/src/database/impl/persistence/tracked_query.dart': Failed assertion: line 343 pos 12: 'existing == null || existing.id == query.id': is not true.
tracked_query.dart:343
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
#2 TrackedQueryManager.cacheTrackedQuery
tracked_query.dart:343
#3 new TrackedQueryManager
tracked_query.dart:126
#4 new DefaultPersistenceManager
default_manager.dart:24
#5 BaseFirebaseDatabase.persistenceManager.<anonymous closure>
firebase_impl.dart:56
#6 DelegatingPersistenceManager.delegateTo
manager.dart:114
#7 DelegatingPersistenceManager.delegateTo (package:firebase_dart/src/database/impl/persistence/manager.dart)
manager.dart:1
#8 DelegatingPersistenceManager.serverCache
manager.dart:133
#9 SyncPoint.createMasterViewForFilter
synctree.dart:394
#10 SyncPoint.processNewQueries
synctree.dart:281
#11 SyncPoint.minimalSetOfQueries
synctree.dart:239
#12 SyncTree.handleInvalidPaths
synctree.dart:772
#13 new DelayedCancellableFuture.<anonymous closure>
utils.dart:246
The cause of this exception seems to be located in the storage file firebase-db-persistence-storage-.hive
Removing this file results in the assertion error not be thrown anymore.
Metadata
Metadata
Assignees
Labels
No labels