Skip to content

[google_maps_flutter] Flaky crashes in Android integration tests: Trying to call onSurfaceCreated with no current context #159731

@stuartmorgan-g

Description

@stuartmorgan-g

I'm seeing a fair amount of flake in the roller (example failure) when running google_maps_flutter_android integration tests, with the following error:

Fatal AndroidRuntime Exception detected.
     FATAL EXCEPTION: GL-Map
Process: io.flutter.plugins.googlemapsexample, PID: 22437
java.lang.IllegalStateException: Trying to call onSurfaceCreated with no current context
	at m.foj.l(:com.google.android.gms.policy_maps_core_dynamite@[email protected]:10)
	at m.ewb.run(:com.google.android.gms.policy_maps_core_dynamite@[email protected]:754)

Based on https://issuetracker.google.com/issues/339141097 it appears that this is an SDK issue rather than a plugin issue, so this is probably not currently actionable. However, I wanted to file this for tracking so that gardeners know that this is a known and tracked issue, and so that we have a place to check back for updates so that, e.g., we can update our library version if necessary once a fix is in the SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: flakeTests that sometimes, but not always, incorrectly passp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions