[TIMOB-2008] Android - filesystem test generates leak warning (intermittent)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-05-02T20:10:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | Android |
Labels | android, defect, filesystem, kitchensink, leak |
Reporter | Thomas Huelbert |
Assignee | Eric Merriman |
Created | 2011-04-15T03:07:57.000+0000 |
Updated | 2017-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
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
Error From Log
Full Log
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.
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.