gutenberg-mobile icon indicating copy to clipboard operation
gutenberg-mobile copied to clipboard

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...

Open sentry[bot] opened this issue 2 years ago • 1 comments

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)

sentry[bot] avatar Sep 25 '23 18:09 sentry[bot]

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

dcalhoun avatar Sep 25 '23 19:09 dcalhoun

Fixed in https://github.com/WordPress/gutenberg/pull/60676

geriux avatar May 14 '24 13:05 geriux