-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash in bridge code with some native module. #23564
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.58 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running |
Can you provide a minimal reproduction? I don’t see this issue reaching a resolution without one. As it happens, debugging individual crashes in any given project falls out of scope for this issue tracker. |
@hramos I can provide you my repo privately.
This is the best I can do right now.
Please give me instructions on how to do that.
…----- Mail original -----
De: "Héctor Ramos" <[email protected]>
À: "facebook/react-native" <[email protected]>
Cc: "Olivier MATROT" <[email protected]>, "Author" <[email protected]>
Envoyé: Mercredi 20 Février 2019 23:01:36
Objet: Re: [facebook/react-native] RN 0.57.4 | iOS : crash in bridge code with some native module. (#23564)
Can you provide a minimal reproduction? I don’t see this issue reaching a resolution without one. As it happens, debugging individual crashes in any given project falls out of scope for this issue tracker.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub , or mute the thread .
|
Does it crash every time in Release mode? Does your code ever invalidate the bridge explicitly? Remove any business logic so you can share the repo. |
Yes
No
I’ll do that. Stay tuned.
|
Here is the repo for you to check the issue. |
recently upgraded the repo to 0.59.0. MacBook-Air-de-Olivier:application omatrot$ react-native info |
Hi @omatrot thanks for the issue report. I've downloaded your reproduction zip and I'm not finding it easy to pinpoint the issue from there. There is a large set of dependencies and library code in the project. To find the issue, I suggest you start stripping the project of dependencies and code piece by piece, until the issue stops. The last piece you removed is the one causing the issue. When you find it, you can post an issue on the repository of that library where the maintainers will be able to help you. If the issue turns out to actually be related to RN core, feel free to post the minimal repro showing this and I'll gladly reopen the issue. |
@omatrot did you fix it? I have the same issue. only crash in Release Mode. |
I'm having the same issue also. Xcode 10.3. Swift 4.2.
|
Is solved this problem (and many others) by manually installing native modules and not relying on CocoaPods anymore. |
🐛 Bug Report
Crash in bridge code in Release build only. Works in Debug
com.facebook.react.JavaScript (8) /!\ This thread has caused the crash
To Reproduce
I'm using several native modules so, deciding which one is faulty is complicated for me.
I'm using Cocoapods, following is my pod file:
An the result of the install:
Expected Behavior
No crash at all.
Code Example
Environment
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 42.34 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.2 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.8.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 14, 23, 24, 25, 26, 27, 28
Build Tools: 23.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.2, 27.0.3, 28.0.0, 28.0.2, 28.0.3
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.3 => 16.8.4
react-native: ^0.59.0 => 0.59.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native-rename: 2.2.2
react-native: 0.59.0
The text was updated successfully, but these errors were encountered: