-
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
[ListView & Image] Loading 100 big images into a ListView not only crashes the app, but also crashes the os #1360
Comments
it's cleary an issue with the size of the images. |
Can you reproduce that constantly? |
As soon as you load big image in a list you get this problem i will investigate more. |
You could use preprocessing like http://6px.io
|
yes if you want it will work. |
Totally agree. I have an application that will be loading several hundred.
|
+1 |
https://github.com/Iragne/UIImage-ResizeMagick ;) it's a good start !!! |
@tadeuzagallo Yes, I can reproduce it constantly |
I also have this problem. I implement this page http://www.tmall.com/wh/tmall/act/14242/jfbybk with react-native ListView component, when I run in IPad air(not Simulator), it crash when I scroll fast or scroll to the bottom. |
I think the general fix is view recycling, but we might need to do Image caching differently as well. |
@sahrens How about the tabView? |
I hava a demo which has 100 rows in listview and about 5 big image(1024x768) in single row.when i scroll,it crash.hope you can help us , thank you very much |
@nparsons08 Stop that. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/listview-image-loading-100-big-images-into-a-listview-not-only-crashes-the-app-but-also-crashes-the-os ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a pull request with a fix. |
I have a list of 100 image URLs and seeded them into the datasource of the ListView.
then I used this one for renderRow:
and it worked fine when I was scrolling the top 40~50 images, but when I scrolled to the end of the list, then the app crashed and I saw the white apple on the screen.
And there is no stacktrace in crash report.
The text was updated successfully, but these errors were encountered: