Skip to content

[Android 12][google_maps_flutter] BufferQueue has no connected producer #90556

@hsalazarl

Description

@hsalazarl

Launching a keyboard while using google_maps_flutter plugin causes the map to dissapear from the screen and this log line repeatedly:

E/BufferQueueProducer(10419): [SurfaceTexture-0-10419-0](id:28b300000002,api:0,p:-1,c:10419) dequeueBuffer: BufferQueue has no connected producer

Steps to Reproduce

  1. Run flutter create google_maps_test.
  2. Include your API Key in your AndroidManifest.xml file:
<meta-data android:name="com.google.android.geo.API_KEY" android:value="MY_API_KEY" />
  1. Add a GoogleMap widget to the scaffold's body along with a TextFormField (Here I'm using a Stack):
Stack(
        children: [
          GoogleMap(
            myLocationEnabled: false,
            mapType: MapType.normal,
            indoorViewEnabled: true,
            initialCameraPosition: CameraPosition(target: LatLng(0, 0), zoom: 10),
            onMapCreated: (GoogleMapController controller) async {
              _controller.complete(controller);
            },
          ),
          TextFormField(
            keyboardType: TextInputType.number,
          ),
        ],
      ),
  1. Launch the app.
  2. Focus the TextFormField on screen to launch the keyboard and you will see the map goes away and the above logs will show in the console.

Expected results:
The map should still be visible.

Actual results:
The map dissapears.

Flutter doctor

[✓] Flutter (Channel stable, 2.2.2, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.2 at /home/holland/tools/flutter
    • Framework revision d79295af24 (3 months ago), 2021-06-11 08:56:01 -0700
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/holland/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /home/holland/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7351085/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 4.2)
    • Android Studio at /home/holland/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7351085
    • Flutter plugin version 60.1.1
    • Dart plugin version 202.8531
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
    • IntelliJ at /home/holland/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7442.40
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 211.7727

[✓] Connected device (1 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 12 (API 31) (emulator)

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: OS-version specificAffects only some versions of the relevant operating systemfound in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions