AppD Archive

Android SDK Cursor Finalizing Issue

CommunityUser
Splunk Employee
Splunk Employee

After integrating the AppDynamics Android SDK, I noticed a StrictMode error that began to show up in logcat output when we were testing.  I'm not sure where to report it, so I'm adding it here.  It would be ideal if this was fixed so that it wouldn't show up as a false positive error for us.  Since I'm not familiar with what your code is doing, it's not clear whether or not it indicates there's a bug in the SDK code, but it might.

11-11 09:57:58.987 6041-6050/? E/StrictMode﹕ Finalizing a Cursor that has not been deactivated or closed. database = /data/data/<app_package>/databases/com.appdynamics.eumagent.runtime.db, table = metrics, query = SELECT * FROM metrics
android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
at android.database.sqlite.SQLiteCursor.<init>(SQLiteCursor.java:98)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:50)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1430)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1277)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1148)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1316)
at com.appdynamics.eumagent.runtime.b.a.a(MetricDataSource.java:116)
at com.appdynamics.eumagent.runtime.as.a(MetricPersistence.java:43)
at com.appdynamics.eumagent.runtime.at.c(MetricQueue.java:77)
at com.appdynamics.eumagent.runtime.an.run(MetricCollector.java:84)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...