react-native: Random crash on iOS - EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)
Description
Hi guys,
I’m facing random crashed on iOS and unfortunately I’m not able to reproduce manually I was able to get the stacktrace from crashlytics and only recently the crash appears during detox test.
I attach all the material that I have
Can anyone faced similar problem? Thank you
React Native Version
0.70.13
Output of npx react-native info
System:
OS: macOS 13.5.2
CPU: (10) arm64 Apple M1 Max
Memory: 77.66 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - /opt/homebrew/opt/node@18/bin/node
Yarn: Not Found
npm: 9.5.1 - /opt/homebrew/opt/node@18/bin/npm
Watchman: 2023.05.01.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 15.0/15A240d - /usr/bin/xcodebuild
Languages:
Java: 11.0.18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^18.1.0 => 18.1.0
react-native: ^0.70.13 => 0.70.13
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to reproduce
Unable to identify the steps
Snack, screenshot, or link to a repository
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23 (1 by maintainers)
@marcoizzo @lucaswitch I have this same error EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000020 Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x3d68 objc_release + 16 1 SafariServices 0x65d38 <redacted> + 40 2 UIKitCore 0x2ff978 <redacted> + 2176 3 UIKitCore 0x3447a8 <redacted> + 240 4 UIKitCore 0x2b2cb0 <redacted> + 140 5 UIKitCore 0x2b1d1c <redacted> + 128 6 UIKitCore 0x2b2ea0 <redacted> + 180 7 UIKitCore 0x2b2aa0 <redacted> + 832 8 UIKitCore 0x1060598 UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK + 36 9 UIKitCore 0xce148 <redacted> + 636 10 UIKitCore 0xcd0a4 <redacted> + 436 11 UIKitCore 0xcc7c0 <redacted> + 196 12 UIKitCore 0xcc8d4 <redacted> + 472 13 QuartzCore 0x13474 <redacted> + 232 14 libdispatch.dylib 0x3eac <redacted> + 20 15 libdispatch.dylib 0x126a4 <redacted> + 928 16 libdispatch.dylib 0x122f4 _dispatch_main_queue_callback_4CF + 44 17 CoreFoundation 0x98bb8 <redacted> + 16 18 CoreFoundation 0x7a4f0 <redacted> + 1992 19 CoreFoundation 0x7f37c CFRunLoopRunSpecific + 612 20 GraphicsServices 0x135c GSEventRunModal + 164 21 UIKitCore 0x39cf58 <redacted> + 888 22 UIKitCore 0x39cbbc UIApplicationMain + 340 23 Engage Company 0x8a78 main + 8 (main.m:8) 24 ??? 0x1b31e8dec (Missing)
What does this mean UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK @cortinico
I jumped from RN 0.71 to RN0.73.2 (upgrade also many other libraries) and now the problem seems not anymore present. ¯_(ツ)_/¯
@marcoizzo having same stack trace as yours and same behaviour. I’ll try to disable hermes for a while and see if the crashes dissapears.
I’m unsure how we can help you here without a proper reproducer sadly