wordpress-mobile / gutenberg-mobile

Mobile version of Gutenberg - native iOS and Android
GNU General Public License v2.0
259 stars 58 forks source link

RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'n.forEach') This error is loca...: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'n.forEach') #5927

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

By July 3rd, 2023, this issue has impacted 23 users. Looks like it was recently introduced as it was first seen in version 22.5.0.3.

Sentry Issue: JETPACK-IOS-FBM

RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'n.forEach')

This error is located at:
    in Unknown
    in Unknown
    in WithViewportMatch(Component)
    in Unknown
    in WithNotices(Component)
    in v
...: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'n.forEach')

This error is located at:
    in Unknown
    in Unknown
    in WithViewportMatch(Compon..., stack:
gutenberg-mobile/gutenberg/packages/block-library/src/gallery/use-get-new-images.js:37:getNewImages
gutenberg-mobile/gutenberg/packages/block-library/src/gallery/use-get-new-images.js:19:useMemo$argument_0
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:3808:updateMemo
gutenberg-mobile/gutenberg/packages/block-library/src/gallery/use-get-new-images.js:19:useGetNewImages
gutenberg-mobile/gutenberg/packages/block-library/src/gallery/edit.js:176:GalleryEdit
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:3441:renderWithHooks
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4796:updateFunctionComponent
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6982:performUnitOfWork
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6975:workLoopSync
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6957:renderRootSync
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6656:performSyncWorkOnRoot
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2139:flushSyncCallbacks
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6346:scheduleUpdateOnFiber
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:3668:subscribe$argument_0
gutenberg-mobile/gutenberg/packages/data/src/components/use-select/index.js:68:onStoreChange
gutenberg-mobile/gutenberg/packages/data/src/components/use-select/index.js:75:onChange
gutenberg-mobile/gutenberg/packages/data/src/registry.js:247:currentSubscribe$argument_0
gutenberg-mobile/gutenberg/packages/data/src/redux-store/index.js:278:store.subscribe$argument_0
gutenberg-mobile/gutenberg/node_modules/redux/lib/redux.js:304:dispatch
gutenberg-mobile/gutenberg/packages/data/src/redux-store/thunk-middleware.js:7:<anonymous>
gutenberg-mobile/gutenberg/packages/redux-routine/src/index.js:24:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/promise-middleware.js:20:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/resolvers-cache-middleware.js:51:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/redux-store/index.js:151:Object.assign$argument_0
gutenberg-mobile/gutenberg/packages/block-editor/src/store/actions.js:1220:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:<anonymous>
gutenberg-mobile/gutenberg/packages/redux-routine/src/index.js:24:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/promise-middleware.js:20:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/resolvers-cache-middleware.js:51:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/redux-store/index.js:180:<anonymous>
gutenberg-mobile/gutenberg/packages/block-editor/src/components/block-mobile-toolbar/index.native.js:124:<anonymous>
gutenberg-mobile/gutenberg/packages/data/src/components/use-dispatch/use-dispatch-with-map.js:51:<anonymous>
gutenberg-mobile/gutenberg/packages/block-editor/src/components/block-mobile-toolbar/block-actions-menu.native.js:140:allOptions._delete.onSelect
gutenberg-mobile/gutenberg/packages/block-editor/src/components/block-mobile-toolbar/block-actions-menu.native.js:279:onPickerSelect
gutenberg-mobile/gutenberg/packages/components/src/mobile/picker/index.ios.js:64:ActionSheetIOS.showActionSheetWithOptions$argument_1
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:463:__invokeCallback
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:125:__guard$argument_0
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:__guard
gutenberg-mobile/gutenberg/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:124:invokeCallbackAndReturnFlushedQueue
  File "RCTAssert.m", line 147, in RCTFatal
  File "RCTExceptionsManager.mm", line 77, in -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:]
  File "RCTExceptionsManager.mm", line 147, in -[RCTExceptionsManager reportException:]
  File "RCTModuleMethod.mm", line 584, in -[RCTModuleMethod invokeWithBridge:module:arguments:]
  File "RCTNativeModule.mm", line 183, in facebook::react::invokeInner
...
(14 additional frame(s) were not displayed)
sentry-io[bot] commented 1 year ago

Sentry issue: JETPACK-IOS-FBM

fluiddot commented 1 year ago

For version 22.6.1.0, this crash is affecting 0.02% of users. Marking it as a Medium priority due to being a crash but with low impact.

fluiddot commented 1 year ago

Closing as this issue is already being tracked in https://github.com/wordpress-mobile/gutenberg-mobile/issues/5389.