firebase / firebase/firebase-js-sdk

INTERNAL ASSERTION FAILED: Unexpected state, occurs in BrowserTitle for the bug

Open
#7,884 2 comments 1 reaction 1 assignee Claimed by @tom-andersen View on GitHub
api: firestore needs-attention question stack:FlutterWeb
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

ios 17.1.2

### Browser Version

ios webview

### Firebase SDK Version

10.7.1

### Firebase SDK Product:

Firestore

### Describe your project's tooling

Flutter, with webview flutter, which runs our webapp

### Describe the problem

We have a user that views our webapp (via the appliation), whenever he moves that app to the background, and returns it to, we receive a "INTERNAL ASSERTION FAILED: Unexpected state, occurs in BrowserTitle for the bug" error.

Note: this only happen with this code (persistency on):
` initializeFirestore(app,
{
localCache:
persistentLocalCache({tabManager: persistentSingleTabManager()})
});`
But does not happen with this code (persistency off):
` initializeFirestore(app,
{localCache: null
});`

Here are logs leading to that error:
[2023-12-18T11:53:00.268Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: Apply remote event
[2023-12-18T11:53:00.269Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900379595}
[2023-12-18T11:53:00.269Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targets {"targetId":52,"canonicalId":"location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy|f:|ob:__name__asc","readTime":{"seconds":1702900380,"nanoseconds":305300000},"resumeToken":"CgkIlI+GovaYgwM=","lastListenSequenceNumber":34320,"lastLimboFreeSnapshotVersion":{"seconds":1702900379,"nanoseconds":633288000},"query":{"documents":["projects/civil-guard/databases/(default)/documents/location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy"]}}
[2023-12-18T11:53:00.270Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001BmuvrcCGKsGfNJjIqe5j\u0001\u0001","sequenceNumber":34320}
[2023-12-18T11:53:00.270Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001C5f8R1p3IAJ1UhbiDM4I\u0001\u0001","sequenceNumber":34320}
[2023-12-18T11:53:00.270Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001TtVS7m3H3Mxb0MfXkT9X\u0001\u0001","sequenceNumber":34320}
[2023-12-18T11:53:00.270Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001YPYEowNwmIXnQ7ihknzr\u0001\u0001","sequenceNumber":34320}
[2023-12-18T11:53:00.274Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34317,"lastRemoteSnapshotVersion":{"seconds":1702900379,"nanoseconds":633288000},"targetCount":138}
[2023-12-18T11:53:00.274Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34317,"lastRemoteSnapshotVersion":{"seconds":1702900379,"nanoseconds":633288000},"targetCount":138}
[2023-12-18T11:53:00.274Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34320,"lastRemoteSnapshotVersion":{"seconds":1702900380,"nanoseconds":305300000},"targetCount":138}
[2023-12-18T11:53:00.276Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900379,633288000],"BmuvrcCGKsGfNJjIqe5j"]
[2023-12-18T11:53:00.276Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"BmuvrcCGKsGfNJjIqe5j","readTime":[1702900380,305300000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","BmuvrcCGKsGfNJjIqe5j"],"readTime":{"seconds":1702900380,"nanoseconds":305300000}}}
[2023-12-18T11:53:00.276Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900379,633288000],"C5f8R1p3IAJ1UhbiDM4I"]
[2023-12-18T11:53:00.276Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"C5f8R1p3IAJ1UhbiDM4I","readTime":[1702900380,305300000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","C5f8R1p3IAJ1UhbiDM4I"],"readTime":{"seconds":1702900380,"nanoseconds":305300000}}}
[2023-12-18T11:53:00.276Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900379,633288000],"TtVS7m3H3Mxb0MfXkT9X"]
[2023-12-18T11:53:00.276Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"TtVS7m3H3Mxb0MfXkT9X","readTime":[1702900380,305300000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","TtVS7m3H3Mxb0MfXkT9X"],"readTime":{"seconds":1702900380,"nanoseconds":305300000}}}
[2023-12-18T11:53:00.277Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900379,633288000],"YPYEowNwmIXnQ7ihknzr"]
[2023-12-18T11:53:00.277Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"YPYEowNwmIXnQ7ihknzr","readTime":[1702900380,305300000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","YPYEowNwmIXnQ7ihknzr"],"readTime":{"seconds":1702900380,"nanoseconds":305300000}}}
[2023-12-18T11:53:00.277Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900379,633288000],"ncM9C2yFElhvfTSDvaxy"]
[2023-12-18T11:53:00.277Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"ncM9C2yFElhvfTSDvaxy","readTime":[1702900380,305300000],"hasCommittedMutations":false,"document":{"name":"projects/civil-guard/databases/(default)/documents/location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy","fields":{"source":{"stringValue":"live_location_motion"},"location":{"mapValue":{"fields":{"lng":{"doubleValue":34.992069243200326},"lat":{"doubleValue":32.78886554298709}}}},"lat":{"doubleValue":32.78886554298709},"accuracy":{"doubleValue":9.127530327115704},"in_settlement":{"booleanValue":false},"lastUpdated":{"integerValue":"1702900380209"},"isCharging":{"booleanValue":false},"distance_from_settlement":{"doubleValue":79.13429689147343},"batteryLevel":{"integerValue":"85"},"lng":{"doubleValue":34.992069243200326}},"updateTime":"2023-12-18T11:53:00.305300000Z","createTime":"2023-11-08T10:11:17.102245000Z"}}
[2023-12-18T11:53:00.278Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET remoteDocumentGlobal remoteDocumentGlobalKey {"byteSize":368331}
[2023-12-18T11:53:00.278Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentGlobal remoteDocumentGlobalKey {"byteSize":368332}
[2023-12-18T11:53:00.279Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","BmuvrcCGKsGfNJjIqe5j"] null
[2023-12-18T11:53:00.279Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","C5f8R1p3IAJ1UhbiDM4I"] null
[2023-12-18T11:53:00.279Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","TtVS7m3H3Mxb0MfXkT9X"] null
[2023-12-18T11:53:00.279Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","YPYEowNwmIXnQ7ihknzr"] null
[2023-12-18T11:53:00.279Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","ncM9C2yFElhvfTSDvaxy"] null
[2023-12-18T11:53:00.280Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900380280}
[2023-12-18T11:53:00.282Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: notifyLocalViewChanges
[2023-12-18T11:53:00.286Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900380280}
[2023-12-18T11:53:00.286Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:01.244Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: updateClientMetadataAndTryBecomePrimary
[2023-12-18T11:53:01.244Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900380280}
[2023-12-18T11:53:01.244Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:01.244Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT clientMetadata {"clientId":"5EdXsSHkKr5JVOGviWY5","updateTimeMs":1702900381244,"networkEnabled":true,"inForeground":true}
[2023-12-18T11:53:01.244Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900380280}
[2023-12-18T11:53:01.245Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900380280}
[2023-12-18T11:53:01.245Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:01.245Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381245}
[2023-12-18T11:53:01.356Z] @firebase/firestore: Firestore (10.7.1): WebChannelConnection RPC 'Listen' stream 0x411e06d5 received: {"documentChange":{"document":{"name":"projects/civil-guard/databases/(default)/documents/location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy","fields":{"lng":{"doubleValue":34.992069243200326},"isCharging":{"booleanValue":false},"in_settlement":{"booleanValue":false},"source":{"stringValue":"metered_location_bg_task"},"batteryLevel":{"integerValue":"85"},"accuracy":{"doubleValue":9.127530327115704},"lat":{"doubleValue":32.78886554298709},"distance_from_settlement":{"doubleValue":79.13429689147343},"lastUpdated":{"integerValue":"1702900381316"},"location":{"mapValue":{"fields":{"lng":{"doubleValue":34.992069243200326},"lat":{"doubleValue":32.78886554298709}}}}},"createTime":"2023-11-08T10:11:17.102245Z","updateTime":"2023-12-18T11:53:01.399219Z"},"targetIds":[52]}}
[2023-12-18T11:53:01.356Z] @firebase/firestore: Firestore (10.7.1): WebChannelConnection RPC 'Listen' stream 0x411e06d5 received: {"targetChange":{"resumeToken":"CgkIs/HIovaYgwM=","readTime":"2023-12-18T11:53:01.399219Z"}}
[2023-12-18T11:53:01.356Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: Get last remote snapshot version
[2023-12-18T11:53:01.357Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381245}
[2023-12-18T11:53:01.357Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:01.358Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34320,"lastRemoteSnapshotVersion":{"seconds":1702900380,"nanoseconds":305300000},"targetCount":138}
[2023-12-18T11:53:01.359Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: Apply remote event
[2023-12-18T11:53:01.360Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381245}
[2023-12-18T11:53:01.360Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targets {"targetId":52,"canonicalId":"location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy|f:|ob:__name__asc","readTime":{"seconds":1702900381,"nanoseconds":399219000},"resumeToken":"CgkIs/HIovaYgwM=","lastListenSequenceNumber":34324,"lastLimboFreeSnapshotVersion":{"seconds":1702900380,"nanoseconds":305300000},"query":{"documents":["projects/civil-guard/databases/(default)/documents/location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy"]}}
[2023-12-18T11:53:01.361Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001BmuvrcCGKsGfNJjIqe5j\u0001\u0001","sequenceNumber":34324}
[2023-12-18T11:53:01.361Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001C5f8R1p3IAJ1UhbiDM4I\u0001\u0001","sequenceNumber":34324}
[2023-12-18T11:53:01.361Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001TtVS7m3H3Mxb0MfXkT9X\u0001\u0001","sequenceNumber":34324}
[2023-12-18T11:53:01.361Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetDocuments {"targetId":0,"path":"location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001YPYEowNwmIXnQ7ihknzr\u0001\u0001","sequenceNumber":34324}
[2023-12-18T11:53:01.364Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34320,"lastRemoteSnapshotVersion":{"seconds":1702900380,"nanoseconds":305300000},"targetCount":138}
[2023-12-18T11:53:01.364Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34320,"lastRemoteSnapshotVersion":{"seconds":1702900380,"nanoseconds":305300000},"targetCount":138}
[2023-12-18T11:53:01.364Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT targetGlobal targetGlobalKey {"highestTargetId":276,"highestListenSequenceNumber":34324,"lastRemoteSnapshotVersion":{"seconds":1702900381,"nanoseconds":399219000},"targetCount":138}
[2023-12-18T11:53:01.366Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900380,305300000],"BmuvrcCGKsGfNJjIqe5j"]
[2023-12-18T11:53:01.366Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"BmuvrcCGKsGfNJjIqe5j","readTime":[1702900381,399219000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","BmuvrcCGKsGfNJjIqe5j"],"readTime":{"seconds":1702900381,"nanoseconds":399219000}}}
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900380,305300000],"C5f8R1p3IAJ1UhbiDM4I"]
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"C5f8R1p3IAJ1UhbiDM4I","readTime":[1702900381,399219000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","C5f8R1p3IAJ1UhbiDM4I"],"readTime":{"seconds":1702900381,"nanoseconds":399219000}}}
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900380,305300000],"TtVS7m3H3Mxb0MfXkT9X"]
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"TtVS7m3H3Mxb0MfXkT9X","readTime":[1702900381,399219000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","TtVS7m3H3Mxb0MfXkT9X"],"readTime":{"seconds":1702900381,"nanoseconds":399219000}}}
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900380,305300000],"YPYEowNwmIXnQ7ihknzr"]
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"YPYEowNwmIXnQ7ihknzr","readTime":[1702900381,399219000],"hasCommittedMutations":false,"noDocument":{"path":["location-mati-test-EWq9ZULMSTKdZfXLkpAk","YPYEowNwmIXnQ7ihknzr"],"readTime":{"seconds":1702900381,"nanoseconds":399219000}}}
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb DELETE remoteDocumentsV14 [[],"location-mati-test-EWq9ZULMSTKdZfXLkpAk",[1702900380,305300000],"ncM9C2yFElhvfTSDvaxy"]
[2023-12-18T11:53:01.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentsV14 {"prefixPath":[],"collectionGroup":"location-mati-test-EWq9ZULMSTKdZfXLkpAk","documentId":"ncM9C2yFElhvfTSDvaxy","readTime":[1702900381,399219000],"hasCommittedMutations":false,"document":{"name":"projects/civil-guard/databases/(default)/documents/location-mati-test-EWq9ZULMSTKdZfXLkpAk/ncM9C2yFElhvfTSDvaxy","fields":{"lng":{"doubleValue":34.992069243200326},"isCharging":{"booleanValue":false},"in_settlement":{"booleanValue":false},"source":{"stringValue":"metered_location_bg_task"},"batteryLevel":{"integerValue":"85"},"accuracy":{"doubleValue":9.127530327115704},"lat":{"doubleValue":32.78886554298709},"distance_from_settlement":{"doubleValue":79.13429689147343},"lastUpdated":{"integerValue":"1702900381316"},"location":{"mapValue":{"fields":{"lng":{"doubleValue":34.992069243200326},"lat":{"doubleValue":32.78886554298709}}}}},"updateTime":"2023-12-18T11:53:01.399219000Z","createTime":"2023-11-08T10:11:17.102245000Z"}}
[2023-12-18T11:53:01.370Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET remoteDocumentGlobal remoteDocumentGlobalKey {"byteSize":368332}
[2023-12-18T11:53:01.370Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT remoteDocumentGlobal remoteDocumentGlobalKey {"byteSize":368336}
[2023-12-18T11:53:01.371Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","BmuvrcCGKsGfNJjIqe5j"] null
[2023-12-18T11:53:01.371Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","C5f8R1p3IAJ1UhbiDM4I"] null
[2023-12-18T11:53:01.371Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","TtVS7m3H3Mxb0MfXkT9X"] null
[2023-12-18T11:53:01.371Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","YPYEowNwmIXnQ7ihknzr"] null
[2023-12-18T11:53:01.371Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET documentOverlays ["EWq9ZULMSTKdZfXLkpAk-ncM9C2yFElhvfTSDvaxy","location-mati-test-EWq9ZULMSTKdZfXLkpAk\u0001\u0001","ncM9C2yFElhvfTSDvaxy"] null
[2023-12-18T11:53:01.371Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381371}
[2023-12-18T11:53:01.374Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: notifyLocalViewChanges
[2023-12-18T11:53:01.399Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381371}
[2023-12-18T11:53:01.399Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:02.206Z] @firebase/firestore: Firestore (10.7.1): AsyncQueue Visibility state changed to hidden
[2023-12-18T11:53:02.206Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: updateClientMetadataAndTryBecomePrimary
[2023-12-18T11:53:02.206Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381371}
[2023-12-18T11:53:02.206Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:02.206Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT clientMetadata {"clientId":"5EdXsSHkKr5JVOGviWY5","updateTimeMs":1702900382206,"networkEnabled":true,"inForeground":false}
[2023-12-18T11:53:02.237Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381371}
[2023-12-18T11:53:02.237Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900381371}
[2023-12-18T11:53:02.237Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:02.237Z] @firebase/firestore: Firestore (10.7.1): SimpleDb PUT owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900382237}
[2023-12-18T11:53:03.261Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Starting transaction: Locally write mutations
[2023-12-18T11:53:03.326Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900382237}
[2023-12-18T11:53:03.326Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:03.625Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Aborting transaction: Attempt to get a record from database without an in-progress transaction
[2023-12-18T11:53:03.625Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Transaction failed with error: Attempt to get a record from database without an in-progress transaction Retrying: true
[2023-12-18T11:53:03.625Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Opening database: firestore/[DEFAULT]/civil-guard/main
[2023-12-18T11:53:03.743Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900382237}
[2023-12-18T11:53:03.743Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:03.982Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Aborting transaction: Attempt to get a record from database without an in-progress transaction
[2023-12-18T11:53:03.983Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Transaction failed with error: Attempt to get a record from database without an in-progress transaction Retrying: true
[2023-12-18T11:53:03.983Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Opening database: firestore/[DEFAULT]/civil-guard/main
[2023-12-18T11:53:04.242Z] @firebase/firestore: Firestore (10.7.1): SimpleDb GET owner owner {"ownerId":"5EdXsSHkKr5JVOGviWY5","allowTabSynchronization":false,"leaseTimestampMs":1702900382237}
[2023-12-18T11:53:04.243Z] @firebase/firestore: Firestore (10.7.1): IndexedDbPersistence Client '5EdXsSHkKr5JVOGviWY5' is not zombied in LocalStorage
[2023-12-18T11:53:04.367Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Aborting transaction: Attempt to open a cursor in database without an in-progress transaction
[2023-12-18T11:53:04.368Z] @firebase/firestore: Firestore (10.7.1): SimpleDb Transaction failed with error: Attempt to open a cursor in database without an in-progress transaction Retrying: false

### Steps and code to reproduce issue

Only happens consistently at a specific user phone

He views the webapp (which resides inside a webview inside the iOS application)
He moves the app to the background, returns to the app, and it happens immediately.

I think it is similar to https://github.com/firebase/firebase-js-sdk/issues/6684

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.