SQLiteConnection databases leak when running emulator
Asked Answered
C

2

11

I was running the emulator and received the following errors about memory leak. It was interesting that the leaking database seems to be of the Google gms instead of a user database. Does anyone know how to fix it? Thanks!

09-27 15:55:07.252 2058-2068/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/metrics.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.

09-27 15:55:07.255 2058-2068/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/help_responses.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.

09-27 15:55:07.259 2058-2068/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
Collative answered 27/9, 2016 at 22:3 Comment(1)
Looks like an error in com.google.android.gms code...Alexia
A
15

Open Settings - Apps - Google Play Services - MANAGE SPACE - CLEAR ALL DATA

Airlift answered 27/9, 2016 at 23:52 Comment(1)
Just a note, you might have to look around a bit on different emulators. I found this under ...Google Play Services > Settings > MANAGE SPACE... on a Nexus 5X emulator.Amenra
A
0

It's probably because you aren't using the disconnect() method of your GoogleApiClient

See here for more.

Anastasia answered 20/7, 2017 at 14:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.