mattshobe / flightmap

Automatically exported from code.google.com/p/flightmap
Apache License 2.0
0 stars 0 forks source link

SQLiteDatabase created and never closed #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I just got this when trying to launch FlightMap from Eclipse to the emulator. A 
previous version was running in the emulator when I did this (which is what I 
normally do).

I can't get the problem to repeat, so not sure if it's a false alarm or a real 
problem that's just intermittent.

08-23 11:16:45.978: ERROR/Database(401): Leak found
08-23 11:16:45.978: ERROR/Database(401): java.lang.IllegalStateException: 
/sdcard/com.google.flightmap/aviation.db SQLiteDatabase created and never closed
08-23 11:16:45.978: ERROR/Database(401):     at 
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1695)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.AndroidAviationDbAdapter.open(AndroidAviationDbAdap
ter.java:122)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.common.CachedAviationDbAdapter.open(CachedAviationDbAdapter
.java:43)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.common.CustomGridAirportDirectory.open(CustomGridAirportDir
ectory.java:21)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.FlightMap.initializeApplication(FlightMap.java:207)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.FlightMap.downloadDatabaseDone(FlightMap.java:197)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.FlightMap.access$3(FlightMap.java:195)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.FlightMap$3.hasCompleted(FlightMap.java:182)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.FileUpdaterTask.onPostExecute(FileUpdaterTask.java:
70)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.google.flightmap.android.FileUpdaterTask.onPostExecute(FileUpdaterTask.java:
1)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.os.AsyncTask.finish(AsyncTask.java:417)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.os.AsyncTask.access$300(AsyncTask.java:127)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.os.Looper.loop(Looper.java:123)
08-23 11:16:45.978: ERROR/Database(401):     at 
android.app.ActivityThread.main(ActivityThread.java:4363)
08-23 11:16:45.978: ERROR/Database(401):     at 
java.lang.reflect.Method.invokeNative(Native Method)
08-23 11:16:45.978: ERROR/Database(401):     at 
java.lang.reflect.Method.invoke(Method.java:521)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
08-23 11:16:45.978: ERROR/Database(401):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
08-23 11:16:45.978: ERROR/Database(401):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by aristi...@google.com on 23 Aug 2010 at 6:33

GoogleCodeExporter commented 9 years ago
FYI - I've seen this a few more times. I think it only happens when I'm 
debugging and have to force close or terminate the application.

Original comment by ph...@google.com on 1 Sep 2010 at 9:04