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

[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0] #5323

Open
thecodebuilder opened this issue May 6, 2024 · 1 comment
Labels
bug Something isn't working core Issues related to AWSCore pending-response Issue is pending response from the issue requestor

Comments

@thecodebuilder
Copy link

We are using AWS SDK for authentication purpose in our project. Further we are regularly observing fatal crash with the reason mentioned below:
Fatal Exception: NSInvalidArgumentException
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

Stack Trace
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0xecb28 __exceptionPreprocess
1 libobjc.A.dylib 0x2af78 objc_exception_throw
2 CoreFoundation 0x56898 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
3 CoreFoundation 0x561b4 +[NSDictionary dictionaryWithObjects:forKeys:count:]
4 AWSAuthCore 0x87e8 (Missing UUID 82924a51cb7e306480fd251f9956680b)
5 AWSCore 0x4f714 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
6 AWSCore 0x4f294 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
7 AWSCore 0x24af0 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
8 AWSCore 0x24f9c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
9 AWSCore 0x4ef5c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
10 AWSCore 0x4eb84 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
11 AWSCore 0x4fc28 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
12 AWSCore 0x4f43c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
13 AWSCore 0x4f330 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
14 AWSCore 0x24af0 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
15 AWSCore 0x24f9c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
16 AWSCore 0x4ef5c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
17 AWSCore 0x4eb84 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
18 AWSCore 0x4fc28 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
19 AWSCore 0x4f43c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
20 AWSCore 0x4f330 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
21 AWSCore 0x24af0 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
22 AWSCore 0x24f9c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
23 AWSCore 0x4ef5c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
24 AWSCore 0x4eb84 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
25 AWSCore 0x4fc28 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
26 AWSCore 0x5b684 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
27 AWSCore 0x4f714 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
28 AWSCore 0x4f294 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
29 AWSCore 0x24af0 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
30 AWSCore 0x24f9c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
31 AWSCore 0x4f12c (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
32 AWSCore 0x4f684 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
33 AWSCore 0x4f788 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
34 AWSCore 0x5a9a0 (Missing UUID bfc5c8ddf66530d1b3b1f5c254d19798)
35 CFNetwork 0x1598c _CFNetworkSetHSTSStoragePath
36 libdispatch.dylib 0x213c _dispatch_call_block_and_release
37 libdispatch.dylib 0x3dd4 _dispatch_client_callout
38 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain
39 libdispatch.dylib 0xbf64 _dispatch_lane_invoke
40 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh
41 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread
42 libsystem_pthread.dylib 0x1f20 _pthread_wqthread
43 libsystem_pthread.dylib 0x1fc0 start_wqthread

Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
AWSCore

Environment(please complete the following information):

  • SDK Version: - 2.31.1
  • Dependency Manager: - Cocoapods
  • Swift Version : - 5.9
  • Xcode Version: - 15.2

Device Information (please complete the following information):

  • Device: - Model:iPhone 14
  • iOS Version:- iOS 17.4.1
  • Specific to simulators: No

We recently updated our sdk to 2.31.1 but still the result is same. Please check the issue and let us know how we can fix this.

@ruisebas
Copy link
Member

ruisebas commented May 6, 2024

Hi @thecodebuilder, thanks for opening this issue.
Could you please share the full symbolicated crashlog?

Also, are you able to reproduce the crash locally? If so, would you mind sharing some reproduction steps and the verbose logs you get?

You can enable verbose logging to the console by doing the following:

AWSDDLog.sharedInstance.logLevel = .verbose
AWSDDLog.add(AWSDDOSLogger.sharedInstance)

Thanks!

@ruisebas ruisebas added core Issues related to AWSCore bug Something isn't working pending-response Issue is pending response from the issue requestor labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Issues related to AWSCore pending-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

2 participants