red5pro / react-native-red5pro

React Native Red5 Pro Publisher/Subscriber
https://www.red5pro.com/
Other
34 stars 20 forks source link

Crash on App Launch 0.62.2 in Debug Mode #51

Open andrew-schenk opened 4 years ago

andrew-schenk commented 4 years ago

Following the setup instructions listed here.

React Native: 0.62.2 Target: iOS Debug: true

npx react-native init Red5ProDemo

Clean new 62.2 react native app is unrunnable once the install steps are followed for this SDK.

The app installs onto the physical iPhone and then promptly crashes as shown below.

libc++abi.dylib: terminating with uncaught exception of type folly::AsyncSocketException: AsyncSocketException: recv() failed (peer=[::1]:8089, local=[::1]:63792), type = Internal error, errno = 54 (Connection reset by peer)

When building in Release mode, it does not crash. I'm guessing it has to do with React Native 62's inclusion of Flipper, the new debugging tool.

Backtracking to React Native 0.61.5 installs Red5Pro correctly and it does not crash in debugging on app launch.

chungweileong94 commented 4 years ago

Yeah, faced the same. Something to do with the Flipper, it works if I disable Flipper manually, this definitely needs a fix😕

chungweileong94 commented 4 years ago

Another workaround is to have Flipper open beforehand.