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

Filtering updateAcquireFence: Did not find frame. out from flutter run output #104268

Open
cedvdb opened this issue May 20, 2022 · 25 comments
Open
Labels
found in release: 3.0 Found to occur in 3.0 found in release: 3.1 Found to occur in 3.1 good first issue Relatively approachable for first-time contributors 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-android Android applications specifically team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-android Triaged by Android platform team

Comments

@cedvdb
Copy link
Contributor

cedvdb commented May 20, 2022

repro

https://github.com/cedvdb/flutter_repros/tree/google_map_init

  • clone
  • replace { YOUR_API_KEY } in AndroidManifest with your google api key
  • run & go to third tab

I'm using a Redmi Note 9

the issue

My console is flooded with messages when displaying a google map.

The type of message I think are of 2 different types, but I guess they might be related, I'm not sure though though but both happen when showing the map.

first this one is being printed a bunch of time:

E/FrameEvents(25124): updateAcquireFence: Did not find frame.
D/Surface (25124): lockHardwareCanvas

Then there is an error:

W/SnapshotHandler(25124): Unable to retrieve flag snapshot for com.google.android.libraries.consentverifier#com.example.flutter_repros, using defaults.
W/SnapshotHandler(25124): java.io.FileNotFoundException: /data/user/0/com.example.flutter_repros/files/phenotype/shared/com.google.android.libraries.consentverifier#com.example.flutter_repros.pb: open failed: ENOENT (No such file or directory)
W/SnapshotHandler(25124): 	at libcore.io.IoBridge.open(IoBridge.java:492)

version

Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision fb57da5 (17 hours ago) • 2022-05-19 15:50:29 -0700
Engine • revision caaafc5604
Tools • Dart 2.17.1 • DevTools 2.12.2

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

Hi @cedvdb, Thanks for filing the issue. I am able to reproduce the exception along with those logs on both stable and the master channel.

logs
Launching lib/main.dart on Redmi K20 Pro in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:58045/Qx2UVHLdx0w=/ws
I/.flutter_repro(26685): ProcessProfilingInfo new_methods=1002 is saved saved_to_disk=1 resolve_classes_delay=8000
W/MirrorManager(26685): this model don't Support
D/MapsInitializer(26685): preferredRenderer: null
D/zzca    (26685): preferredRenderer: null
I/zzca    (26685): Making Creator dynamically
I/DynamiteModule(26685): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:203115000
I/DynamiteModule(26685): Selected remote version of com.google.android.gms.maps_dynamite, version >= 203115000
V/DynamiteModule(26685): Dynamite loader version >= 2, using loadModule2NoCrashUtils
W/.flutter_repro(26685): ClassLoaderContext classpath size mismatch. expected=3, found=1 (DLC[];PCL[/data/app/~~bYaLCyrDj92huK9UfK-inQ==/com.whatsapp-3fI9CfunUENiHTNXDPpEdA==/base.apk*3870606817:/data/app/~~bYaLCyrDj92huK9UfK-inQ==/com.whatsapp-3fI9CfunUENiHTNXDPpEdA==/base.apk!classes2.dex*2324300703:/data/app/~~bYaLCyrDj92huK9UfK-inQ==/com.whatsapp-3fI9CfunUENiHTNXDPpEdA==/base.apk!classes3.dex*1498906389]{PCL[/system/framework/org.apache.http.legacy.jar*1721227950]} | DLC[];PCL[/data/app/~~69qDEQa2LP5K8TYuMJP20A==/com.example.flutter_repros-J4W-Z0dta_BjsrlHopE01g==/base.apk*32047865]{PCL[/system/framework/org.apache.http.legacy.jar*1721227950]})
W/.flutter_repro(26685): Found duplicate classes, falling back to extracting from APK : /data/user_de/0/com.google.android.gms/app_chimera/m/000002f5/MapsDynamite.apk
W/.flutter_repro(26685): NOTE: This wastes RAM and hurts startup performance.
W/.flutter_repro(26685): Found duplicated class when checking oat files: 'Landroid/support/v4/app/RemoteActionCompatParcelizer;' in /data/app/~~69qDEQa2LP5K8TYuMJP20A==/com.example.flutter_repros-J4W-Z0dta_BjsrlHopE01g==/base.apk and /data/user_de/0/com.google.android.gms/app_chimera/m/000002f5/MapsDynamite.apk
I/Google Maps Android API(26685): Google Play services client version: 12451000
I/Google Maps Android API(26685): Google Play services package version: 221514037
I/Google Maps Android API(26685): Google Play services maps renderer version(legacy): 203115000
D/MapsInitializer(26685): loadedRenderer: LEGACY
D/zzca    (26685): preferredRenderer: null
I/Google Maps Android API(26685): Google Play services package version: 221514037
I/Google Maps Android API(26685): Google Play services maps renderer version(legacy): 203115000
I/TetheringManager(26685): registerTetheringEventCallback:com.example.flutter_repros
E/libc    (26685): Access denied finding property "ro.vendor.df.effect.conflict"
E/libc    (26685): Access denied finding property "ro.vendor.knock.type"
W/Thread-6(26685): type=1400 audit(0.0:316931): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=28814 scontext=u:r:untrusted_app:s0:c72,c260,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 app=com.example.flutter_repros
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
E/GoogleMapController(26685): Cannot enable MyLocation layer as location permissions are not granted
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
I/ba      (26685): Successfully registered with Phenotype.
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
I/chatty  (26685): uid=11096(com.example.flutter_repros) RenderThread identical 24 lines
E/FrameEvents(26685): updateAcquireFence: Did not find frame.
W/DynamiteModule(26685): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule(26685): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:6
I/DynamiteModule(26685): Selected remote version of com.google.android.gms.googlecertificates, version >= 6
W/SnapshotHandler(26685): Unable to retrieve flag snapshot for com.google.android.libraries.consentverifier#com.example.flutter_repros, using defaults.
W/SnapshotHandler(26685): java.io.FileNotFoundException: /data/user/0/com.example.flutter_repros/files/phenotype/shared/com.google.android.libraries.consentverifier#com.example.flutter_repros.pb: open failed: ENOENT (No such file or directory)
W/SnapshotHandler(26685): 	at libcore.io.IoBridge.open(IoBridge.java:492)
W/SnapshotHandler(26685): 	at java.io.FileInputStream.<init>(FileInputStream.java:160)
W/SnapshotHandler(26685): 	at zb.d(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/SnapshotHandler(26685): 	at yw.d(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/SnapshotHandler(26685): 	at zq.b(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):1)
W/SnapshotHandler(26685): 	at zp.a(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):1)
W/SnapshotHandler(26685): 	at yt.b(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):0)
W/SnapshotHandler(26685): 	at wt.a(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):3)
W/SnapshotHandler(26685): 	at xx.a(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):15)
W/SnapshotHandler(26685): 	at avb.d(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):0)
W/SnapshotHandler(26685): 	at fo.c(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):26)
W/SnapshotHandler(26685): 	at fn.a(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):84)
W/SnapshotHandler(26685): 	at fn.b(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):0)
W/SnapshotHandler(26685): 	at in.c(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):1)
W/SnapshotHandler(26685): 	at ie.e(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):1)
W/SnapshotHandler(26685): 	at jf.t(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/SnapshotHandler(26685): 	at jf.u(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):1)
W/SnapshotHandler(26685): 	at jf.e(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/SnapshotHandler(26685): 	at jj.handleMessage(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):69)
W/SnapshotHandler(26685): 	at android.os.Handler.dispatchMessage(Handler.java:102)
W/SnapshotHandler(26685): 	at android.os.Looper.loop(Looper.java:236)
W/SnapshotHandler(26685): 	at android.os.HandlerThread.run(HandlerThread.java:67)
W/SnapshotHandler(26685): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
W/SnapshotHandler(26685): 	at libcore.io.Linux.open(Native Method)
W/SnapshotHandler(26685): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
W/SnapshotHandler(26685): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254)
W/SnapshotHandler(26685): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
W/SnapshotHandler(26685): 	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7934)
W/SnapshotHandler(26685): 	at libcore.io.IoBridge.open(IoBridge.java:478)
W/SnapshotHandler(26685): 	... 21 more
W/MobStoreFlagStore(26685): Unable to update local snapshot for com.google.android.libraries.consentverifier#com.example.flutter_repros, may result in stale flags.
W/MobStoreFlagStore(26685): java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.example.flutter_repros, sha256=[7977edf4787b8f62b4ba85af96f3c847404ee6ed8f93f9b1b92080dc7a8fcba7], atk=false, ver=221514037.true (go/gsrlt)
W/MobStoreFlagStore(26685): 	at agw.s(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):3)
W/MobStoreFlagStore(26685): 	at agw.get(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/MobStoreFlagStore(26685): 	at aig.g(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/MobStoreFlagStore(26685): 	at wy.c(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):1)
W/MobStoreFlagStore(26685): 	at xa.run(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):0)
W/MobStoreFlagStore(26685): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/MobStoreFlagStore(26685): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/MobStoreFlagStore(26685): 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
W/MobStoreFlagStore(26685): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/MobStoreFlagStore(26685): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/MobStoreFlagStore(26685): 	at java.lang.Thread.run(Thread.java:923)
W/MobStoreFlagStore(26685): Caused by: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.example.flutter_repros, sha256=[7977edf4787b8f62b4ba85af96f3c847404ee6ed8f93f9b1b92080dc7a8fcba7], atk=false, ver=221514037.true (go/gsrlt)
W/MobStoreFlagStore(26685): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
W/MobStoreFlagStore(26685): 	at android.os.Parcel.createException(Parcel.java:2360)
W/MobStoreFlagStore(26685): 	at android.os.Parcel.readException(Parcel.java:2343)
W/MobStoreFlagStore(26685): 	at android.os.Parcel.readException(Parcel.java:2285)
W/MobStoreFlagStore(26685): 	at ea.aZ(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/MobStoreFlagStore(26685): 	at qp.a(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):4)
W/MobStoreFlagStore(26685): 	at ig.e(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/MobStoreFlagStore(26685): 	at jf.t(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/MobStoreFlagStore(26685): 	at jf.u(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):3)
W/MobStoreFlagStore(26685): 	at jf.e(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):2)
W/MobStoreFlagStore(26685): 	at jj.handleMessage(:com.google.android.gms.dynamite_mapsdynamite@221514081@22.15.14 (150400-0):69)
W/MobStoreFlagStore(26685): 	at android.os.Handler.dispatchMessage(Handler.java:102)
W/MobStoreFlagStore(26685): 	at android.os.Looper.loop(Looper.java:236)
W/MobStoreFlagStore(26685): 	at android.os.HandlerThread.run(HandlerThread.java:67)

I updated the plugins and

  cupertino_icons: ^1.0.4
  google_maps_flutter: ^2.1.5
  google_maps_flutter_web: ^0.3.3
flutter doctor -v (mac)
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 3.0.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (3 days ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

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

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! CocoaPods 1.10.2 out of date (1.11.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin
        usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 2021.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 11.0.11+0-b60-7772763)

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

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

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • 192.168.1.2:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 12 Pro (mobile) • 19FD0231-BFF0-441D-B584-AD94C4084525 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 101.0.4951.64

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

! Doctor found issues in 1 category.
[✓] Flutter (Channel master, 3.1.0-0.0.pre.854, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 3.1.0-0.0.pre.854 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ec20ea80ad (35 hours ago), 2022-05-21 16:28:06 -0400
    • Engine revision 1bfe551d6b
    • Dart version 2.18.0 (build 2.18.0-142.0.dev)
    • DevTools version 2.13.1

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

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! CocoaPods 1.10.2 out of date (1.11.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin
        usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 2021.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 11.0.11+0-b60-7772763)

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

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

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • 192.168.1.2:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 12 Pro (mobile) • 19FD0231-BFF0-441D-B584-AD94C4084525 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 101.0.4951.64

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

! Doctor found issues in 1 category.
code sample
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

import 'map.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage>
    with SingleTickerProviderStateMixin {
  late final TabController _tabController;

  @override
  void initState() {
    _tabController = TabController(length: 3, vsync: this);
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        bottom: TabBar(
          controller: _tabController,
          tabs: const [
            Tab(icon: Icon(Icons.directions_car)),
            Tab(icon: Icon(Icons.directions_transit)),
            Tab(icon: Icon(Icons.directions_bike)),
          ],
        ),
      ),
      body: TabBarView(
        controller: _tabController,
        children: [
          Container(
            color: Colors.green,
          ),
          Container(
            color: Colors.blue,
          ),
          const MapLocationPicker(),
        ],
      ),
    );
  }
}

typedef OnPositionUpdated = void Function(LatLng newPosition);

class MapLocationPicker extends StatefulWidget {
  final LatLng? initialPosition;
  final OnPositionUpdated? onPositionUpdated;
  final bool readOnly;

  const MapLocationPicker({
    this.initialPosition,
    this.onPositionUpdated,
    this.readOnly = true,
    Key? key,
  }) : super(key: key);

  @override
  State<StatefulWidget> createState() => _MapLocationPickerState();
}

class _MapLocationPickerState extends State<MapLocationPicker> {
  final String _pickedLocationMarkerId = "pickedLocation";

  final _defaultPosition = const CameraPosition(
    target: LatLng(41.99, 21.42),
    zoom: 7.2373,
  );

  final double _defaultPickedLocationZoom = 14.4746;

  LatLng? _position;

  @override
  void initState() {
    super.initState();

    _position = initialPosition;
  }

  void _updatePosition(LatLng newPosition) {
    if (readOnly) {
      return;
    }

    onPositionUpdated?.call(newPosition);

    if (mounted) {
      setState(() {
        _position = newPosition;
      });
    }
  }

  Set<Marker> _getMarkers() {
    return {
      if (_position != null)
        Marker(
          draggable: !readOnly,
          onDragEnd: _updatePosition,
          markerId: MarkerId(_pickedLocationMarkerId),
          position: _position!,
          infoWindow: InfoWindow(
            title: "${_position!.latitude}, ${_position!.longitude}",
          ),
        ),
    };
  }

  void _onMapCreated(GoogleMapController controller) {
    controller.setMapStyle(null);
  }

  @override
  Widget build(BuildContext context) {
    return GoogleMap(
      initialCameraPosition: _defaultPosition,
      onMapCreated: _onMapCreated,
      markers: _getMarkers(),
      onTap: (LatLng? location) {
        if (!readOnly && _position == null && location != null) {
          _updatePosition(location);
        }
      },
    );
  }

  LatLng? get initialPosition => widget.initialPosition;
  OnPositionUpdated? get onPositionUpdated => widget.onPositionUpdated;
  bool get readOnly => widget.readOnly;
}

@maheshmnj maheshmnj added platform-android Android applications specifically plugin p: maps Google Maps plugin has reproducible steps The issue has been confirmed reproducible and is ready to work on found in release: 3.0 Found to occur in 3.0 found in release: 3.1 Found to occur in 3.1 and removed in triage Presently being triaged by the triage team labels May 23, 2022
@blasten
Copy link

blasten commented May 23, 2022

The message updateAcquireFence: Did not find frame. isn't something to be worried about.
The Android team told us that this is likely a bug in HWUI and doesn't signal an error.

For the time being we should consider filtering this out from flutter run output since I agree it can be a lot of spam.

@blasten blasten added tool Affects the "flutter" command-line tool. See also t: labels. good first issue Relatively approachable for first-time contributors P2 Important issues not at the top of the work list and removed p: maps Google Maps plugin plugin labels May 23, 2022
@kalabro
Copy link

kalabro commented Jun 25, 2022

Hi @blasten, #106569 fixes this issue too by filtering out logs by the "flutter" string.
I'm not sure if it's the right approach though.

@Nike682631
Copy link

@kalabro is this issue or any other issue available for me to work on?

@hemangjoshi37a
Copy link

I have similar problem with my admob ad. Please let me know if found any solution. Also the ads are not loading. It shows the error that ad failed to load : 3
https://hjlabs.in

@cylyl
Copy link

cylyl commented Sep 12, 2022

@shinriyo
Copy link

shinriyo commented Apr 5, 2023

same official webview plugin...

@omar-hadek
Copy link

if its annoying you can exclude it from the logs by typing !Did not find frame.

@flutter-triage-bot flutter-triage-bot bot added team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
@bksbora
Copy link

bksbora commented Jul 31, 2023

its so annoying please solve this issue :

42
E/FrameEvents( 2775): updateAcquireFence: Did not find frame.
D/EGL_emulation( 2775): app_time_stats: avg=22.86ms min=9.75ms max=35.68ms count=45
D/EGL_emulation( 2775): app_time_stats: avg=4.03ms min=2.39ms max=8.10ms count=45
4
E/FrameEvents( 2775): updateAcquireFence: Did not find frame.
D/EGL_emulation( 2775): app_time_stats: avg=250.04ms min=4.95ms max=945.69ms count=4
D/EGL_emulation( 2775): app_time_stats: avg=236.95ms min=3.33ms max=915.12ms count=4
41
E/FrameEvents( 2775): updateAcquireFence: Did not find frame.

@huycozy
Copy link
Member

huycozy commented Nov 8, 2023

When checking this with a pure platform-views example, I also can see this message. Since it's not specific to google_maps_flutter plugin and also refer to #104268 (comment), I will update the title.

@huycozy huycozy changed the title [google_maps_flutter] updateAcquireFence: Did not find frame. Filtering updateAcquireFence: Did not find frame. out from flutter run output Nov 8, 2023
@kishor-parmar-np
Copy link

I'm also fetch this issue but after i put correct Lat,Lng working fine

I/PlatformViewsController(11235): Hosting view in view hierarchy for platform view: 1
I/PlatformViewsController(11235): PlatformView is using ImageReader backend
D/EGL_emulation(11235): app_time_stats: avg=1374.29ms min=103.73ms max=3642.95ms count=3
E/FrameEvents(11235): updateAcquireFence: Did not find frame.
D/EGL_emulation(11235): app_time_stats: avg=4118.66ms min=4118.66ms max=4118.66ms count=1
E/FrameEvents(11235): updateAcquireFence: Did not find frame.

Capture1

@BassitoZ
Copy link

I have the same problem, could you help me? please? I can't find the fault

@kishor-parmar-np
Copy link

I have the same problem, could you help me? please? I can't find the fault

I can try to help for this lets connect?

@manh310599
Copy link

I have same problem with inappwebview

@kishor-parmar-np
Copy link

I have same problem with inappwebview

ok, then need to check what's happening there

@manh310599
Copy link

manh310599 commented Dec 3, 2023

I have same problem with inappwebview

ok, then need to check what's happening there

I need select text inappwebview and print it in console
But when I click in my screen on console show error updateAcquireFence: Did not find frame
I think flutter dont receive frame of webview

@kishor-parmar-np
Copy link

I have same problem with inappwebview

ok, then need to check what's happening there

I need select text inappwebview and print it in console But when I click in my screen on console show error updateAcquireFence: Did not find frame I think flutter dont receive frame of webview

Let me know if you need any help

@manh310599
Copy link

I have same problem with inappwebview

ok, then need to check what's happening there

I need select text inappwebview and print it in console But when I click in my screen on console show error updateAcquireFence: Did not find frame I think flutter dont receive frame of webview

Let me know if you need any help

I need went I click in to text in webview dialog about that text will be show

@manh310599
Copy link

I have same problem with inappwebview

ok, then need to check what's happening there

I need select text inappwebview and print it in console But when I click in my screen on console show error updateAcquireFence: Did not find frame I think flutter dont receive frame of webview

Let me know if you need any help

import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: WebViewExample(),
    );
  }
}




class WebViewExample extends StatefulWidget {
  @override
  _WebViewExampleState createState() => _WebViewExampleState();
}

class _WebViewExampleState extends State<WebViewExample> {
  InAppWebViewController? _webViewController;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('InAppWebView Example'),
      ),
      body: InAppWebView(

        initialUrlRequest: URLRequest(
          url: Uri.parse('https://tuoitre.vn/israel-khong-kich-toan-dai-gaza-nha-khoa-hoc-palestine-noi-tieng-thiet-mang-20231203111849293.htm'),
        ),
        onWebViewCreated: (controller) {
          _webViewController = controller;
        },
        gestureRecognizers: Set()
          ..add(
            Factory<VerticalDragGestureRecognizer>(
                  () => VerticalDragGestureRecognizer(),
            ),
          ),
        initialOptions: InAppWebViewGroupOptions(
          android: AndroidInAppWebViewOptions(
            useWideViewPort: true,
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          // Call a function to select and print text
          selectAndPrintText();
        },
        child: Icon(Icons.print),
      ),
    );
  }

  // Function to select text and print it to the console
  Future<void> selectAndPrintText() async {
    if (_webViewController != null) {
      // Execute JavaScript code to select text
      final selectedText = await _webViewController!.evaluateJavascript(
        source: "window.getSelection().toString();",
      );

      // Print selected text to the console
      print("Selected Text: $selectedText");
    }
  }
}

This is my code but I don't want to have to click on the button. I want when I click on the text, it will be printed to the console

@newproplus

This comment was marked as duplicate.

@hemangjoshi37a
Copy link

Hi everyone, I've encountered a similar issue with my AdMob ad and its loading problems, accompanied by the updateAcquireFence: Did not find frame error. However, I found that this message, as mentioned by @blasten, is more a noise from the Android framework rather than an indication of a critical error. It's been suggested by @omar-hadek that excluding this message from the logs using !Did not find frame can reduce clutter. While this doesn't solve the underlying issue, it might make debugging other problems easier. For the AdMob ads not loading, I recommend checking network connectivity and ad unit configuration.

@giantss
Copy link

giantss commented Apr 12, 2024

WebViewWidget has been having this problem for a while. Please solve it as soon as possible. The console keeps outputting and you can't view debugging information at all.

@iMrLopez
Copy link

+1, this needs fixing or filtering out, its really really hard to debug with this output.

@mrkzqsmv
Copy link

mrkzqsmv commented Apr 28, 2024

I was encountering the same error, "Did not find frame," and I couldn't debug my code. So, I simply improved the compileSdk version 34 from android/app/build.gradle and ran the app on a real device. The errors didn't occur anymore.

@yassabadr4
Copy link

yassabadr4 commented Apr 28, 2024

I have same problem with inappwebview

me to, what is the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
found in release: 3.0 Found to occur in 3.0 found in release: 3.1 Found to occur in 3.1 good first issue Relatively approachable for first-time contributors 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-android Android applications specifically team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-android Triaged by Android platform team
Projects
None yet
Development

No branches or pull requests