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

Android: Many calls to getFIle causes local reference table overflow

    Details

    • Sprint:
      Release 3.0.0

      Description

      Many calls to getFile with the application data directory causes the local reference table overflow error. It works fine on android 2.3.4 and 3.1, but on android 4.0.1 and 4.1 it stops after the 504 calls.

      Repo Steps

      1. Run the below code in your app.js
      2. Open the DDMS and you can see that it stops at 504 call and gives the above error.

      var win = Ti.UI.createWindow({
      	backgroundColor : "red"
      })
      for (var i = 0; i < 512; i++) {
       
      	Ti.API.info(i);
      	var dir = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "test");
       
      };
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              nsharma Nikhil Sharma
              Tester:
              Lokesh Choudhary
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration