-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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) Images loading causes that app crashes #15956
Comments
|
resizeMerhod doesn't help, the same problem. |
We don't support older versions of RN (at least not 8 versions old). Please reproduce with a new version and open a new issue (using a template). |
@facebook-github-bot close |
@radko93 has closed this issue. If you think it should remain open, let us know why. See "What to Expect from Maintainers". |
@flynnch You are a god amongst men. Thank you, we were displaying shop logos in a ScrollView and getting crashes the further you scrolled down. Now I can quintuple the list length without a single performance hit, all with adding Dumb, but glad to have found the issue :) |
I'm using:
react-native: 0.39.0
npm: 4.0.2
node: 6.9.1
The problem is when I try to take a few pictures in a row, after fifth taken image the app crashes. I'm not getting any errors of warnings.
It crashes also if the camera is opened and if I wait for about 15-20 seconds with camera opened, without taking photo.
On newer, better phone (s8 galaxy) and newer android versions (7) it works as expected, but on this one it isn't working. Thus, I suppose that it has something to do with memory issues. But I'm not sure.
I've added largeMemoryHeap to the manifest file.
In android studio I get log file as follows:
Thus, no errors, nothing. But the app doesn't work.
The stuck of code where those photos are rendered is as follows:
And one card is as follows, and I have a stuck of 10:
I found here that I need to add
removeClippedSubviews={true}
toScrollView
, but it does not help.On IOS it works just fine.
It looks something like:
When they click on one of the cards the camera is opened and after they take the photo, the get something like:
Thus, on IOS and on Android phones with more memory (Samsung S8) it works as expected.
The text was updated successfully, but these errors were encountered: