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

Android: Application crash randomly after selecting picture from gallery

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Android 2.2, Titanium SDK 2.1.2.v20120816171609

      Description

      From time to time (when I select a few photos from the picture gallery or just take a photo, the application is crashing. I'm looking for memory leaks but everything seems to be ok. The crash happens even before calling the success event.

      Here is a sample of the code:

      function chooseAPhoto() {
      Titanium.Media.openPhotoGallery({
       
      success : function(event) {
      if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) { addImage(event.media); }
      },
      cancel : function() {
      },
      error : function(error) {
      },
      allowEditing : false,
      mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO]
      });
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              asztern Ariel Sztern
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration