solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
521 stars 253 forks source link

Stuck on pod install forever #143

Open hongfeiyang opened 3 years ago

hongfeiyang commented 3 years ago

I was trying to use this package but it stuck at 'pod install' forever. I even tried to use this as a git repository and it still stuck at pod install forever.

dev_dependencies:
  shelf: ^0.7.9
  shelf_proxy: ^0.1.0+7
  flutter_vlc_player:
    git:
      url: https://github.com/solid-software/flutter_vlc_player.git
  flutter_test:
    sdk: flutter

I am using Xcode 11.3, macOS 10.14.6, Simulator iOS 13.3. pod version is 1.10.0

If I remove this package in dev_dependencies the rest of packages install without any problem.

mitchross commented 3 years ago

run 'pod repo update'

hongfeiyang commented 3 years ago

Nope it does not solve the problem

image

This time I running Catalina 10.15.6 and pod 1.10.0

oberbeck commented 3 years ago

Same for me. When I run pod update --verbose the download of https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz seems to take forever and crashes at some point.


log:

[...]
Downloading dependencies

-> Installing Flutter (1.0.0)

-> Installing MobileVLCKit (3.3.15)
 > Http download
   $ /usr/bin/curl -f -L -o /var/folders/39/brn0zmvj7zbdr8trbgmplsgw0000gn/T/d20201212-79869-97dtox/file.txz https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz --create-dirs --netrc-optional --retry 2 -A
   'CocoaPods/1.10.0 cocoapods-downloader/1.4.0'
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
     4  285M    4 13.5M    0     0  17417      0  4:46:46  0:13:32  4:33:14 15268
   curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

[!] Error installing MobileVLCKit
[!] /usr/bin/curl -f -L -o /var/folders/39/brn0zmvj7zbdr8trbgmplsgw0000gn/T/d20201212-79869-97dtox/file.txz https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.10.0 cocoapods-downloader/1.4.0'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  4  285M    4 13.5M    0     0  17417      0  4:46:46  0:13:32  4:33:14 15268
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
[...]
mitchross commented 3 years ago

First ensure you are on upto date flutter stable

'flutter upgrade'

Next check to make sure your cocoapods is upto date

'brew upgrade cocoapods'

Then

Cd into example>ios run 'rm -rf Pods' run 'rm Podfile.lock'

then try 'flutter run'

oberbeck commented 3 years ago
$ flutter upgrade
> Flutter is already up to date on channel stable
> Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
> Framework • revision 7891006299 (2 days ago) • 2020-12-10 11:54:40 -0800
> Engine • revision ae90085a84
> Tools • Dart 2.10.4
$ pod --version
> 1.10.0
$ flutter doctor                       
> Doctor summary (to see all details, run flutter doctor -v):
> [✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-US)
>  
> [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
> [✓] Xcode - develop for iOS and macOS (Xcode 12.2)
> [✓] Android Studio (version 4.0)
> [✓] VS Code (version 1.52.0)
>  
> [✓] Connected device (2 available)            
> 
> • No issues found!

I also removed Pods and Podfile.lock from the iOS folder...

$ flutter run
> [...]
> Running pod install...                                                  
> (This is taking an unexpectedly long time.)       ⣷
mitchross commented 3 years ago

Did you try 'pod repo update'

oberbeck commented 3 years ago

Did you try 'pod repo update'

yes, I did...

mitchross commented 3 years ago

To confirm, you are trying to run this example project?

oberbeck commented 3 years ago

To confirm, you are trying to run this example project?

Not exactly.

I followed the README to add it to my existing project which runs successfully without flutter_vlc_player. With flutter_vlc_player it does work on Android.

mitchross commented 3 years ago

Can you please first try to pull this repo down and then cd to example and run 'flutter run'. I want to first confirm the example project is loading for you.

oberbeck commented 3 years ago

I am running the example project now.

$ flutter run   
> Multiple devices found:
> [...]
> Running "flutter pub get" in example...                             2.0s
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> Warning
> ──────────────────────────────────────────────────────────────────────────────
> Your Flutter application is created using an older version of the Android
> embedding. It's being deprecated in favor of Android embedding v2. Follow the
> steps at
> 
> https://flutter.dev/go/android-project-migration
> 
> to migrate your project.
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> 
> Launching lib/main.dart on iPhone 8 in debug mode...
>  
> Warning: Missing build name (CFBundleShortVersionString).
> Warning: Missing build number (CFBundleVersion).
> Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the > > App Store.
> Running pod install...                                                  
> (This is taking an unexpectedly long time.)       ⣯                                            ⣷
> [...]
> curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
> 
> Error running pod install
> Error launching application on iPhone 8.
oberbeck commented 3 years ago

Have you tried to download https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz manually? It fails for me.

mitchross commented 3 years ago

https://github.com/CocoaPods/Specs/blob/master/Specs/b/f/7/MobileVLCKit/3.3.15/MobileVLCKit.podspec.json

If I paste this in my browser, it downloads normally https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz

oberbeck commented 3 years ago

https://github.com/CocoaPods/Specs/blob/master/Specs/b/f/7/MobileVLCKit/3.3.15/MobileVLCKit.podspec.json

If I paste this in my browser, it downloads normally https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz

does it ever finish?

mitchross commented 3 years ago

Yup. Perhaps you should try connecting to a hotspot and rule out your local network/isp ?

oberbeck commented 3 years ago

I have a downstream of ↓ 58,6 Mbit/s I ran it like twice, it is always very slow and looks like it times out/the server cancels it. 9,9 MB of 299,7 MB -- The operation couldn't be complete... 8,3 MB of 299,7 MB -- The operation couldn't be complete... Then I switched to my mobile cellular and it is the same. (I am doing this from Germany BTW)

@hongfeiyang from where are you trying to run this/download the dependency?

oberbeck commented 3 years ago

Using the Tor network with an IP from Texas (United States) it finishes within 10 minutes. So it does not seem to be our networks, but rather the server/host with a geo filter? 🙄

hongfeiyang commented 3 years ago

I have a downstream of ↓ 58,6 Mbit/s

I ran it like twice, it is always very slow and looks like it times out/the server cancels it.

9,9 MB of 299,7 MB -- The operation couldn't be complete...

8,3 MB of 299,7 MB -- The operation couldn't be complete...

Then I switched to my mobile cellular and it is the same.

(I am doing this from Germany BTW)

@hongfeiyang from where are you trying to run this/download the dependency?

Download from Australia, gigabyte network. I eventually finished downloading that in 3 minutes, with an exclamation mark, though it still compiles... My college's computer works fine, but his Cocoapod is 1.9.3, so this maybe a pod problem I think

mitchross commented 3 years ago

I am on cocoapods version 1.10

mitchross commented 3 years ago

If you want to log a bug with VLC, this is the correct spot https://code.videolan.org/videolan/VLCKit/-/issues

A gitlab account can be made with github account

oberbeck commented 3 years ago

Thank you, I opened an issue https://code.videolan.org/videolan/VLCKit/-/issues/457

oberbeck commented 3 years ago

@hongfeiyang who's your internet provider? https://code.videolan.org/videolan/VLCKit/-/issues/457#note_75202

hongfeiyang commented 3 years ago

@hongfeiyang who's your internet provider?

https://code.videolan.org/videolan/VLCKit/-/issues/457#note_75202

TPG and Vocus

skytodmoon commented 3 years ago

A "fake" method to solve this problem. http://www.yunsean.com/podan-zhuang-mobilevlckit/

boeledi commented 1 year ago

The only solution I found is to install a private VPN, connected to a server in the US. Hope this helps.

ejohnsonw commented 4 months ago

still an issue , and trying to download from the US.

gauravmehta13 commented 3 months ago

You just need a fast internet, i was stuck , changed to 5g and all good.