-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Android][New Arch][Dev Mode] App crashes with error in RN core, if a property name is long (but less than kPropNameLengthHardCap
)
#39019
Comments
|
|
One step further, I've added debug logging prior to the following line, where my example crashes: react-native/packages/react-native/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp Line 88 in 540c41b
and the values I got when the assertion trips:
Without yet fully understanding what that code does, seeing And in the release mode, it is not a crash, because the assertion is not executed there, and the binary search below, presumably, still able to find the necessary element even with this mistake. |
And here are all bucket values prior to the crash:
|
And here are all bucket names:
|
So... in react-native-webview there are a few props on this component larger than |
Or... is there a hard limit of max 256 props on a component? Then the problem is that RN does not test it somewhere before, and does not interrupt the build with a clear error message. |
Yep, fixed by the above commit. Feel free to make a pick request. |
@NickGerleman where do I ask for the pick? |
|
Description
Hi folks 👋 Can you have a quick look at this issue I've opened in react-native-webview repo (especially my second message there)? I was troubleshooting it crashing my app if I enable the new arch and run it in dev (and only in dev mode — no crash in the release one); and I seemingly traced it down to an assertion tripped inside RN core's
RawPropsKeyMap.cpp
, if I use a property which name is 38 symbols long... and I have no issue if I just shorten the property name down to 10 symbols... and from a brief look at the RN code, it seems the current prop name limit is supposed to be 64 symbols. Soo... my current impression, it is either I found a bug in RN core, or RN does not gracefully report a component violating some internal limit.React Native Version
0.72.4
Output of
npx react-native info
N/A
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A
The text was updated successfully, but these errors were encountered: