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.

React native 0.59.x crashes on Android without any error message

See original GitHub issue

šŸ› Bug Report

RN 0.59 isn’t stable on Android. if you spend 20 seconds wandering around in your app, it will crash and stop working with no error message whatsoever. I have to add I didn’t face this issue on Expo SDK 32 or RN v0.58.6.

To Reproduce

react-native init react-native run-android and use the Code Example as your App class. now just type a few words in TextInput and then remove some letters and again type something…; it takes less than 5 seconds to crash without any error message.

Expected Behavior

just to work in a stable manner.

Code Example

export default class App extends Component {
  state = { text: "" };

  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>Welcome to React Native!</Text>
        <Text style={styles.instructions}>To get started, edit App.js</Text>
        <Text style={styles.instructions}>{instructions}</Text>
        <TextInput
          onChangeText={text => {
            this.setState({ text });
          }}
          value={this.state.text}
          placeholder="please don't crash!"
        />
      </View>
    );
  }
}

Environment

React Native Environment Info: System: OS: Windows 10 CPU: (8) x64 IntelĀ® Coreā„¢ i7-4702MQ CPU @ 2.20GHz Memory: 913.58 MB / 5.76 GB Binaries: npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

Android 7.0 (real device: Samsung S7) React Native v0.59.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:26
  • Comments:95 (6 by maintainers)

github_iconTop GitHub Comments

167reactions
cpojercommented, Apr 4, 2019

Please note this issue tracker is not a help forum (as stated in issue template).

We recommend using StackOverflow where there are community incentives to help others or our Discord channel for questions. We can reopen this once there is a concrete bug report and this is a real issue, or even better: please send us a PR with a fix!

33reactions
mmahdighcommented, Apr 13, 2019

It seems all they care is closing issues and keeping them below 400 even though lots of them are still relevant. @Fouppy

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native 0.59.9 app crashing in android - Stack Overflow
The app crashes when I signed in and in the main application but no problems when I am in the login screen with...
Read more >
App Center Crashes for React Native - Microsoft Learn
App Center Crashes will automatically generate a crash log every time your app crashes. The log is first written to the device's storage...
Read more >
React Native Android App Crashes On Facebook Login/Cancel
These are some common issues you may run into while setting up React Native. If you encounter an error such as npm WARN...
Read more >
Troubleshooting - React Native
If you run into issue where executing npm run android on macOS throws the above error, try to run sudo chmod +x android/gradlew...
Read more >
After upgrading from 0.57.8 to 0.59.10 android crashes when ...
[Solved]-After upgrading from 0.57.8 to 0.59.10 android crashes when invoking Alert.alert(...) with 'No virtual method isStateSaved()...'-React Native.
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