You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James Wong (JIRA)" <ji...@apache.org> on 2013/04/07 11:49:15 UTC

[jira] [Created] (CB-2936) Fatal signal Crash on PlayAudio

James Wong created CB-2936:
------------------------------

             Summary: Fatal signal Crash on PlayAudio
                 Key: CB-2936
                 URL: https://issues.apache.org/jira/browse/CB-2936
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CordovaJS
    Affects Versions: 2.5.0
         Environment: Sony Xperia Tablet Z
            Reporter: James Wong
            Assignee: Joe Bowser
            Priority: Critical


On Sony Xperia Tablet Z, playAudio would crash after 2-3 seconds of playback. Here is the error log I get from the console:
{quote}
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
{color:red} 04-07 17:34:03.610: A/libc(14639): Fatal signal 11 (SIGSEGV) at 0x00000016 (code=1){color}
{quote}

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

Here is my javascript code

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

function stopAudio() {
 if (my_media) {
  my_media.stop();
  my_media.release();
  my_media = null;
 }
}
{quote}
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira