-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Comments
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
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)
code sampleimport '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;
}
|
The message For the time being we should consider filtering this out from |
@kalabro is this issue or any other issue available for me to work on? |
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 |
The noise from the android framework. |
same official webview plugin... |
if its annoying you can exclude it from the logs by typing !Did not find frame. |
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. |
When checking this with a pure platform-views example, I also can see this message. Since it's not specific to |
updateAcquireFence: Did not find frame.
out from flutter run output
I'm also fetch this issue but after i put correct Lat,Lng working fineI/PlatformViewsController(11235): Hosting view in view hierarchy for platform view: 1 |
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? |
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 |
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 |
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 |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hi everyone, I've encountered a similar issue with my AdMob ad and its loading problems, accompanied by the |
|
+1, this needs fixing or filtering out, its really really hard to debug with this output. |
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 |
me to, what is the solution? |
Its so crazy that this is still unresolved after 2 years |
I have the same problem in my code. the reason is that there is some code like "Stack", "Column" in my code, and when I add "textDirection: TextDirection.ltr," everything is ok. hope it can be useful E/FrameEvents(21768): updateAcquireFence: Did not find frame. |
I tried this in the column directly above my webview widget and it is not working. thanks for the suggestion though! |
repro
https://github.com/cedvdb/flutter_repros/tree/google_map_init
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:
Then there is an error:
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
The text was updated successfully, but these errors were encountered: