Skip to content

MarkerInfoWindowContent: app crashes when clicking on the marker on version 8.4.0 #950

Closed

Description

@dbaroncelli

In the latest version 8.4.0,
when clicking on a MarkerInfoWindowContent, the app crashes.

Environment details

com.google.maps.android:maps-compose version: 8.4.0

Steps to reproduce

Place a MarkerInfoWindowContent in the content of GoogleMap.
When clicking on the marker, the app crashes with this message:

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

Code example

    GoogleMap(
        cameraPositionState = cameraPositionState,
        onMapLoaded = onMapLoaded,
    ) {
        MarkerInfoWindowContent(
            state = singapore3State,
            title = "MarkerInfoWindow",
            icon = BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE),
        ) {
            Column(modifier = Modifier.background(Color.White).padding(5.dp)) {
                Text("Testing", color = Color.Blue, fontWeight = FontWeight.Bold)
                Text(it.title!!, color = Color.Blue)
            }
        }
    }

Activity

  1. added
    type: bug
    triage me
    on Jul 23, 2026
  2. added a commit that references this issue on Aug 6, 2026
    71ab241
  3. added a commit that references this issue on Aug 6, 2026
    12f35a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage metype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions