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

FlutterViewController Does Not Show Up in Audio Unit Extension #96165

Open
gatzsche opened this issue Jan 5, 2022 · 8 comments
Open

FlutterViewController Does Not Show Up in Audio Unit Extension #96165

gatzsche opened this issue Jan 5, 2022 · 8 comments
Labels
found in release: 2.8 Found to occur in 2.8 found in release: 2.9 Found to occur in 2.9 has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team

Comments

@gatzsche
Copy link

gatzsche commented Jan 5, 2022

I'm developing an Audio Unit Extension written in Flutter. Everything works so far: Flutter Engine is started, widget hierarchy is built. But finally, the widget does not show up as part of the Audio Unit Extension.

Please check out this running example reproducing the complete issue:
https://github.com/gatzsche/flutter-audio-unit-extension-experiments/blob/develop/README.md

This issue is related to this one:
#16092

I have also posted this issue on StackOverflow:
https://stackoverflow.com/questions/70590266/flutterviewcontroller-not-visible-in-audio-unit-extensions

@maheshmnj maheshmnj added the in triage Presently being triaged by the triage team label Jan 5, 2022
@maheshmnj
Copy link
Member

Hi @gatzsche, Thanks for filing the issue. Can you please share your output of flutter doctor -v to better address the issue?

Thanks

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 5, 2022
@gatzsche
Copy link
Author

gatzsche commented Jan 5, 2022

Flutter (Channel beta, 2.9.0-0.1.pre, on macOS 11.6 20G165 darwin-x64,
    locale en-DE)
    • Flutter version 2.9.0-0.1.pre at /Users/gatzsche/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8f1f9c10f0 (vor 3 Wochen), 2021-12-14 13:41:48 -0800
    • Engine revision 234aca678a
    • Dart version 2.16.0 (build 2.16.0-80.1.beta)
    • DevTools version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/gatzsche/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0
    • ANDROID_HOME = /Users/gatzsche/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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-b3-6915495)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.6 20G165 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 96.0.4664.110

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 5, 2022
@maheshmnj
Copy link
Member

Thanks for the clear reproducible steps @gatzsche, I am able to reproduce the same behavior. On the latest stable and the master channel.

Xcode logs

2022-01-06 12:43:34.631862+0530 FlutterExampleAUV3[21580:192373] Failed to inherit CoreMedia permissions from 21150: (null)
2022-01-06 12:43:34.824183+0530 FlutterExampleAUV3[21580:192426] flutter: Observatory listening on http://127.0.0.1:65233/2b-iQrkENyk=/
2022-01-06 12:43:34.873358+0530 FlutterExampleAUV3[21580:192165] Simulator user has requested new graphics quality: 10
2022-01-06 12:43:35.327376+0530 FlutterExampleAUV3[21580:192428] flutter: BUILDING FLUTTER HOME PAGE
2022-01-06 12:43:35.327390+0530 FlutterExampleAUV3[21580:192410] flutter: BUILDING FLUTTER HOME PAGE

output

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • 192.168.1.3:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 13 Pro (mobile) • 0FA2FB93-2A89-4FDB-8293-DF66188F1E54 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0
      (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 96.0.4664.110

• No issues found!
[✓] Flutter (Channel master, 2.9.0-1.0.pre.224, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.9.0-1.0.pre.224 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a0f8937b7c (2 days ago), 2022-01-03 04:15:18 -0500
    • Engine revision 8f53bbfde0
    • Dart version 2.16.0 (build 2.16.0-134.0.dev)
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • 192.168.1.3:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 13 Pro (mobile) • 0FA2FB93-2A89-4FDB-8293-DF66188F1E54 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0
      (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 96.0.4664.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

sample app with reproducible steps can be found in the original post.

cc: @jmagman

@maheshmnj maheshmnj added found in release: 2.8 Found to occur in 2.8 found in release: 2.9 Found to occur in 2.9 framework flutter/packages/flutter repository. See also f: labels. has reproducible steps The issue has been confirmed reproducible and is ready to work on platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management and removed in triage Presently being triaged by the triage team labels Jan 6, 2022
@maheshmnj
Copy link
Member

Not sure if this supported as of today, related to #16092

@gatzsche
Copy link
Author

gatzsche commented Jan 6, 2022

@maheshmnj Thanks for investigating the issue.

Could I fix the issue in Flutterby by myself and make a pull request?
Can you recommend a resource on how to start with debugging Flutter?

@maheshmnj
Copy link
Member

maheshmnj commented Jan 6, 2022

Yes, sure! Pull requests are always welcomed. You could start by taking a look at this wiki, https://github.com/flutter/flutter/wiki, specifically this https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
You can also reach out to team members on discord in the #hackers-new channel https://github.com/flutter/flutter/wiki/Chat for discussions on the PR.

@goderbauer goderbauer removed the framework flutter/packages/flutter repository. See also f: labels. label Feb 2, 2022
@flutter-triage-bot flutter-triage-bot bot added team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team labels Jul 8, 2023
@flutter-triage-bot
Copy link

This issue is missing a priority label. Please set a priority label when adding the triaged-ios label.

@flutter-triage-bot flutter-triage-bot bot removed the triaged-ios Triaged by iOS platform team label Sep 25, 2023
@stuartmorgan
Copy link
Contributor

Are you using a custom engine build, or a stock engine?

/cc @cyanglaz

@stuartmorgan stuartmorgan added P2 Important issues not at the top of the work list triaged-ios Triaged by iOS platform team labels Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
found in release: 2.8 Found to occur in 2.8 found in release: 2.9 Found to occur in 2.9 has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team
Projects
None yet
Development

No branches or pull requests

4 participants