Skip to content
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

[0.48.3][Android] render big size image lead to crash #17142

Closed
jzhangdev opened this issue Dec 11, 2017 · 6 comments
Closed

[0.48.3][Android] render big size image lead to crash #17142

jzhangdev opened this issue Dec 11, 2017 · 6 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@jzhangdev
Copy link

Is this a bug report?

yes

Environment

Packages:
react-native: 0.48.3
react: 16.0.0-alpha.12

Target Platform: Android (7.0.0)

Steps to Reproduce

user Image component to render a big size image , just like 6000px * 6000px

Actual Behavior

app crash

@1c7
Copy link

1c7 commented Jan 31, 2018

I have same problem

why no one comment this issue?

using React Native 0.52

and I am trying to display multiple image instead of 1 image.

What my app do

when user click 'Select File'.
My App would use react-native-image-crop-picker to allow user chose multiple image.
then use FlatList to render them. one Image a row.
then user can click "upload" at each row to upload image to server.

Problem

once user select too many image (>20 or so)
it would take about 400mb memory, and then, sometime it just crash.

@1c7
Copy link

1c7 commented Jan 31, 2018

image

@1c7
Copy link

1c7 commented Jan 31, 2018

<Image
    style={{ height: 77, width: 77, borderRadius: 6 }}
    source={{ isStatic: true, uri: image_path }}
    resizeMode='contain'
/>

@1c7
Copy link

1c7 commented Jan 31, 2018

image

image

image

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. labels Feb 24, 2018
@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 24, 2018
@rendomnet
Copy link

rendomnet commented Aug 25, 2018

Same problem here. here is my stackoverflow question. https://stackoverflow.com/questions/52014523/react-native-signed-apk-crash-when-image-with-some-sources-works-fine-in-dev?noredirect=1#comment90983216_52014523

@facebook facebook locked as resolved and limited conversation to collaborators Feb 24, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants