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

[Android] TypeError: Cannot read property 'props' of undefined #6189

Closed
SiobhyB opened this issue Sep 12, 2023 · 4 comments · Fixed by WordPress/gutenberg#56686
Closed

[Android] TypeError: Cannot read property 'props' of undefined #6189

SiobhyB opened this issue Sep 12, 2023 · 4 comments · Fixed by WordPress/gutenberg#56686

Comments

@SiobhyB
Copy link
Contributor

SiobhyB commented Sep 12, 2023

ℹ️ Description updated following this comment.

How to reproduce it

⚠️ Steps unknown yet.

Symbolicated stack trace

gutenberg/packages/format-library/src/text-color/index.native.js:39:getComputedStyleProperty
gutenberg/packages/format-library/src/text-color/index.native.js:61:fillComputedColors
gutenberg/packages/format-library/src/text-color/index.native.js:88:useMemo$argument_0
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4062:HooksDispatcherOnMount.useMemo
gutenberg/node_modules/react/cjs/react.production.min.js:25:exports.useMemo
gutenberg/packages/format-library/src/text-color/index.native.js:86:TextColorEdit
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:3525:renderWithHooks
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7743:beginWork$1
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7304:performUnitOfWork
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7297:workLoopSync
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7279:renderRootSync
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6975:performSyncWorkOnRoot
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2145:flushSyncCallbacks
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:8462:batchedUpdatesImpl
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1106:batchedUpdates
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1137:_receiveRootNodeIDEvent
gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1178:ReactNativePrivateInterface.RCTEventEmitter.register$argument_0.receiveEvent
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:427:__callFunction
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:__guard$argument_0
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:__guard
gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:callFunctionReturnFlushedQueue
Click here to show raw stack trace.
JavascriptException
TypeError: Cannot read property 'props' of undefined

This error is located at:
    in edit
    in Unknown
    in RCTView
    in Unknown
    in D
    in Unknown
    in WithPreferredColorScheme(Component)
    in Unknown
    in WithSelect(WithPreferredColorScheme(Component))
    in t
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in E
    in WithToolbarControls(E)
    in WithInspectorControl(WithToolbarControls(E))
    in WithToolbarControls(WithInspectorControl(WithToolbarControls(E)))
    in WithFilters(E)
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in LongPressGestureHandler
    in Unknown
    in B
    in RCTView
    in Unknown
    in Unknown
    in _
    in Unknown
    in IfCondition(Component)
    in WithDispatch(IfCondition(Component))
    in Unknown
    in Pure(WithSelect(WithDispatch(IfCondition(Component))))
    in RCTView
    in Unknown
    in I
    in b
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in Unknown
    in b
    in RCTView
    in Unknown
    in Unknown
    in Unknown
    in E
    in WithToolbarControls(E)
    in WithInspectorControl(WithToolbarControls(E))
    in WithToolbarControls(WithInspectorControl(WithToolbarControls(E)))
    in WithFilters(E)
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in LongPressGestureHandler
    in Unknown
    in B
    in RCTView
    in Unknown
    in Unknown
    in _
    in Unknown
    in IfCondition(Component)
    in WithDispatch(IfCondition(Component))
    in Unknown
    in Pure(WithSelect(WithDispatch(IfCondition(Component))))
    in RCTView
    in Unknown
    in I
    in b
    in RCTView
    in Unknown
    in s
    in Unknown
    in b
    in RCTView
    in Unknown
    in RCTScrollView
    in O
    in ScrollView
    in Unknown
    in H
    in E
    in AnimatedComponent(E)
    in Unknown
    in RCTView
    in Unknown
    in C
    in v
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in c
    in AnimatedComponent(c)
    in Unknown
    in Unknown
    in _
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in B
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in _
    in WithPreferredColorScheme(_)
    in Unknown
    in WithSelect(WithPreferredColorScheme(_))
    in RNCSafeAreaProvider
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in WithRegistryProvider(Component)
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in WithRegistryProvider(Component)
    in x
    in B
    in WithDispatch(B)
    in Unknown
    in WithSelect(WithDispatch(B))
    in c
    in RNGestureHandlerRootView
    in Unknown
    in B
    in WithDispatch(B)
    in Unknown
    in WithSelect(WithDispatch(B))
    in O
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in b, js engine: hermes, stack:
E@1:3834389
x@1:3834562
anonymous@1:3835640
useMemo@1:420152
anonymous@1:157097
edit@1:3834952
Or@1:382954
Ma@1:423531
zi@1:410203
Ri@1:410105
Pi@1:409989
ki@1:407489
xt@1:372614
Ce@1:423904
Ne@1:365757
Me@1:366030
receiveEvent@1:418470
value@1:168853
anonymous@1:167353
value@1:168299
value@1:167311
@SiobhyB
Copy link
Contributor Author

