react-native icon indicating copy to clipboard operation
react-native copied to clipboard

RCTCxxBridge.mm line 1528 Thread 5: EXC_BAD_ACCESS (code=1, address=0x0)

Open Mr-Persona opened this issue 2 years ago • 6 comments

Description

There's been a weird crash on the iOS app. Now we haven't a clue. An error occurred in this line of code: _jsMessageThread->runonQueue(onComplete);

React Native Version

0.68.2

Output of npx react-native info

System: OS: macOS 13.1 CPU: (8) x64 Apple M1 Pro Memory: 16.71 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 19.0.1 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.19.2 - /usr/local/bin/npm Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Random crash

Snack, code example, screenshot, or link to a repository

https://note.youdao.com/yws/api/personal/file/WEBce570f7f409763aed46202541a16fca3?method=download&shareKey=3a9c43f5eb48d0ed93ac80de53c8ce37

Mr-Persona avatar Feb 27 '23 02:02 Mr-Persona

:warning: Unsupported Version of React Native
:information_source: It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

github-actions[bot] avatar Feb 27 '23 02:02 github-actions[bot]

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

Mr-Persona avatar Feb 27 '23 02:02 Mr-Persona

Please provide at least the full stacktrace

cortinico avatar Feb 27 '23 11:02 cortinico

Please provide at least the full stacktrace

I got some information from Xcode, and information about the crash is limited. Xcode -> Organizer -> Crashes

1 (1) 2 (1) 3 (1)

Mr-Persona avatar Feb 28 '23 02:02 Mr-Persona

@Mr-Persona @cortinico I am Also getting same crashes for RN 0.71.0. Do you have any solution for that?

maheshannu avatar Mar 02 '23 15:03 maheshannu

@Mr-Persona @cortinico I am Also getting same crashes for RN 0.71.0. Do you have any solution for that?

This is a bizarre question. I don't have a solution right now.

Mr-Persona avatar Mar 07 '23 06:03 Mr-Persona

@Mr-Persona Did you manage to fix this somehow?

Praveer-grover avatar Apr 07 '23 06:04 Praveer-grover

@cortinico Hi Im having a similar issue

react native 0.68 OS version: iOS 15.6.1 Model: iPhone XS Max

It was caught via crashalytics and have not seen it myself

Fatal Exception: RCTFatalException: non-std C++ exception
0  CoreFoundation                 0x99288 __exceptionPreprocess
1  libobjc.A.dylib                0x16744 objc_exception_throw
2  mobile                         0x185558 RCTFormatError + 166 (RCTAssert.m:166)
3  mobile                         0x19a6f8 -[RCTCxxBridge handleError:] + 1222 (RCTCxxBridge.mm:1222)
4  mobile                         0x198f94 __34-[RCTCxxBridge _initializeBridge:]_block_invoke + 730 (RCTCxxBridge.mm:730)
5  mobile                         0x1aba20 facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 73 (RCTMessageThread.mm:73)
6  mobile                         0x1ab7b4 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 46 (RCTMessageThread.mm:46)
7  CoreFoundation                 0x725a4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
8  CoreFoundation                 0x73500 __CFRunLoopDoBlocks
9  CoreFoundation                 0xb048 __CFRunLoopRun
10 CoreFoundation                 0x1ebc8 CFRunLoopRunSpecific
11 mobile                         0x196918 +[RCTCxxBridge runRunLoop] + 378 (RCTCxxBridge.mm:378)
12 Foundation                     0x6941c __NSThread__start__
13 libsystem_pthread.dylib        0x19ac _pthread_start
14 libsystem_pthread.dylib        0xe68 thread_start

jcgertig avatar Aug 05 '23 04:08 jcgertig

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

Mr-Persona avatar Aug 05 '23 04:08 Mr-Persona

I got the same issue.

In my case, this issue occurred after the rn 0.71 update.

WayneKim92 avatar Sep 06 '23 03:09 WayneKim92

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

Mr-Persona avatar Sep 06 '23 03:09 Mr-Persona

Hi, In this issue tracker we accept only issues that are in English. I'm closing this for now, please consider translating your comments to English and we can keep on following up. Thanks.

cortinico avatar Sep 13 '23 17:09 cortinico

@cortinico can you re open this issue. I am seeing the same crash on RN 0.71.11

jesse-one-app avatar Nov 18 '23 16:11 jesse-one-app

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

Mr-Persona avatar Nov 18 '23 16:11 Mr-Persona

can you re open this issue. I am seeing the same crash on RN 0.72.5

l941230 avatar Jul 29 '24 05:07 l941230

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

Mr-Persona avatar Jul 29 '24 05:07 Mr-Persona