Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

The whole app crashes when YoutubePlayerIFrame widget is built on screen on iOS 14.5 #23

Closed
oliatienza opened this issue May 3, 2021 · 5 comments · Fixed by #25
Closed
Labels
bug Something isn't working

Comments

@oliatienza
Copy link

oliatienza commented May 3, 2021

Describe the bug
The Flutter app crashes when YoutubePlayerIFrame widget is used

To Reproduce:
Steps to reproduce the behavior:
On an iOS 14.5 device

  1. (In my case) Create a ListView widget
  2. In one of the children of the ListView, have a YoutubePlayerIFrame instance

Expected behavior:
YoutubePlayerIFrame should load and display a Youtube player

Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version
    10.0.19042.928], locale en-PH)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.55.2)
[√] Connected device (2 available)

Additional context
Observed on both an iPhone 11 Pro and iPhone 7 Plus. I can confirm that before updating to iOS 14.5, the same code works fine. No any special params passed onto the YoutubePlayerIFrame constructor

@oliatienza oliatienza added the bug Something isn't working label May 3, 2021
@ogdans3

This comment has been minimized.

@jonafeucht
Copy link
Owner

Hi,
it runs perfectly fine on my end. Can you post example code and flutter doctor -v

@oliatienza
Copy link
Author

Hi, here's how I use it. May be something with the gestureRecognizers ?

...

 return YoutubePlayerIFrame(
      controller: controller,
      gestureRecognizers: const <Factory<OneSequenceGestureRecognizer>>{},
    );

...

flutter doctor -v:
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.19042.928], locale en-PH)
• Flutter version 2.0.1 at C:\Development\flutter
• Framework revision c5a4b4029c (9 weeks ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\oliat\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Development\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
• Android Studio at C:\Development\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.55.2)
• VS Code at C:\Users\oliat\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.22.0

[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93
• Edge (web) • edge • web-javascript • Microsoft Edge 90.0.818.51

@jonafeucht
Copy link
Owner

jonafeucht commented May 4, 2021

Thanks, I'll have a look.

What I was expecting from flutter doctor was:

  1. macOS version
  2. Xcode version

Can you post that too and are you running with sound null safety?

@jonafeucht
Copy link
Owner

Without further response this issue is getting closed and locked. Please open a new issue for related reports.

Repository owner locked as resolved and limited conversation to collaborators May 15, 2021
@jonafeucht jonafeucht removed their assignment May 15, 2021
@jonafeucht jonafeucht linked a pull request May 17, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants