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

Fix CameraRoll.getPhotos() crash on Android if device has a problematic video asset #21438

Closed
wants to merge 1 commit into from

Conversation

naxel
Copy link
Contributor

@naxel naxel commented Oct 1, 2018

Changed catching IOException to Exception
Fixes #20112

Test Plan:

This change will fix issue #20112.
Try download broken video (attached to issue #20112) and open on your Android device. In production build it will crash the app, on dev - you'll see the red screen with error "setDataSource failed: status - 0x80000000".

42447456-9a9771da-8382-11e8-9e97-bd85d6732e0e

Expected behavior: broken video just will be ignored.

Release Notes:

[ANDROID] [BUGFIX][ReactAndroid/src/main/java/com/facebook/react/modules/camera/CameraRollManager.java] - Changed catching IOException to Exception. Fixed error "setDataSource failed: status - 0x80000000"

Changed catching IOException to Exception
Fixed issue facebook#20112
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 1, 2018
@hramos hramos changed the title Fixed issue 20112 Fix CameraRoll.getPhotos() crash on Android if device has a problematic video asset Oct 1, 2018
@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Oct 1, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

@naxel merged commit 4768bea into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 1, 2018
grabbou pushed a commit that referenced this pull request Oct 11, 2018
…ic video asset (#21438)

Summary:
Changed catching IOException to Exception
Fixes #20112
Pull Request resolved: #21438

Differential Revision: D10132453

Pulled By: hramos

fbshipit-source-id: c68fa8c45d43e4f2d116b8084ffd731ad6bf5aec
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
bartolkaruza pushed a commit to bartolkaruza/react-native-cameraroll that referenced this pull request Feb 23, 2019
…ic video asset (#21438)

Summary:
Changed catching IOException to Exception
Fixes #20112
Pull Request resolved: facebook/react-native#21438

Differential Revision: D10132453

Pulled By: hramos

fbshipit-source-id: c68fa8c45d43e4f2d116b8084ffd731ad6bf5aec
bartolkaruza pushed a commit to bartolkaruza/react-native-cameraroll that referenced this pull request Feb 24, 2019
…ic video asset (#21438)

Summary:
Changed catching IOException to Exception
Fixes #20112
Pull Request resolved: facebook/react-native#21438

Differential Revision: D10132453

Pulled By: hramos

fbshipit-source-id: c68fa8c45d43e4f2d116b8084ffd731ad6bf5aec
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
…ic video asset (facebook#21438)

Summary:
Changed catching IOException to Exception
Fixes facebook#20112
Pull Request resolved: facebook#21438

Differential Revision: D10132453

Pulled By: hramos

fbshipit-source-id: c68fa8c45d43e4f2d116b8084ffd731ad6bf5aec
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: Android Android applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CameraRoll.getPhotos() crash on Android if device has a broken video
4 participants