Repository navigation
AndroidView not working properly on a Samsung Galaxy S6 #23900
Copy link
Copy link
Closed
Labels
a: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsc: crashStack traces logged to the consoleStack traces logged to the consoledependency: skiaSkia team may need to help usSkia team may need to help usp: mapsGoogle Maps pluginGoogle Maps pluginplatform-androidAndroid applications specificallyAndroid applications specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
Steps to Reproduce
On Samsung Galaxy S6 the google maps plug in causes the device to freeze and the screen shows flickering black pixels.
Minimal Repro
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
class MapTest extends StatelessWidget {
final LatLng center = const LatLng(32.0, 34.9);
@override
Widget build(BuildContext context) {
return Container(
child: Center(
child: SizedBox(
width: 300.0,
height: 300.0,
child: GoogleMap(
onMapCreated: onMapCreated,
options: GoogleMapOptions(
cameraPosition: CameraPosition(
target: center,
zoom: 11.0
)
),
gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>[
Factory<OneSequenceGestureRecognizer>(
() => EagerGestureRecognizer()
)
].toSet(),
),
),
),
);
}
void onMapCreated(GoogleMapController controller) {
controller.addMarker(MarkerOptions(
position: LatLng(
center.latitude,
center.longitude
),
infoWindowText: const InfoWindowText("Test Location", 'AA')
));
}
}[√] Flutter (Channel dev, v0.10.2, on Microsoft Windows [Version 10.0.17134.345], locale en-CA)
• Flutter version 0.10.2 at D:\flutter
• Framework revision d8cbb80206 (8 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at C:\Users\kusay\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.28.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.20.0
[√] Connected device (1 available)
• SM G920W8 • 0216029abaa90a03 • android-arm64 • Android 6.0.1 (API 23)
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsc: crashStack traces logged to the consoleStack traces logged to the consoledependency: skiaSkia team may need to help usSkia team may need to help usp: mapsGoogle Maps pluginGoogle Maps pluginplatform-androidAndroid applications specificallyAndroid applications specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight
Activity
dnfield commentedon Nov 3, 2018
@amirh
amirh commentedon Nov 4, 2018
Thanks for the report @kunit1!
Would you mind trying the android_views integration test on that device? I'm curious to see if embedding a simple view causes the same issue on the device.
From your local flutter checkout:
Does your device freeze when launching this app?
kunit1 commentedon Nov 4, 2018
@amirh Thank you for the response.
I tried to run the test app but got the following error in the packages get step:
I couldn't find the referenced directory. If you point me in the right direction I would gladly run the test on the device.
amirh commentedon Nov 4, 2018
Try running
flutter drivein the android_views directory, it should clone the goldens repo.kunit1 commentedon Nov 4, 2018
I ran the test on the device. This is the result:
https://drive.google.com/open?id=1ZKb6zO12Sn02wyiH3bLbUU7_UntB41yc
Error In Log
GLES-MALI OOM error: execution failed (gles_fbp_wait_for_events at hardware/samsung_slsi/MaliT760_r7p0_Istor/product/gles/src/fb/mali_gles_fb_module_api.c:1869)Touching the screen causes the black portion to flicker. The device is not frozen but the view is corrupted as far as I can see.
With google maps, similar view corruption occurs but the phone becomes unresponsive to any action including the power button. It eventually restarts on its own after a few minutes.
[-]Google Maps Plugin causes device to freeze[/-][+]AndroidView not working properly on a Samsung Galaxy S6[/+]beroso commentedon Nov 16, 2018
We are facing this Google Maps issue on a LG K4 X230 too.
Debug log is attached:
degub.log
amirh commentedon Nov 19, 2018
It seems that this has regressed with the Skia roll at flutter-team-archive/engine#6652
I'm continuing to bisect the individual Skia commits on that roll.
amirh commentedon Nov 19, 2018
The issue was introduced with google/skia@dc82994 (which also introduced #24402)
@bsalomon
7 remaining items
tvolkert commentedon Nov 24, 2018
Fixed by https://skia.googlesource.com/skia/+/a6dddeaac902114677b21cb39f423db0f5557b10 (as soon as that rolls into Flutter)
amirh commentedon Nov 25, 2018
I'm keeping this open until we confirm the Skia fix fixes the AndroidView issue.
Roll Skia to 988f54e4689b3d9fb6d5220e02b418f5cfa2b6db (#6931)
tvolkert commentedon Nov 27, 2018
@amirh the Skia roll has landed in flutter/flutter - are you still seeing the issue?
aldobm commentedon Nov 28, 2018
Hello, in Huawei VNS-L23 android 6 the device freeze and the screen shows flickering pixels.
I Update Now:
The Log Say:
In android 7 Samsung galaxy S6 works fine.
tvolkert commentedon Nov 28, 2018
Ok, second take... can you please try
v0.11.11(on the latestdevandbetachannels - available viaflutter upgrade)? Thanks!amirh commentedon Nov 28, 2018
Confirmed that this is fixed on master (for a Samsung Galaxy S6).
aldobm commentedon Nov 29, 2018
In Huawei VNS-L23 android 6 Works Fine, with update now. FIX Thanks
KinsomyJS commentedon Dec 5, 2018
Hi,the same problem happens in Oppo R15,but my oneplus 5 is correct。
I created #24974
huuang commentedon Mar 12, 2019
I am facing the same problem, have you solved it?
prashantspandey commentedon Oct 6, 2020
any solutions?
github-actions commentedon Aug 11, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.