googlemaps / googlemaps/android-maps-compose

StrictMode detectDiskReads() causes Google Maps to be extremely laggy and ANRs

Open
#159 3 comments 4 reactions 1 assignee Claimed by @barbeau View on GitHub
priority: p3 type: bug
Dominant language
Kotlin
Stars
1.3k
Forks
181
Avg merge
2d 23h
Merged PRs (30d)
18

Description

Thanks for stopping by to let us know something could be better!

---
**PLEASE READ**

If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/). This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform [support resources page](https://developers.google.com/maps/support/).

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform [issue trackers](https://developers.google.com/maps/support/#issue_tracker).

Check for answers on StackOverflow with the [google-maps](http://stackoverflow.com/questions/tagged/google-maps) tag.

---

Please be sure to include as much information as possible:

#### Environment details

Library version: Tested with Maps Compose 1.2.0 and 2.2.1

#### Steps to reproduce

1. Enable detect disk reads in StrictMode (see code example)

#### Code example

```
StrictMode.setThreadPolicy(
ThreadPolicy.Builder()
.detectDiskReads()
.build()
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.