WorryFree Computers   »   [go: up one dir, main page]

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 #6522

Closed
Rajeev09 opened this issue Sep 22, 2020 · 5 comments · Fixed by #6556
Closed

Fatal Exception: NSInvalidArgumentException #6522

Rajeev09 opened this issue Sep 22, 2020 · 5 comments · Fixed by #6556
Assignees
Milestone

Comments

@Rajeev09
Copy link
Rajeev09 commented Sep 22, 2020

Step 0: Are you in the right place?

  • For issues or feature requests related to the code in this repository
    file a Github issue.
    • If this is a feature request please use the Feature Request template.
  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general (non-iOS) Firebase discussion, use the firebase-talk
    google group.
  • For backend issues, console issues, and other non-SDK help that does not fall under one
    of the above categories, reach out to
    Firebase Support.
  • Once you've read this section and determined that your issue is appropriate for
    this repository, please delete this section.

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.0
  • Firebase SDK version: 6.32.0
  • Firebase 6.32.2
  • FirebaseABTesting 4.2.0
  • FirebaseAnalytics 6.8.2
  • FirebaseCore 6.10.2
  • FirebaseCoreDiagnostics 1.6.0
  • FirebaseDatabase 6.6.0
  • FirebaseInstallations 1.7.0
  • FirebaseInstanceID 4.6.0
  • FirebaseMessaging 4.6.2
  • FirebasePerformance 3.3.0
  • FirebaseRemoteConfig 4.9.0
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

  • (void)fetchWithExpirationDuration:(NSTimeInterval)expirationDuration
    completionHandler:(void (^_Nullable)(FIRRemoteConfigFetchStatus status,
    NSError *_Nullable error))completionHandler;
    when this function is called, app is crashing sometimes.Please find crash log below

Relevant Code:

Crash *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
with following stack trace

Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x190f66180 __exceptionPreprocess
1 libobjc.A.dylib 0x19013e9f8 objc_exception_throw
2 CoreFoundation 0x190edfbec _CFArgv
3 CoreFoundation 0x190e67898 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
4 CoreFoundation 0x190e58474 +[NSDictionary dictionaryWithObjects:forKeys:count:]
5 Connect 0x10198feb0 __60-[RCNConfigFetch fetchWithUserProperties:completionHandler:]_block_invoke_2 + 413 (RCNConfigFetch.m:413)
6 libdispatch.dylib 0x1909a3a38 _dispatch_call_block_and_release
7 libdispatch.dylib 0x1909a47d4 _dispatch_client_callout
8 libdispatch.dylib 0x19094d324 _dispatch_lane_serial_drain$VARIANT$mp
9 libdispatch.dylib 0x19094de40 _dispatch_lane_invoke$VARIANT$mp
10 libdispatch.dylib 0x1909564ac _dispatch_workloop_worker_thread
11 libsystem_pthread.dylib 0x190b85114 _pthread_wqthread
12 libsystem_pthread.dylib 0x190b87cd4 start_wqthread

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@paulb777
Copy link
Member

Please make sure you're using a recent Firebase version and fill out the issue template with installation method and versions. Similar issues have been fixed in recent releases.

@Rajeev09
Copy link
Author

Filled the template, Please help us with reason as to why it is crashing and how to fix this

@paulb777
Copy link
Member

Thanks for the report. Are you able to reproduce locally? Does removing FirebasePerformance make a difference?

@Rajeev09
Copy link
Author

not able to reproduce locally, this is actually a production crash

@paulb777 paulb777 self-assigned this Sep 24, 2020
@paulb777 paulb777 added this to the 6.34.0 - M81 milestone Sep 24, 2020
@firebase firebase locked and limited conversation to collaborators Oct 25, 2020
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.

4 participants