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

iPhone hangs on processing assets when uploading vidoes #642

Closed
L-Yeiser opened this issue Mar 9, 2018 · 9 comments
Closed

iPhone hangs on processing assets when uploading vidoes #642

L-Yeiser opened this issue Mar 9, 2018 · 9 comments

Comments

@L-Yeiser
Copy link

L-Yeiser commented Mar 9, 2018

Version

Tell us which versions you are using:

  • react-native-image-crop-picker ^0.20.0
  • react-native 0.53.0

Platform

Tell us to which platform this issue is related

  • iOS
  • Android

Expected behaviour

Actual behaviour

Uploading a video on an iphoneX hangs on processing assets. Works on the IOS simulator and on android devices.

Steps to reproduce

  1. Open image picker.

  2. Select a video from the camera roll.

  3. Process hangs.

No errors are logged.

code:

 selectImage() {
    ImagePicker.openPicker({
      multiple: true,
      mediaType: 'any',
    }).then((media: ImagePickerUpload[]) => {
      console.log(media);
      this.setState({
        ...this.state,
        media,
      });
    });
  }
@L-Yeiser
Copy link
Author

L-Yeiser commented Mar 9, 2018

As a follow up. I do not have this issue with an iphone 6 nor an iphone 7. Still have not tested it with an iphone 8.

@ivpusic
Copy link
Owner

ivpusic commented Mar 11, 2018

do you have some time to investigate what is happening here?

@L-Yeiser
Copy link
Author

I am under a pretty strict deadline at the moment and am pretty new to react-native so do not have the time or resources to really dig in. If I find time this weeks I will see what I can come up with.

@L-Yeiser
Copy link
Author

Our team has sunk a bit of time into this and come up empty handed. Other then knowing it is an IOS 11+ issue. We thought it had to do with an invalid response for blob type error but that was fixed with RN 0.55 but that is not the case. For now we are using react-native-image-picker when a user is running IOS 11 + but it would be awesome to get this library working with newer IOS.

@L-Yeiser
Copy link
Author

This issue was resolved when we upgraded to
react-native 0.55.0
react-native--image-crop-picker 0.20.3

@chrisbobbe
Copy link
Contributor

chrisbobbe commented Jul 18, 2018

I'm seeing the same problem; I'm using

react-native 0.55.4
react-native-image-crop-picker 0.20.3

with an iPhone 6s on iOS 11.4.1

Can this issue be reopened @L-Yeiser ?

@chrisbobbe
Copy link
Contributor

chrisbobbe commented Jul 19, 2018

I just made a pull request to solve this problem -- we need to set options.networkAccessAllowed to YES when getting videos, or it will freeze when trying to get videos that are stored in the cloud.

#772

@liuyunzyj
Copy link

Has anyone come across this problem?
image
image

@Bashamd455
Copy link

Hi @chrisbobbe, Even I am facing the same issue i.e., iPhoneX taking forever to process a video when selecting from the camera roll.
versions I am using in the application:
react-native-image-crop-picker ^0.21.1
react-native 0.56.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants