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

iOS: playing local file in AudioPlayer results in crash

    Details

    • Story Points:
      4
    • Sprint:
      2014 Sprint 24 SDK

      Description

      Calling start() or play() on an AudioPlayer that has the url set to a local file results in a crash:

      [DEBUG] :  Application booted in 146.823049 ms
      [DEBUG] :  -[__NSCFDictionary close]: unrecognized selector sent to instance 0x14ebef40
      [ERROR] :  The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
      [ERROR] :  Reason:
      [ERROR] :  -[__NSCFDictionary close]: unrecognized selector sent to instance 0x14ebef40
      [ERROR] :  Stack trace:
      [ERROR] :  
      [ERROR] :  0   CoreFoundation                      0x26068c1f <redacted> + 126
      [ERROR] :  1   libobjc.A.dylib                     0x33870c8b objc_exception_throw + 38
      [ERROR] :  2   CoreFoundation                      0x2606e039 <redacted> + 0
      [ERROR] :  3   CoreFoundation                      0x2606bf57 <redacted> + 714
      [ERROR] :  4   CoreFoundation                      0x25f9ddf8 _CF_forwarding_prep_0 + 24
      [ERROR] :  5   MediaModule                         0x0022316b MediaModule + 1692011
      [ERROR] :  6   Foundation                          0x26d77b5b <redacted> + 1118
      [ERROR] :  7   libsystem_pthread.dylib             0x33f33e93 <redacted> + 138
      [ERROR] :  8   libsystem_pthread.dylib             0x33f33e07 _pthread_start + 118
      [ERROR] :  9   libsystem_pthread.dylib             0x33f31b90 thread_start + 8
      [ERROR] :  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary close]: unrecognized selector sent to instance 0x14ebef40'
      [ERROR] :  *** First throw call stack:
      [ERROR] :  (0x26068c1f 0x33870c8b 0x2606e039 0x2606bf57 0x25f9ddf8 0x22316b 0x26d77b5b 0x33f33e93 0x33f33e07 0x33f31b90)
      

      Steps to reproduce issue:
      1. Create a project with the attached files
      2. Launch the app on an iOS device and click 'play'
      3. Notice that the app crashes, occasionally with the above error

      Expected results:
      The local file is played properly or no crash is witnessed if the file/method is unsupported.

      Notes:
      snippet for reference:

      var audioPlayer = Ti.Media.createAudioPlayer({
      	url : 'toddle.mp3'
      });
      var but = Ti.UI.createButton({
      	title : 'Play',
      	top : 20,
      });
      but.addEventListener('click', function(e) {
      	audioPlayer.start();
      	alert(" Playing !!");
      });
      

        Attachments

          Activity

            People

            • Assignee:
              cng Chee Kiat Ng (Inactive)
              Reporter:
              ewieber Eric Wieber (Inactive)
              Reviewer:
              Jon Alter
              Tester:
              Khushbu Agrawal
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration