-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
App crashes with abort message "availableHeight is indefinite so heightMeasureMode must be YGMeasureModeUndefined" when user resumes app from background. #19719
Comments
Looks like your report is for an old version (0.55.1). Your repro steps are not specific enough and require a lot of effort for a contributor. In general, you want to file an issue that is complete and ready to be picked up by someone who is interested in providing a fix (see https://stackoverflow.com/help/mcve). Closing as debugging individual crashes is out of scope for this issue tracker unless a minimum repro is provided. |
@hramos Seems the react native contributors are quick to close issues. You can't say 0.55 is old when 0.56 has just been released (Documentation has not even been updated to 0.56). This issue has been recurring in react native as #9550 and #16727 all for which have been shelved aside like this. It gives an impression that contributors don't want to look through the code or don't have a fix for the issue The Abort message raised during the crash lies in react-native/ReactCommon/yoga/yoga/Yoga.cpp lines |
The latest stable version is 0.55.4, and is already two months old. We encourage everyone to use the release candidate versions whenever possible, especially when filing bug reports. With over 600 issues currently open, we have to prioritize, so you're right, I don't want to look at an issue that has not been tested in the release that I'm curating at this moment. |
@hramos So what if I'm able to reproduce the issue on 0.55.4. Would you be willing to look at it |
Your issue would not be auto-closed if it's reported against 0.55.4, but like I said above, the train is moving fast and we're focusing on getting the 0.56.0 release candidate ready for release. Issues that can be reproduced on |
Its happening with 0.56.0 |
Reopen the issue, please. It's happening with 0.56 |
This comment has been minimized.
This comment has been minimized.
Happening in 0.55.4. |
This comment has been minimized.
This comment has been minimized.
Quick fix:- Please add below method in your MainActivity.java
|
@pramodsharma403
Anyone can fix react native by pull request? |
I am still getting this issue:
I added |
Quick update: This was an obscure issue with another library I am using (https://github.com/APSL/react-native-keyboard-aware-scroll-view). My report here can be disregarded. |
@Sam-DevZ I'm on 0.57.1 and am still running into this issue. We also use React-Native-Navigation and 'react-native-keyboard-aware-scroll-view'. What was your solution? |
This is still present on 0.57.8 If I don't render a ScrollView it doesn't happen |
Occurring in 0.59.1. I am using |
Hey all, sorry to hear so many are experiencing this Unfortunately we can't debug an issue from a single crash report and a number of +1s If anyone can provide a way for us to reproduce this issue so that we can determine if this is a core issue or and issue with a third-party lib then I am happy to re-open and investigate |
This issue happens when you are specifying values for margin and padding in %. Remove the % values from your stylesheet and use flex or DP values and this issue should resolve. |
I had this issue when I've rendered multiple views inside an horizontal ScrollView with the views having width and padding values as percentages, . Something like this - <ScrollView horizontal={true}>
<View style={{ width: '20%', paddingLeft: '5%', paddingRight: '5%'}}>
<View>
.....
</View>
</View>
<View style={{ width: '20%', paddingLeft: '5%', paddingRight: '5%'}}>
<View>
.....
</View>
</View>
</ScrollView> Changing the styles of the views to absolute values, like @Pratham104 suggested, resolved this issue. RN 0.60.5 |
any update on this? |
Environment
OS: Windows 10
Node: 8.9.4
Yarn: 1.5.1
npm: 5.6.0
Watchman: Not Found
XCode: N/A
Android Studio: Version 2.3.0 AI-162.4069837
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.1 => 0.55.1
Description
The app crashes when the user attempts to resume an app from the background on android
Crash log : https://gist.github.com/herlarb/7a8820dbfc56d3dffd35ba235b8e888a
Steps to Reproduce
Expected Behavior
App should not crash when the user attempts to resume app from background
Actual Behavior
The app crashes unexpectedly when the user resumes the app from the background
The text was updated successfully, but these errors were encountered: