-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
App Crash in React Native - [__NSDictionaryM setObject:forKey:]: key cannot be nil #3681
Comments
Hey @HimanshuRstar thanks for writing in! According to the issue description you're using |
Hey Lukas,
My bad, we are using @sentry/react-native in our Application.
Thanks,
Himanshu
…________________________________
From: Lukas Stracke ***@***.***>
Sent: Thursday, February 22, 2024 1:59 PM
To: getsentry/sentry-javascript ***@***.***>
Cc: Himanshu Kathuria ***@***.***>; Mention ***@***.***>
Subject: [External]Re: [getsentry/sentry-javascript] App Crash in React Native - [__NSDictionaryM setObject:forKey:]: key cannot be nil (Issue getsentry/sentry-cocoa#3681)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hey @HimanshuRstar<https://github.com/HimanshuRstar> thanks for writing in!
According to the issue description you're using @sentry/react. Can you confirm that this is the SDK you're using or are you using @sentry/react-native? Just trying to figure out where to route this issue to ;)
—
Reply to this email directly, view it on GitHub<#3681>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYRRFH2GRU6UGSY5MGW2OPTYU36XXAVCNFSM6AAAAABDULUGNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJYHE2DAOJYGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
No worries all good! I'm just gonna transfer this issue to the React Native SDK repo and tag @krystofwoldrich to please take a look. Thanks! |
Thanks @Lms24. Appreciate it! |
Hey @himujs can you share the versions of @sentry/react-native and React Native you're using? Also you're indicating that you updated versions/dependencies recently, and that it worked until your change, is that correct? Which versions did you use before that worked? |
Sure @kahest. So we were earlier using This was working fine until yesterday. But it started giving this error - We tried upgrading the sentry/react-native to 5.19.0 which is the latest right now but still no luck. After completely disabling the sentry from our App.tsx and our utility file, we didn't encounter any crashes. Not sure if it'll help but a similar issue was opened in 2021 - getsentry/sentry-react-native#1367 |
Also, we are not using setObjectForKey anywhere in the application. It was only found in deepsearch in sentry - Hope it helps for more context. 😄 |
This is the mentioned code, but the particular piece has not changed in years. sentry-cocoa/Sources/SentryCrash/Reporting/Filters/Tools/Container+SentryDeepSearch.m Line 109 in 3f74b8f
@himujs Can you share the stack trace of the error? @philipphofmann @brustolin Based on the current information do you have any thoughts? |
I have no clue what could be causing this, but the Cocoa SDK causes it. I'm moving this to the sentry-cocoa repository. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.102.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
As soon as I open my React Native app it gives an error -
Error Details
the issue in finding the setObject:forKey: in Container+SentryDeepSearch.m (path - pods/sentry/sources/SentryCrash/Reporting. It might be due to the updates in the dependency of the sentry.
Expected Result
It was working fine until yesterday.
Actual Result
The text was updated successfully, but these errors were encountered: