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.

RN 0.50.4 Android crashes simply after reloading the app

See original GitHub issue

Hi! First of all want to say thank you for this good project, it makes react-native developer’s life much easier. If it will be necessary to provide more info, tell exactly what do you need, and I will try to provide it.

Current Behavior

  1. Starting emulator NEXUS_5X_API_26_x86
  2. Starting haul for android (haul-start --platform android)
  3. Starting react-native (react-native run-android)

Currently when I try to reload (cmd + m -> reload) the app is crashing every now and then. Then when I try to open my app from menu, it’s behavior is the same every now and then.

Expected Behavior

I expected my app not to crash after reloading.

Haul Configuration (webpack.haul.js)

const path = require('path')

module.exports = ({ platform }, defaults) => ({
  entry: './index.js',
  module: {
    ...defaults.module,
  },
  resolve: {
    ...defaults.resolve,
    modules: [path.resolve(__dirname, 'src'), 'node_modules'],
  },
})

Your Environment

| software - OSX | version - 10.13 High Sierra | Haul - ^1.0.0-beta.10 | react-native - 0.50.4 | node - 8.9.1 | npm - 5.5.1

P.S. I made a short video for you guys, hope someone can help me. Will appreciate much! http://www.giphy.com/gifs/3osBLzh4Yo4sNxVBWU

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Ble3kcommented, Nov 29, 2017

Yes, new emulator solved my issue.

1reaction
Ble3kcommented, Nov 29, 2017

Unfortunately I can’t run it on a real device. But I will try on different emu.

On iOS all works perfectly. Thank you for your help. I will write something about running on different device soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do my apps keep crashing on Android, How to fix it
To do this, go to Settings -> Apps and select the app that keeps crashing. Tap on the app's name and then tap...
Read more >
Fix an Android device that's restarting or crashing
Go to the next step. If the problem does not go away, skip to Advanced troubleshooting. Step 3: Restart your phone normally &...
Read more >
React Native app crashes without any error log - Stack Overflow
In case react native app crashes without an error message checking the problem in Android Studio's Logcat works perfect.
Read more >
How to Fix Crashing Apps on an iPhone or Android?
If you have an app that does not respond when you try to interact with it on your smartphone screen, the traditional fix...
Read more >
In iOS 15, when the app is restarted, it immediately crashes.
Sometimes the app appears in the list again after completely closing the app in the background state. —. Kim Ju Young. 9 months...
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