SiobhyB commented Sep 12, 2023

Noting that there's an iOS issue with a very similar error and stack trace, which may or may not be related: #6126

@SiobhyB
Copy link
Contributor Author

SiobhyB commented Sep 13, 2023

This crash has proven difficult to reproduce. As the number of users affected is relatively low, I'm going to un-assign myself and focus my efforts elsewhere.

@fluiddot
Copy link
Contributor

I re-checked the stack trace and noticed there's a difference based on the last events. For this reason, I'll update the issue's description.

Stack trace
JavascriptException
TypeError: Cannot read property 'props' of undefined

This error is located at:
    in edit
    in Unknown
    in RCTView
    in Unknown
    in D
    in Unknown
    in WithPreferredColorScheme(Component)
    in Unknown
    in WithSelect(WithPreferredColorScheme(Component))
    in t
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in E
    in WithToolbarControls(E)
    in WithInspectorControl(WithToolbarControls(E))
    in WithToolbarControls(WithInspectorControl(WithToolbarControls(E)))
    in WithFilters(E)
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in LongPressGestureHandler
    in Unknown
    in B
    in RCTView
    in Unknown
    in Unknown
    in _
    in Unknown
    in IfCondition(Component)
    in WithDispatch(IfCondition(Component))
    in Unknown
    in Pure(WithSelect(WithDispatch(IfCondition(Component))))
    in RCTView
    in Unknown
    in I
    in b
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in Unknown
    in b
    in RCTView
    in Unknown
    in Unknown
    in Unknown
    in E
    in WithToolbarControls(E)
    in WithInspectorControl(WithToolbarControls(E))
    in WithToolbarControls(WithInspectorControl(WithToolbarControls(E)))
    in WithFilters(E)
    in Unknown
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in LongPressGestureHandler
    in Unknown
    in B
    in RCTView
    in Unknown
    in Unknown
    in _
    in Unknown
    in IfCondition(Component)
    in WithDispatch(IfCondition(Component))
    in Unknown
    in Pure(WithSelect(WithDispatch(IfCondition(Component))))
    in RCTView
    in Unknown
    in I
    in b
    in RCTView
    in Unknown
    in s
    in Unknown
    in b
    in RCTView
    in Unknown
    in RCTScrollView
    in O
    in ScrollView
    in Unknown
    in H
    in E
    in AnimatedComponent(E)
    in Unknown
    in RCTView
    in Unknown
    in C
    in v
    in RCTView
    in Unknown
    in AnimatedComponent(View)
    in Unknown
    in c
    in AnimatedComponent(c)
    in Unknown
    in Unknown
    in _
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in B
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in Unknown
    in _
    in WithPreferredColorScheme(_)
    in Unknown
    in WithSelect(WithPreferredColorScheme(_))
    in RNCSafeAreaProvider
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in WithRegistryProvider(Component)
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in WithRegistryProvider(Component)
    in x
    in B
    in WithDispatch(B)
    in Unknown
    in WithSelect(WithDispatch(B))
    in c
    in RNGestureHandlerRootView
    in Unknown
    in B
    in WithDispatch(B)
    in Unknown
    in WithSelect(WithDispatch(B))
    in O
    in RCTView
    in Unknown
    in RCTView
    in Unknown
    in b, js engine: hermes, stack:
E@1:3834389
x@1:3834562
anonymous@1:3835640
useMemo@1:420152
anonymous@1:157097
edit@1:3834952
Or@1:382954
Ma@1:423531
zi@1:410203
Ri@1:410105
Pi@1:409989
ki@1:407489
xt@1:372614
Ce@1:423904
Ne@1:365757
Me@1:366030
receiveEvent@1:418470
value@1:168853
anonymous@1:167353
value@1:168299
value@1:167311

@fluiddot
Copy link
Contributor

Noting that there's an iOS issue with a very similar error and stack trace, which may or may not be related: #6126

I confirmed, after symbolicating the stack trace for recent Sentry events, that this issue is related to #6126.

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

Successfully merging a pull request may close this issue.

2 participants