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

[maps][android]: Map freezes when zooming in on specific device #104461

Open
felipeparente opened this issue May 23, 2022 · 18 comments
Open

[maps][android]: Map freezes when zooming in on specific device #104461

felipeparente opened this issue May 23, 2022 · 18 comments
Labels
e: device-specific Only manifests on certain devices p: maps Google Maps plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team

Comments

@felipeparente
Copy link

felipeparente commented May 23, 2022

I'm creating a simple page with "google_maps_flutter".
The map opens normally, however, when I zoom in, the map freezes, not allowing any further action.

Follow code below.

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

  @override
  Widget build(BuildContext context) {
    return Container(
      child: GoogleMap(
        mapType: MapType.normal,
        initialCameraPosition: CameraPosition(
          target: LatLng(-3.685522, -40.3559426),
          zoom: 14,
        ),
      ),
    );
  }
}

doctor -v

[✓] Flutter (Channel stable, 2.10.3, on macOS 12.3.1 21E258 darwin-x64, locale
    pt-BR)
    • Flutter version 2.10.3 at /Users/felipeparente/flutter_sdk
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (3 months ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

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

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
    • 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 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-7590822)

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • 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

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

[✓] Connected device (2 available)
    • Q2i (mobile) • 202110174091 • android-arm    • Android 8.1.0 (API 27)
    • Chrome (web) • chrome       • web-javascript • Google Chrome
      101.0.4951.64

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

• No issues found!
@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 24, 2022
@darshankawar
Copy link
Member

@felipeparente
From your doctor log, I see that you are on Q2i (mobile) . Can you check if the same behavior occurs on any other device ?
Can you also provide a small demo that shows the freeze when you zoom in ?
What's the plugin version you are using ? Can you also upgrade to latest framework version and check if same behavior persists or not ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 24, 2022
@felipeparente
Copy link
Author

On another device this does not happen.
I don't have the device at the moment, but it's simple, moving the map sideways occurs normally, when I try to pinch zoom or rotate the map, nothing happens, and even the function of moving sideways stops working, I need close the screen and open it again.

google_maps_flutter: ^2.1.5

@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 May 24, 2022
@darshankawar
Copy link
Member

I am wondering if it specific to Q2i (mobile) you are having which isn't clear what make of that model is.
A short video would be helpful to debug further.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 25, 2022
@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 May 25, 2022
@darshankawar
Copy link
Member

I can't seem to access this link.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 25, 2022
@felipeparente
Copy link
Author

Captura de Tela 2022-05-25 às 11 59 59

@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 May 25, 2022
@darshankawar
Copy link
Member

I tried google_maps_flutter plugin example on Samsung 8.1.0 device on which I was able to zoom in and out in portrait and landscape mode properly as below:

IMG-2584.mov

You may probably try the same example on affected device and see if issue still persists. I am wondering if this is specific to the device you mentioned as it doesn't occur on other devices.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 26, 2022
@felipeparente
Copy link
Author

I will try.
But I'm starting to think it's just this particular device.
Monday night I'll be with him again and I'll test the example he sent me.... then I'll get back to him.

@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 May 26, 2022
@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 26, 2022
@JamesMcIntosh
Copy link

JamesMcIntosh commented May 29, 2022

@darshankawar I have been having issues with pinch-zoom and panning freezing the map, I'm running a Xiaomi Mi 9.
I was wondering if it was due to #103686 as I've just upgraded to Flutter 3.

@felipeparente
Copy link
Author

With Flutter 3, the error persists?

@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 May 29, 2022
@JamesMcIntosh
Copy link

@felipeparente It may be a different issue then as I did not have any problems with Flutter 2

@darshankawar
Copy link
Member

@JamesMcIntosh
I suggest you to file a new issue for better tracking.

@felipeparente will wait for what you found out based on the test you'll run as mentioned earlier.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 30, 2022
@felipeparente
Copy link
Author

I just tested. And the problem persists, even with your example.

20220530_200310.mp4

@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 May 30, 2022
@darshankawar
Copy link
Member

Is this on same device you mentioned earlier #104461 (comment) ? or a different one ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 31, 2022
@felipeparente
Copy link
Author

Its a same

@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 May 31, 2022
@darshankawar
Copy link
Member

Keeping it open and labeling as we are unable to replicate this issue on devices we tried on, and this behavior seems to be happening only on OP's specific device.

@darshankawar darshankawar added plugin p: maps Google Maps plugin e: device-specific Only manifests on certain devices platform-android Android applications specifically and removed in triage Presently being triaged by the triage team labels May 31, 2022
@darshankawar darshankawar changed the title Map freezes when zooming in [maps][android]: Map freezes when zooming in on specific device May 31, 2022
@stuartmorgan stuartmorgan added the P3 Issues that are less important to the Flutter project label Jun 2, 2022
@felipeparente
Copy link
Author

When I keep the map open...
These messages keep popping up.

I/Counters(10528): exceeded sample count in FrameTime
D/Surface (10528): lockHardwareCanvas
I/BufferQueueProducer(10528): SurfaceTexture-0-10528-0 queueBuffer: fps=1.94 dur=1033.03 max=935.09 min=97.94
I/Counters(10528): exceeded sample count in FrameTime
D/Surface (10528): lockHardwareCanvas
I/BufferQueueProducer(10528): SurfaceTexture-0-10528-1 queueBuffer: fps=2.00 dur=1001.38 max=911.34 min=90.04
I/Counters(10528): exceeded sample count in FrameTime
D/Surface (10528): lockHardwareCanvas
I/Counters(10528): exceeded sample count in FrameTime
D/Surface (10528): lockHardwareCanvas
I/BufferQueueProducer(10528): SurfaceTexture-0-10528-0 queueBuffer: fps=1.60 dur=1876.33 max=898.45 min=100.96
I/Counters(10528): exceeded sample count in FrameTime

@felipeparente
Copy link
Author

This issue persist.
Has Any update?

@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e: device-specific Only manifests on certain devices p: maps Google Maps plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team
Projects
None yet
Development

No branches or pull requests

5 participants