Skip to content
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

[Android-RN 0.59.8] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xee0f0434 in tid 16493 (mqt_js) #25060

Closed
ducNgbk opened this issue May 28, 2019 · 8 comments
Labels
Bug Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@ducNgbk
Copy link

ducNgbk commented May 28, 2019

Hi I want to build my project on RN 0.59.8. MY app use react-native-webgl
Building process is fine, but app crashes right after it starts.

A: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xee0f0434 in tid 16493 (mqt_js), pid 16138 (com.testthree)

However, everything works fine on RN 0.57.8

React Native version:

System:
      OS: macOS 10.14.4
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 408.59 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
Binaries:
      Node: 12.1.0 - /usr/local/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 24, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.0, 26.0.1, 27.0.3, 28.0.2, 28.0.3
        System Images: android-28 | Google APIs Intel x86 Atom
IDEs:
      Android Studio: 3.1 AI-173.4720617
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.8 => 0.59.8
    npmGlobalPackages:
      create-react-native-app: 2.0.2
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7
      react-native-rename: 2.2.1

Steps To Reproduce

  1. Init new RN prj with RN 0.59.8
  2. Add react-native-web-gl module
  3. Download NDK 18
  4. Build and run project with react-native run-android

Describe what you expected to happen:

Snack, code example, or link to a repository:

@ducNgbk ducNgbk added the Bug label May 28, 2019
@ducNgbk ducNgbk changed the title [Android] RN 0.59.8 Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xee0f0434 in tid 16493 (mqt_js) [Android-RN 0.59.8] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xee0f0434 in tid 16493 (mqt_js) May 28, 2019
@react-native-bot react-native-bot added the Platform: Android Android applications. label May 28, 2019
@mstiggle
Copy link

Check out #24261. There are alternate jsc builds that have been posted that you can switch to which has solved it for us and others.

@RomanovYurii
Copy link

Magical part of code saved my life. add this to app/build.gradle:
ndk { abiFilters "armeabi-v7a", "x86" }

@j-wang
Copy link

j-wang commented Jun 2, 2019

Cutting out the 64 bit builds with ndk filters (which is what that code does) only fixes it for certain phones unfortunately. For our app, we though it fixed it but found other phones crashing without a full JSC switchout to get rid of the JIT.

@dishantwalia
Copy link

@RomanovYurii When we removed 64 bit ndk filters "arm64-v8a", "x86_64" from ndk abiFilters in defaultConfig block of build.gradle by provide only 32 bit support. The crash has gone but as per Google 64 bit support mandate this needs to be fixed with 64 bit ndk support .

@verticelo
Copy link

@ducNgbk could you please test with 59.10 since it contains an updated jsc, and if it works then close this ticket?

@nik910
Copy link

nik910 commented Jul 22, 2019

Check your native-lib.cpp, the syntax has changed.

@stale
Copy link

stale bot commented Dec 19, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 19, 2019
@stale
Copy link

stale bot commented Dec 26, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Dec 26, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Dec 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

8 participants