Exception thrown while executing UI block

Hello,
When starting the application in a new environment I get an exception that I am not sure how to debug. Any suggestions where to start?
I tried with two different versions of Expo (4.5.2 and 4.3.5).

Exception thrown while executing UI block: -[__NSCFNumber enumerateObjectsUsingBlock:]: unrecognized selector sent to instance 0xa62fde2e8af9249a

__53-[ABI40_0_0RCTUIManager flushUIBlocksWithCompletion:]_block_invoke
ABI40_0_0RCTUIManager.m:1192
__53-[ABI40_0_0RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.422
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start
0x0

expo diagnostics:
Expo CLI 4.3.5 environment info:
System:
OS: macOS 11.4
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
Yarn: 1.22.10 - ~/.nvm/versions/node/v14.17.0/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
Watchman: 2021.05.31.00 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
IDEs:
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
npmPackages:
expo: ^40.0.1 => 40.0.1
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
npmGlobalPackages:
expo-cli: 4.3.5
Expo Workflow: managed

Hey @pdejuan, without seeing the relevant code we can’t really help here. Please share either a clonable repo, snack or code snippet.

Cheers,
Adam

Hello, I tried in another project and couldn’t reproduce it. At the end I removed node_modules and reinstall. Now it works but I don’t know why. I would suggest to close it for now.