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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed assertion in tracked_query.dart: line 343 pos 12: 'existing == null || existing.id == query.id': is not true. #45

Open
timalenustmf opened this issue May 17, 2023 · 0 comments

Comments

@timalenustmf
Copy link

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.

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