Closed
Labels
Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Description:
We're seeing some crashes in our Crashlytics dashboard with the following error:
Fatal Exception: NSInvalidArgumentException
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
coming from
RCTWebSocketModule.m
-[RCTWebSocketModule webSocket:didFailWithError:]
React Native version: 0.61.5
Steps To Reproduce
Unknown, although having a WebSocket would be a good start to reproduce.
Expected Results
The app should not crash.
Reacted by Etienne Martel and Clément
Metadata
Metadata
Assignees
Labels
Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Activity
xiao99xiao commentedon Mar 11, 2020
This issue exists for a long time. The reason is the
socketIDanderrorin RCTWebSocketModule.m could sometimes benil.We patched the file like below and it never bothered us again.
chrisglein commentedon Mar 11, 2020
Can you produce a minimal repo so we can narrow this down? (e.g. a Snack or pointer to a repo of a minimal repo)
You provided the version (thank you!), but can you run 'react-native info' to get the rest of the context?
Etienne-M commentedon Mar 31, 2020
Hello! Sorry, it took me a while to get you this info. There you:
As for steps to reproduce, I can't really help you with that, I'm sorry
stale commentedon Jul 3, 2020
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
stale commentedon Jul 11, 2020
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
luatnd commentedon Aug 19, 2020
This issue still occurs, some bugs in 3rd-party lib can lead to this issues, but it would be nice if react-native can show enough stack-trace to recognize which lib causing this issue
fix: crash when insert nil value into a dictionary (#30066)
fix: crash when insert nil value into a dictionary (#30066)
fix: crash when insert nil value into a dictionary (react#30066)