Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2008] Android - filesystem test generates leak warning (intermittent)

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2017-05-02T20:10:58.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, defect, filesystem, kitchensink, leak
ReporterThomas Huelbert
AssigneeEric Merriman
Created2011-04-15T03:07:57.000+0000
Updated2017-05-02T21:10:58.000+0000

Description

1.4.2.4ce7ff G1 running 1.6. saw it twice on the device, never in sim

1.Platform>FileSystem (view output)
results:

I/ActivityManager( 76): Starting activity: Intent { cmp=com.appcelerator.KitchenSink/org.appcelerator.titanium.TiActivity (has extras) }
D/TiActivity( 438): (main) [3391,809721] Activity onPause
D/TiActivity( 438): (main) [34,809755] Activity onCreate
D/TiActivity( 438): (main) [27,809782] Activity onStart
D/TiActivity( 438): (main) [1,809783] Activity onResume
W/TiActivity( 438): (main) [10,809793] Notifying TiUIWindow, activity is created
I/ActivityManager( 76): Displayed activity com.appcelerator.KitchenSink/org.appcelerator.titanium.TiActivity: 122 ms (total 122 ms)
D/KrollContext( 438): (kroll$95) [116,809909] eval file: app://examples/filesystem.js
D/TiActivity( 438): (main) [4,809913] Activity onStop
I/TiAPI ( 438): (kroll$95) [175,810088] Resources Directory :app://
I/TiAPI ( 438): (kroll$95) [5,810093] Temp Directory :null
I/TiAPI ( 438): (kroll$95) [5,810098] Application Directory :null
I/TiAPI ( 438): (kroll$95) [5,810103] Application Data Directory :appdata-private://
I/TiAPI ( 438): (kroll$95) [5,810108] Application Support Directory :null
I/TiAPI ( 438): (kroll$95) [5,810113] External Storage Available :null
I/TiAPI ( 438): (kroll$95) [4,810117] Separator :/
I/TiAPI ( 438): (kroll$95) [6,810123] Line Ending :
D/dalvikvm( 438): GC freed 31313 objects / 2153568 bytes in 346ms
I/TiAPI ( 438): (kroll$95) [359,810482] file = [object TiFile]
I/TiAPI ( 438): (kroll$95) [31,810513] contents blob object = Hello World. this is a filesystem read test.
I/TiAPI ( 438): (kroll$95) [53,810566] contents = Hello World. this is a filesystem read test.
I/TiAPI ( 438): (kroll$95) [8,810574] mime type = application/octet-stream
I/TiAPI ( 438): (kroll$95) [14,810588] nativePath = file:///android_asset/Resources/text.txt
I/TiAPI ( 438): (kroll$95) [34,810622] exists = true
I/TiAPI ( 438): (kroll$95) [6,810628] size = 44
I/TiAPI ( 438): (kroll$95) [6,810634] readonly = true
I/TiAPI ( 438): (kroll$95) [10,810644] symbolicLink = false
I/TiAPI ( 438): (kroll$95) [12,810656] executable = false
I/TiAPI ( 438): (kroll$95) [23,810679] hidden = false
E/Database( 438): Leak found
E/Database( 438): java.lang.IllegalStateException: /data/data/com.appcelerator.KitchenSink/databases/quotes SQLiteDatabase created and never closed
E/Database( 438): at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1581)
E/Database( 438): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
E/Database( 438): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:659)
E/Database( 438): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:652)
E/Database( 438): at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:482)
E/Database( 438): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
E/Database( 438): at ti.modules.titanium.database.DatabaseModule.open(DatabaseModule.java:41)
E/Database( 438): at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:102)
E/Database( 438): at java.lang.reflect.Method.invokeNative(Native Method)
E/Database( 438): at java.lang.reflect.Method.invoke(Method.java:521)
E/Database( 438): at org.appcelerator.titanium.kroll.KrollMethod.call(KrollMethod.java:84)
E/Database( 438): at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
E/Database( 438): at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
E/Database( 438): at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
E/Database( 438): at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
E/Database( 438): at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
E/Database( 438): at org.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
E/Database( 438): at org.mozilla.javascript.Context.evaluateReader(Unknown Source)
E/Database( 438): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:159)
E/Database( 438): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:101)
E/Database( 438): at android.os.Handler.dispatchMessage(Handler.java:95)
E/Database( 438): at android.os.Looper.loop(Looper.java:123)
E/Database( 438): at android.os.HandlerThread.run(HandlerThread.java:60)
I/TiAPI ( 438): (kroll$95) [16,810695] writeable = null
I/TiAPI ( 438): (kroll$95) [5,810700] name = text.txt
I/TiAPI ( 438): (kroll$95) [12,810712] extension = txt
I/TiAPI ( 438): (kroll$95) [10,810722] resolve = file:///android_asset/Resources/text.txt
I/TiAPI ( 438): (kroll$95) [135,810857] directoryListing = app.js,appicon.png,comic_zine_ot.otf,cricket.wav,default.png,default_app_logo.png,echo.js,examples,images,jquery-1.3.2.js,main_windows,movie.mp4,my_js_include.js,my_js_include_2.js,paradise_lost.txt,params.js,pop.caf,test.css,testdb.db,text.txt,todo.js,welcome.js
W/TiBaseFile( 438): (kroll$95) [13,810870] Method is not supported org.appcelerator.titanium.io.TiResourceFile : getParent
I/TiAPI ( 438): (kroll$95) [2,810872] getParent = null
I/TiAPI ( 438): (kroll$95) [4,810876] spaceAvailable = 0
I/TiAPI ( 438): (kroll$95) [90,810966] Created mydir: true
I/TiAPI ( 438): (kroll$95) [2,810968] newdir [object TiFile]
I/global ( 438): Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer is required.
I/TiAPI ( 438): (kroll$95) [298,811266] directoryListing for newDir = newfile.txt
I/TiAPI ( 438): (kroll$95) [10,811276] newfile.txt created: Tue Oct 05 2010 11:48:05 GMT-0700 (PDT)
I/TiAPI ( 438): (kroll$95) [8,811284] newfile.txt modified: Tue Oct 05 2010 11:48:05 GMT-0700 (PDT)
I/TiAPI ( 438): (kroll$95) [208,811492] newfile.txt deleted: true
I/TiAPI ( 438): (kroll$95) [208,811700] mydir deleted: true
I/TiAPI ( 438): (kroll$95) [3,811703] directoryListing for newDir after deleteDirectory =
I/TiAPI ( 438): (kroll$95) [73,811776] external directoryListing = dcim,org.appcelerator.tidev,test.jpg,cricket.wav,download,logo.gif,.Trashes,movie2.3gp,._.Trashes,.fseventsd,LOST.DIR,Ti.debug,com.appcelerator.KitchenSink
I/TiAPI ( 438): (kroll$95) [34,811810] app.js exists? true
I/TiAPI ( 438): (kroll$95) [8,811818] app.js size? 44

Comments

  1. Don Thorp 2011-04-15

    Assigning back so the test can be examined.

    This is a kitchen sink problem. The reproduction sequence is.

    1) Run KS > Platform > Database
    2) Click "Pre-packaged Database"
    3) Back all the way out of the app and wait a few seconds for the finalizer to run.

    Warning from Android OS from the log

       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193): Releasing statement in a finalizer. Please ensure that you explicitly call close() on your cursor: SELECT * FROM TIPS
       

    Error From Log

       0-05 17:41:13.522: ERROR/Database(1193): close() was never explicitly called on database '/data/data/org.appcelerator.kitchensink/databases/quotes' 
       10-05 17:41:13.522: ERROR/Database(1193): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
       

    Full Log

       10-05 17:40:56.491: INFO/ActivityManager(60): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.appcelerator.kitchensink/.KitchenSinkActivity bnds=[3,240][77,319] }
       10-05 17:40:56.943: INFO/Log(1193): (main) [0,0] checkpoint, on root activity create.
       10-05 17:40:56.962: ERROR/TiRootActivity(1193): (main) [17,17] Instance Count: 0
       10-05 17:40:57.312: INFO/TiRootActivity(1193): (Thread-34) [352,369] eval app.js
       10-05 17:40:57.312: DEBUG/KrollContext(1193): (kroll$12) [5,374] eval file: app://app.js
       10-05 17:40:57.362: ERROR/ROOT(1193): (main) [42,416] Leaving TiRootActivity.onCreate
       10-05 17:40:57.362: INFO/Log(1193): (main) [1,1] checkpoint, on root activity resume.
       10-05 17:40:57.681: INFO/ActivityManager(60): Displayed activity org.appcelerator.kitchensink/.KitchenSinkActivity: 768 ms (total 768 ms)
       10-05 17:40:58.042: INFO/TabGroupProxy(1193): (main) [679,680] handleOpen
       10-05 17:40:58.042: INFO/ActivityManager(60): Starting activity: Intent { cmp=org.appcelerator.kitchensink/ti.modules.titanium.ui.TiTabActivity (has extras) }
       10-05 17:40:58.132: WARN/TiTabActivity(1193): (main) [97,777] Notifying TiTabGroup, activity is created
       10-05 17:40:58.192: ERROR/TiApplication(1193): (kroll$12) [57,834] APP PROXY: ti.modules.titanium.app.AppModule@45091388
       10-05 17:40:58.412: DEBUG/KrollContext(1193): (kroll$12) [219,1053] eval file: file:///android_asset/Resources/welcome.js
       10-05 17:40:58.442: WARN/TiActivity(1193): (main) [27,1080] Notifying TiUIWindow, activity is created
       10-05 17:40:58.442: WARN/TiActivity(1193): (main) [4,1084] Notifying TiUIWindow, activity is created
       10-05 17:40:58.551: INFO/ActivityManager(60): Displayed activity org.appcelerator.kitchensink/ti.modules.titanium.ui.TiTabActivity: 458 ms (total 458 ms)
       10-05 17:40:58.772: DEBUG/KrollContext(1193): (kroll$13) [329,1413] eval file: app://main_windows/base_ui.js
       10-05 17:40:58.862: DEBUG/KrollContext(1193): (kroll$14) [93,1506] eval file: app://main_windows/controls.js
       10-05 17:40:59.082: INFO/TiAPI(1193): (kroll$12) [220,1726] Welcome to Kitchen Sink for Titanium/1.1.0
       10-05 17:40:59.101: DEBUG/TiAPI(1193): (kroll$12) [15,1741] user agent set to Dalvik/1.2.0 (Linux; U; Android 2.2; google_sdk Build/FRF91) Titanium/1.1.0
       10-05 17:40:59.202: DEBUG/TiUIView(1193): (main) [99,1840] starting animation: android.view.animation.AnimationSet@44ff55b8
       10-05 17:40:59.332: INFO/TiAPI(1193): (kroll$12) [132,1972] tab blur - new index 0 old index -1
       10-05 17:40:59.511: INFO/TiAPI(1193): (kroll$13) [184,2156] FOCUS RECEIVED IN base_ui
       10-05 17:41:00.312: DEBUG/TitaniumModule(1193): (Timer-2) [797,2953] calling timeout timer 0 @1286318460316
       10-05 17:41:00.312: INFO/TiAPI(1193): (kroll$12) [4,2957] tab Base UI prevTab = no tab
       10-05 17:41:00.382: WARN/TiActivity(1193): (main) [66,3023] Notifying TiUIWindow, activity is created
       10-05 17:41:00.442: DEBUG/KrollContext(1193): (kroll$15) [61,3084] eval file: app://main_windows/platform.js
       10-05 17:41:01.334: DEBUG/TitaniumModule(1193): (Timer-3) [888,3972] calling timeout timer 1 @1286318461335
       10-05 17:41:02.172: INFO/ActivityManager(60): Starting activity: Intent { cmp=org.appcelerator.kitchensink/org.appcelerator.titanium.TiActivity (has extras) }
       10-05 17:41:02.322: WARN/TiActivity(1193): (main) [990,4962] Notifying TiUIWindow, activity is created
       10-05 17:41:02.591: INFO/ActivityManager(60): Displayed activity org.appcelerator.kitchensink/org.appcelerator.titanium.TiActivity: 327 ms (total 327 ms)
       10-05 17:41:02.611: DEBUG/KrollContext(1193): (kroll$16) [295,5257] eval file: app://examples/database.js
       10-05 17:41:03.022: INFO/TiAPI(1193): (kroll$16) [408,5665] JUST INSERTED, rowsAffected = 1
       10-05 17:41:03.032: INFO/TiAPI(1193): (kroll$16) [4,5669] JUST INSERTED, lastInsertRowId = 5
       10-05 17:41:03.052: INFO/TiAPI(1193): (kroll$16) [21,5690] ROW COUNT = 4
       10-05 17:41:03.052: INFO/TiAPI(1193): (kroll$16) [1,5691] ROW COUNT = 4
       10-05 17:41:03.052: INFO/TiAPI(1193): (kroll$16) [3,5694] ROW COUNT = 4
       10-05 17:41:03.072: INFO/TiAPI(1193): (kroll$16) [19,5713] ID: 2 NAME: I was updated too COLUMN NAME ID
       10-05 17:41:03.072: INFO/TiAPI(1193): (kroll$16) [5,5718] ID: 3 NAME: Name 3 COLUMN NAME ID
       10-05 17:41:03.082: INFO/TiAPI(1193): (kroll$16) [6,5724] ID: 4 NAME: I was updated COLUMN NAME ID
       10-05 17:41:03.092: INFO/TiAPI(1193): (kroll$16) [9,5733] ID: 5 NAME: ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ COLUMN NAME ID
       10-05 17:41:04.422: ERROR/TiUIView(1193): (main) [1326,7059] TAP, TAP, TAP
       10-05 17:41:04.492: DEBUG/KrollContext(1193): (kroll$17) [74,7133] eval file: app://examples/database_3.js
       10-05 17:41:04.571: INFO/TiAPI(1193): (kroll$17) [77,7210] A team will always appreciate a great individual if he's willing to sacrifice for the group.
       10-05 17:41:04.571: INFO/TiAPI(1193): Kareem Abdul-Jabbar col 1 title col 2 tip
       10-05 17:41:04.571: INFO/TiAPI(1193): (kroll$17) [4,7214] A professional writer is an amateur who didn't quit.
       10-05 17:41:04.571: INFO/TiAPI(1193): Richard Bach col 1 title col 2 tip
       10-05 17:41:04.581: INFO/TiAPI(1193): (kroll$17) [5,7219] A man who views the world the same at fifty as he did at twenty has wasted thirty years of his life.
       10-05 17:41:04.581: INFO/TiAPI(1193): Muhammad Ali col 1 title col 2 tip
       10-05 17:41:04.581: INFO/TiAPI(1193): (kroll$17) [6,7225] As the poet said, 'Only God can make a tree,' probably because it's so hard to figure out how to get the bark on.
       10-05 17:41:04.581: INFO/TiAPI(1193): Woody Allen col 1 title col 2 tip
       10-05 17:41:04.591: INFO/TiAPI(1193): (kroll$17) [6,7231] American corporations hate to give away money.
       10-05 17:41:04.591: INFO/TiAPI(1193): Stephen Ambrose col 1 title col 2 tip
       10-05 17:41:04.601: INFO/TiAPI(1193): (kroll$17) [12,7243] A lot of artists who have a certain style are expected to more or less keep doing their style. It's so easy to get into that rut of production.
       10-05 17:41:04.601: INFO/TiAPI(1193): Laurie Anderson col 1 title col 2 tip
       10-05 17:41:04.601: INFO/TiAPI(1193): (kroll$17) [3,7246] All men are prepared to accomplish the incredible if their ideals are threatened.
       10-05 17:41:04.601: INFO/TiAPI(1193): Maya Angelou col 1 title col 2 tip
       10-05 17:41:04.611: INFO/TiAPI(1193): (kroll$17) [5,7251] I do not fear computers. I fear the lack of them.
       10-05 17:41:04.611: INFO/TiAPI(1193): Isaac Asimov col 1 title col 2 tip
       10-05 17:41:04.611: INFO/TiAPI(1193): (kroll$17) [6,7257] Be careful what you set your heart upon - for it will surely be yours.
       10-05 17:41:04.611: INFO/TiAPI(1193): James A. Baldwin col 1 title col 2 tip
       10-05 17:41:04.621: INFO/TiAPI(1193): (kroll$17) [6,7263] A nickel ain't worth a dime anymore.
       10-05 17:41:04.621: INFO/TiAPI(1193): Yogi Berra col 1 title col 2 tip
       10-05 17:41:04.631: INFO/TiAPI(1193): (kroll$17) [6,7269] Beware of geeks bearing formulas. 
       10-05 17:41:04.631: INFO/TiAPI(1193): Warren Buffett col 1 title col 2 tip
       10-05 17:41:04.631: INFO/TiAPI(1193): (kroll$17) [7,7276] Always do whatever's next.
       10-05 17:41:04.631: INFO/TiAPI(1193): George Carlin col 1 title col 2 tip
       10-05 17:41:04.651: INFO/TiAPI(1193): (kroll$17) [14,7290] Success is getting what you want. Happiness is wanting what you get.
       10-05 17:41:04.651: INFO/TiAPI(1193): Dale Carnegie col 1 title col 2 tip
       10-05 17:41:04.651: INFO/TiAPI(1193): (kroll$17) [2,7292] Decide that you want it more than you are afraid of it.
       10-05 17:41:04.651: INFO/TiAPI(1193): Bill Cosby col 1 title col 2 tip
       10-05 17:41:04.661: INFO/TiAPI(1193): (kroll$17) [6,7298] All our dreams can come true, if we have the courage to pursue them.
       10-05 17:41:04.661: INFO/TiAPI(1193): Walt Disney col 1 title col 2 tip
       10-05 17:41:04.661: INFO/TiAPI(1193): (kroll$17) [6,7304] Business, that's easily defined - it's other people's money.
       10-05 17:41:04.661: INFO/TiAPI(1193): Peter Drucker col 1 title col 2 tip
       10-05 17:41:04.671: INFO/TiAPI(1193): (kroll$17) [10,7314] wright
       10-05 17:41:04.671: INFO/TiAPI(1193): nolan col 1 title col 2 tip
       10-05 17:41:04.671: INFO/TiAPI(1193): (kroll$17) [4,7318] BAR
       10-05 17:41:04.671: INFO/TiAPI(1193): FOO col 1 title col 2 tip
       10-05 17:41:06.671: WARN/KeyCharacterMap(1193): No keyboard for id 0
       10-05 17:41:06.671: WARN/KeyCharacterMap(1193): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
       10-05 17:41:07.042: ERROR/TiActivity(1193): (main) [2365,9683] Layout cleanup.
       10-05 17:41:08.352: ERROR/TiActivity(1193): (main) [1307,10990] Layout cleanup.
       10-05 17:41:08.352: ERROR/TiActivity(1193): (main) [1,10991] Layout cleanup.
       10-05 17:41:08.352: ERROR/TiActivity(1193): (main) [6,10997] Layout cleanup.
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193): Releasing statement in a finalizer. Please ensure that you explicitly call close() on your cursor: SELECT * FROM TIPS
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:62)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:80)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:46)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1345)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1315)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at ti.modules.titanium.database.TiDatabaseProxy.execute(TiDatabaseProxy.java:84)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at java.lang.reflect.Method.invokeNative(Native Method)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at java.lang.reflect.Method.invoke(Method.java:521)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.appcelerator.titanium.kroll.KrollMethod.call(KrollMethod.java:84)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.mozilla.javascript.Context.evaluateReader(Unknown Source)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:159)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:101)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.os.Handler.dispatchMessage(Handler.java:95)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.os.Looper.loop(Looper.java:123)
       10-05 17:41:13.502: WARN/SQLiteCompiledSql(1193):     at android.os.HandlerThread.run(HandlerThread.java:60)
       10-05 17:41:13.522: ERROR/Database(1193): close() was never explicitly called on database '/data/data/org.appcelerator.kitchensink/databases/quotes' 
       10-05 17:41:13.522: ERROR/Database(1193): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
       10-05 17:41:13.522: ERROR/Database(1193):     at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1810)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:851)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:844)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:540)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
       10-05 17:41:13.522: ERROR/Database(1193):     at ti.modules.titanium.database.DatabaseModule.open(DatabaseModule.java:41)
       10-05 17:41:13.522: ERROR/Database(1193):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:64)
       10-05 17:41:13.522: ERROR/Database(1193):     at java.lang.reflect.Method.invokeNative(Native Method)
       10-05 17:41:13.522: ERROR/Database(1193):     at java.lang.reflect.Method.invoke(Method.java:521)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.appcelerator.titanium.kroll.KrollMethod.call(KrollMethod.java:84)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.mozilla.javascript.Context.evaluateReader(Unknown Source)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:159)
       10-05 17:41:13.522: ERROR/Database(1193):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:101)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.os.Handler.dispatchMessage(Handler.java:95)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.os.Looper.loop(Looper.java:123)
       10-05 17:41:13.522: ERROR/Database(1193):     at android.os.HandlerThread.run(HandlerThread.java:60)
       
  2. Don Thorp 2011-04-15

    Moving out to 1.5.1 setting back to new since it hasn't been worked. This is a KS example problem. VERY low priority.

  3. Lee Morris 2017-05-02

    Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.

JSON Source