twilio / conversations-ios

SPM releases
https://www.twilio.com/docs/conversations/ios/changelog
10 stars 5 forks source link

[Crash] NSInvalidArgumentException: *** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil #30

Closed AkshayAShah closed 1 year ago

AkshayAShah commented 1 year ago

Hello, We are getting crashes in Production ENV with the following stack trace.

NSInvalidArgumentException: *** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil

0  CoreFoundation            ___exceptionPreprocess
1  libobjc.A.dylib           _objc_exception_throw
2  CoreFoundation            __CFThrowFormattedException
3  CoreFoundation            -[__NSDictionaryM setObject:forKeyedSubscript:].cold.1
4  CoreFoundation            -[__NSDictionaryM setObject:forKeyedSubscript:]
5  TwilioConversationsClient -[TCHConversations conversationWrapperForInternalConversation:] (TCHConversations.mm:68:13)
6  TwilioConversationsClient -[TCHConversations listOfConversationsFromInternalList:] (TCHConversations.mm:89:41)
7  TwilioConversationsClient -[TCHConversations myConversations] (TCHConversations.mm:80:12)
8  TwilioConversationsClient -[TwilioConversationsClient onUserSubscribed:] (TCHConversationsClient.mm:1681:51)
9  TwilioConversationsClient ___ZN33TwilioConversationsClientListener16onUserSubscribedENSt3__110shared_ptrIN3rtd7ITMUserEEE_block_invoke (TwilioConversationsClientListener.mm:355:13)
10 libdispatch.dylib         __dispatch_call_block_and_release
11 libdispatch.dylib         __dispatch_client_callout
12 libdispatch.dylib         __dispatch_root_queue_drain
13 libdispatch.dylib         __dispatch_worker_thread2
14 libsystem_pthread.dylib   __pthread_wqthread
15 libsystem_pthread.dylib   _start_wqthread
berkus commented 1 year ago

I believe this one was fixed recently, @Gray-Wind to double check.

Gray-Wind commented 1 year ago

The fix of this issue will be included in the next release.

AkshayAShah commented 1 year ago

@Gray-Wind When is next release going to be published?

Gray-Wind commented 1 year ago

The release with the fix has been published.