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

Attempted to assign to readonly property #6277

Closed
marcshilling opened this issue Mar 16, 2016 · 7 comments
Closed

Attempted to assign to readonly property #6277

marcshilling opened this issue Mar 16, 2016 · 7 comments

Comments

@marcshilling
Copy link

Getting a crash report from a React Native app that's crashing in react code. I can't really provide much detail other than the stack trace. All I know is it's our most frequent crash by far (73% of crashes are this one). Has anyone else run into this?

*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Attempted to assign to readonly property.', reason: 'Unhandled JS Exception: Attempted to assign to readonly property., stack:
m@17:659
recordTouchTrack@17:1373
extractEvents@16:30232
extractEvents@16:8354
handleTopLevel@17:4047
_receiveRootNodeIDEvent@17:3437
receiveTouches@17:3819
value@12:23605
<unknown>@12:21824
_@12:20918
value@12:21796
@jimfb
Copy link
Contributor

jimfb commented Mar 16, 2016

Sounds like this is intended for the react native repository at https://github.com/facebook/react-native, I'm going to close this out in favor of posting there.

@jimfb jimfb closed this as completed Mar 16, 2016
@marcshilling
Copy link
Author

I found the bug...it's in the react core code base...soooo I'm pretty sure I'm in the right place here.

@jimfb jimfb reopened this Mar 16, 2016
@jimfb
Copy link
Contributor

jimfb commented Mar 16, 2016

... can you elaborate? How do we reproduce this in the core?

@marcshilling
Copy link
Author

#6278

@jimfb I'm not sure how to reproduce this in core because I believe it's specific to how React Native uses it. I've referenced the React Native issue that discusses this crash.

@jimfb
Copy link
Contributor

jimfb commented Mar 16, 2016

Yeah, I agree. That's why I initially suggested posting in the react-native repository. Doing something like #6278 would just hide the problem, making it more difficult to debug/reproduce/witness. And even with the #6278 "fix", you would be loosing events, which is a bad user experience. I'm going to close this out in favor of facebook/react-native#5246, because I don't think there is anything actionable here. If the RN team bounces it back here, we can re-investigate.

@everfire130
Copy link

I see the same crash in my release app.RN0.23.0. iOS most in 9.3.1 . Has the issue been fixed in 0.24?

@marcshilling
Copy link
Author

@everfire130 it's fixed in 0.24. Scroll down to iOS bug fixes to see the detailed commits..."Fix how native events are coalesced when sending them to JS, specifically touch and scroll events, in order to respect their ordering"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants