Skip to content

[Bug]: No view found crash #451

@Fares-fa

Description

@Fares-fa

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

If you try to use the GoogleMapViewController to add, remove, or clear anything—such as markers, polylines, or animating the camera—when there is no map view, the app crashes instead of throwing an exception.

I understand it’s not correct to perform these actions when the map is not shown (no view ID), but crashing the app is bad behavior.

Flutter version

3.32.2

Package version

0.6.4

Native SDK versions

  • I haven't changed the version of the native SDKs

Flutter Doctor Output

√] Flutter (Channel stable, 3.32.2, on Microsoft Windows [Version 10.0.19045.6216], locale en-US)
[√] Windows Version (10 Enterprise 64-bit, 22H2, 2009)
[√] Android Studio (version 2024.3)
[√] Connected device (3 available)
[√] Network resources

Steps to reproduce

If you try to use the GoogleMapViewController to add, remove, or clear anything—such as markers, polylines, or animating the camera—when there is no map view, the app crashes instead of throwing an exception.

I understand it’s not correct to perform these actions when the map is not shown (no view ID), but crashing the app is bad behavior.

Code Sample

// Example code here

Additional Context

No response

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions