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

Firestore crash: Can't handle server close in non-started state. #490

Closed
plu opened this issue Nov 23, 2017 · 2 comments · Fixed by #510
Closed

Firestore crash: Can't handle server close in non-started state. #490

plu opened this issue Nov 23, 2017 · 2 comments · Fixed by #510
Assignees

Comments

@plu
Copy link

plu commented Nov 23, 2017

Describe your environment

  • Xcode version: 9.1
  • Firebase SDK version: 4.6.0
  • Firebase Component: Firestore
  • Component version: 0.9.2

Describe the problem

Crash report from Crashlytics:

Fatal Exception: NSInternalInconsistencyException
FIRESTORE INTERNAL ASSERTION FAILED: Can't handle server close in non-started state.

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x181609d04 __exceptionPreprocess
1  libobjc.A.dylib                0x180858528 objc_exception_throw
2  CoreFoundation                 0x181609bd8 +[NSException raise:format:]
3  Foundation                     0x181f99c24 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  CryptoRadar                    0x1042bfe74 -[FSTStream handleStreamClose:]
5  CryptoRadar                    0x1042c0340 __37-[FSTStream writesFinishedWithError:]_block_invoke
6  libdispatch.dylib              0x180f8d088 _dispatch_call_block_and_release
7  libdispatch.dylib              0x180f8d048 _dispatch_client_callout
8  libdispatch.dylib              0x180f96e48 _dispatch_queue_serial_drain$VARIANT$mp
9  libdispatch.dylib              0x180f977d8 _dispatch_queue_invoke$VARIANT$mp
10 libdispatch.dylib              0x180f98200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp
11 libdispatch.dylib              0x180fa04a0 _dispatch_workloop_worker_thread$VARIANT$mp
12 libsystem_pthread.dylib        0x181232fd0 _pthread_wqthread
13 libsystem_pthread.dylib        0x181232c20 start_wqthread

Steps to reproduce:

Unfortunately I don't know how to reproduce it.

@cforkish
Copy link

I am experiencing this as well. Unable to reliably reproduce so far, but it mostly (or maybe only) occurs when resuming the app from the background by tapping a push notification.

@brianhiss
Copy link

@cforkish I'm able to reliably reproduce this FATAL crash when opening a FCM Push Notification with the app in the background.

Using Firebase (4.6.0)
Using FirebaseAnalytics (4.0.5)
Using FirebaseAuth (4.3.2)
Using FirebaseCore (4.0.11)
Using FirebaseCrash (2.0.2)
Using FirebaseDatabase (4.1.1)
Using FirebaseFirestore (0.9.2)
Using FirebaseInstanceID (2.0.6)
Using FirebaseMessaging (2.0.6)
Using FirebasePerformance (1.0.6)
Using FirebaseStorage (2.0.2)

@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants