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

RCTFatalException: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes, s... #6229

Closed
sentry-io bot opened this issue Sep 25, 2023 · 2 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 25, 2023

Sentry Issue: JETPACK-IOS-1563

RCTFatalException: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes, stack:
o@1:1764817
t@1:1764431
anonymous@1:1764967
anonymous@1:1807714
anonymous@1:1807662
p@1:1807595
anonymous@1:1807648
p@1:1807595
anonymous@1:1807648
p@1:1807595
anonymous@1:1807648
p@1:1807595
anonymous@1:1807648
p@1:1807595
anonymous@1:1807847
anonymous@1:1762770
t@1:1762387
anonymous@1:3186977
value@1:2781304
c@1:359609
m@1:359666
v@1:359698
w@1:359830
Le@1:364069
$@1:361323
anonymous@1:364421
Ce@1:422085
Ne@1:363989
Me@1:364262
receiveEvent@1:416702
value@1:165707
anonymous@1:164207
value@1:165153
value@1:164165

  ?, in RCTFatal
  ?, in -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:]
  ?, in -[RCTExceptionsManager reportException:]
  ?, in -[RCTModuleMethod invokeWithBridge:module:arguments:]
  ?, in facebook::react::invokeInner
...
(13 additional frame(s) were not displayed)
@dcalhoun
Copy link
Member

dcalhoun commented Sep 25, 2023

This appears to relate to handling of pasted content in a rich text field. Presumably there are unexpected characters in the pasted content. Symbolicated stack trace:

RCTFatalException: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes: Unhandled JS Exception: TypeError: Cannot set property 'block' of undefined, js engine: hermes, stack:
/gutenberg/packages/blocks/src/api/raw-handling/special-comment-converter.js:110:createMore
/gutenberg/packages/blocks/src/api/raw-handling/special-comment-converter.js:67:moreCommentConverter
/gutenberg/packages/blocks/src/api/raw-handling/special-comment-converter.js:32:specialCommentConverter
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:138:filters.forEach$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:132:Array.from.forEach$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:130:Array.from.forEach$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:130:Array.from.forEach$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:130:Array.from.forEach$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:130:Array.from.forEach$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:129:deepFilterNodeList
/gutenberg/packages/blocks/src/api/raw-handling/utils.js:158:deepFilterHTML
/gutenberg/packages/blocks/src/api/raw-handling/paste-handler.js:248:pieces.map$argument_0
/gutenberg/packages/blocks/src/api/raw-handling/paste-handler.js:221:pasteHandler
/gutenberg/packages/block-editor/src/components/rich-text/index.native.js:465:onPaste
/gutenberg/packages/rich-text/src/component/index.native.js:590:RichText#onPaste
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:22:invokeGuardedCallbackImpl
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:40:invokeGuardedCallback
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:53:invokeGuardedCallbackAndCatchFirstError
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:73:executeDispatch
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1125:executeDispatchesAndReleaseTopLevel
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:361:forEachAccumulated
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1160:batchedUpdates$argument_0
/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:8457: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

@geriux
Copy link
Member

geriux commented May 14, 2024

Fixed in WordPress/gutenberg#60676

@geriux geriux closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants