Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2008

Android - filesystem test generates leak warning (intermittent)

    Details

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              thomashuelbert Thomas Huelbert
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1781
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration