question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Xcode 11] [iOS 13] EXC_BAD_ACCESS in fishhook.c

See original GitHub issue

Bug

When running my app on an iPhone XR (iOS 13), the app immediately crashes with EXC_BAD_ACCESS.

Screen Shot 2019-06-06 at 5 04 19 PM

I can only reproduce this when running on a physical iPhone. iPad and simulator both work fine.

Environment info

React native info output:

 info
  React Native Environment Info:
    System:
      OS: macOS 10.15
      CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
      Memory: 1.78 GB / 16.00 GB
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v8.16.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 11.0/11M336w - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.6 => 16.8.6
      react-native: ^0.59.9 => 0.59.9

Library version: 0.59.9

Steps To Reproduce

Make a new React Native project with react-native init and run on device.

Describe what you expected to happen:

  1. App to not crash immediately

Reproducible sample code

Here That’s a link to a repo I just made for a test project.

EDIT: Fixed the link to the repo

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:19

github_iconTop GitHub Comments

33reactions
xericcommented, Nov 4, 2019

For you guys who are still working on 0.59.10 and hard to apply 46bdb41 patch in to your local. Go to ‘node_modules/react-native/Libraries/fishhook/fishhook.c’ and delete whole method ‘perform_rebinding_with_section’ content, keep the method definition. Save -> Done.

2reactions
GleidsonDanielcommented, Jan 9, 2020

The curious thing is that this error only happens on iphones 11, on inferior devices like X, the error does not happen …

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Crash in iOS 15 - EXC_BAD_ACCESS (SIGBUS) Exception
Hi We have an app using React Native 0.55.2 and is working fine in Xcode 12.5 and able to launch in iOS 14....
Read more >
react-native run-ios command not running successfully after ...
I had a similar problem. Though I had react-native version 59.10. Solution was to use patch-package to alter react-native fishhook.c file:
Read more >
iOS13 crashes instantly for some (EXC_BAD_ACCESS ...
A change in iOS 13 beta's Obj-C runtime crashes all apps that use ... was similar was : [Xcode 11] [iOS 13] EXC_BAD_ACCESS...
Read more >
EXC_BAD_ACCESS crash error: Understanding and solving it
EXC_BAD_ACCESS crashes are annoying but solvable using the right tools. Learn how to use the Xcode sanitizers to fix those crashes in Swift....
Read more >
解决XCode iOS13 indirect_symbol_bindings[i] = cur ...
2. 覆盖掉项目中的旧文件(崩溃的时候会自动定位到该旧文件的位置),直接覆盖替换。然后重新运行即可。 注意要覆盖两个文件。 一般报错是在fishhook.c , ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found