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

CameraRollExample crashes and reboots iPhone 6 #779

Closed
jsierles opened this issue Apr 9, 2015 · 9 comments
Closed

CameraRollExample crashes and reboots iPhone 6 #779

jsierles opened this issue Apr 9, 2015 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jsierles
Copy link
Contributor

jsierles commented Apr 9, 2015

Testing this component on an iPhone 6, also with a trimmed down implementation, causes a crash and occasional reboot.

Here's what I can see in the Xcode error window: "Warning: ScrollView doesn't take rejection well - scrolls anyway"

Any better way to debug?

@jaygarcia
Copy link
Contributor

That's because ScrollView is a beast!

@jaygarcia
Copy link
Contributor

OK, seriously, does it crash in the UI explorer example or is this just your implementation that's crashing?

@jsierles
Copy link
Contributor Author

jsierles commented Apr 9, 2015

it crashes the UIExplorer on the device. On the simulator, I haven't tested with more than a handful of images. I'll do that now though.

@jsierles
Copy link
Contributor Author

jsierles commented Apr 9, 2015

So far, testing in the simulator with 10 images generates the same warnings, but no memory error or crash. The scrolling is pretty jerky: https://www.youtube.com/watch?v=YSMo1-2b1Qw

@polyvision
Copy link

Having the same problem with UI explorer and in my own app. Tested in on an iPhone 5S with iOS 8.3

2015-04-11 21:54:16.640 UIExplorer[1344:412065] >
RCTJSLog> "Warning: ScrollView doesn't take rejection well - scrolls anyway"
2015-04-11 21:54:22.541 UIExplorer[1344:412170] Connection to assetsd was interrupted or assetsd    died

@Iragne
Copy link
Contributor

Iragne commented Apr 13, 2015

Well as far as i tests this issue it's an memory problem.
It's cause by the way to load the image.

https://github.com/facebook/react-native/blob/master/Libraries/Image/RCTImageLoader.m#L48

UIImage *image =  [UIImage imageWithCGImage:[representation fullResolutionImage] scale:1.0f orientation:(UIImageOrientation)orientation];

I would like to propose an attribute to Image to suggest the loading of the asset Thumbail. but i'm not fan of that. I think the issue is more complex than that. I's an architecure one.

for thumb we need to use this method

UIImage *image = [UIImage imageWithCGImage:[asset thumbnail]];

Feel free to talk about it
@jaygarcia or @vjeux

@admmasters
Copy link
Contributor

This is also occurring for me... intermittently while scrolling in the simulator in my own app.

@Iragne
Copy link
Contributor

Iragne commented May 26, 2015

Hi all
i create the PR #1406
It's solve for me the issue if you have a better idea to solve it feel free

Thanks

@brentvatne
Copy link
Collaborator

Dup #902

@facebook facebook locked as resolved and limited conversation to collaborators May 31, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants