Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2936

Fatal signal Crash on PlayAudio

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 2.5.0
    • None
    • cordova-android, cordova-js
    • None
    • Sony Xperia Tablet Z

    Description

      On Sony Xperia Tablet Z, playing audio would crash after 2-3 seconds of playback. Here is the error log I get from the console:

      04-07 17:34:01.220: D/dalvikvm(14639): GC_CONCURRENT freed 64K, 2% free 11807K/12039K, paused 1ms+2ms
      04-07 17:34:03.230: D/AudioPlayer(14639): Send a onStatus update for the new seek
      04-07 17:34:03.610: A/libc(14639): Fatal signal 11 (SIGSEGV) at 0x00000016 (code=1)

      I tried 2 versions of MP3 (48kbps and 128kbps) files but it would still crash.

      Here is my javascript code

       
      function playAudio(src) {
       if(my_media){ stopAudio(); }
        my_media = new Media(src, onSuccess, onError);
        my_media.play();
       }
      }
      
      function stopAudio() {
        my_media.stop();
        my_media.release();
        my_media = null;
      }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bowserj Joey Robert Bowser
            thejae James Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment