Skip to content

CameraRoll.getPhotos crashes trying to get iCloud photos #18159

Closed
@facuescobar

Description

@facuescobar

Issue Description

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 7.9.0
Yarn: 0.23.2
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.3 => 0.53.3

Expected Behavior

CameraRoll.getPhotos should return local and iCloud images

Actual Behavior

CameraRoll.getPhotos crashes trying to get iCloud photos

Steps to Reproduce

This error happens to some users only.
Happens only with iCloud Photos

Use the expo app to load your icloud photos. The crash could happen with a random image.

Expo App:
https://exp.host/@facuescobar/camera-roll-photos-2018
Code:
https://github.com/facuescobar/camera-roll-photos
CameraRoll.getPhotos params:
https://github.com/facuescobar/camera-roll-photos/blob/master/src/reducers/camera-roll.js#L20
CameraRoll.getPhotos call:
https://github.com/facuescobar/camera-roll-photos/blob/master/src/actions/camera-roll.js#L20
https://github.com/facuescobar/camera-roll-photos/blob/master/src/actions/camera-roll.js#L46

Crash Report

screen shot 2018-03-01 at 12 35 13 pm

screen shot 2018-03-01 at 12 34 43 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions