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

Fatal Exception: NSInvalidArgumentException #6563

Closed
slccper opened this issue Sep 25, 2020 · 4 comments
Closed

Fatal Exception: NSInvalidArgumentException #6563

slccper opened this issue Sep 25, 2020 · 4 comments

Comments

@slccper
Copy link

slccper commented Sep 25, 2020

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.1
  • Firebase SDK version: 6.27.0
  • Firebase Component: Core, Performance, Crashlytics, RemoteConfig)
  • Component version: 6.27.0
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
-[FIRInstallationsAPIService registerRequestWithInstallation:]


Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x1924dafd8 __exceptionPreprocess
1  libobjc.A.dylib                0x190f3c538 objc_exception_throw
2  CoreFoundation                 0x1923c19a4 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
3  CoreFoundation                 0x1923c1814 +[NSDictionary dictionaryWithObjects:forKeys:count:]
4  Newchic                        0x1002af368 -[FIRInstallationsAPIService registerRequestWithInstallation:] + 139 (FIRInstallationsAPIService.m:139)
5  Newchic                        0x1002aecd8 -[FIRInstallationsAPIService registerInstallation:] + 94 (FIRInstallationsAPIService.m:94)
6  Newchic                        0x1002b2bb8 -[FIRInstallationsIDController registerInstallationIfNeeded:] + 256 (FIRInstallationsIDController.m:256)
7  Newchic                        0x100387178 __56-[FBLPromise chainOnQueue:chainedFulfill:chainedReject:]_block_invoke.50 + 273 (FBLPromise.m:273)
8  libdispatch.dylib              0x1913929e0 _dispatch_call_block_and_release
9  libdispatch.dylib              0x1913929a0 _dispatch_client_callout
10 libdispatch.dylib              0x1913973c0 _dispatch_main_queue_callback_4CF
11 CoreFoundation                 0x1924890c0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
12 CoreFoundation                 0x192486cdc __CFRunLoopRun
13 CoreFoundation                 0x1923b6d94 CFRunLoopRunSpecific
14 GraphicsServices               0x193e20074 GSEventRunModal
15 UIKit                          0x19866f130 UIApplicationMain
16 Newchic                        0x100efb5c4 main + 14 (main.m:14)
17 libdyld.dylib                  0x1913c559c start

@maksymmalyhin
Copy link
Contributor

@slccper Thank you for the report.

The crash info indicates that installation.firebaseInstallationID is nil here. We will add additional validation to prevent crashes in such cases, but this most likely indicates an underlying issue which will lead to further issues with dependent SDKs.

Could you please post application logs with Firebase debug logging enabled to help us investigate and fix the issue? To enable debug logging please follow the instructions from the first step of the guide.

@paulb777
Copy link
Member

paulb777 commented Nov 6, 2020

@slccper We've made some fixes here. Would you check with the latest release?

@google-oss-bot
Copy link

Hey @slccper. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@slccper if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Dec 21, 2020
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

5 participants