You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2012/08/31 18:44:07 UTC

[jira] [Created] (CB-1358) Getting Force Close in incoming Cal while recording the Audio?

Simon MacDonald created CB-1358:
-----------------------------------

             Summary: Getting Force Close in incoming Cal while recording the Audio?
                 Key: CB-1358
                 URL: https://issues.apache.org/jira/browse/CB-1358
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.0.0, 1.9.0
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald
            Priority: Critical
             Fix For: 2.1.0


Hi am developing the Application in android phonegap,am getting force close in recording the audio while incoming cal is received.i attached the log cat error message
08-31 10:39:35.387 I/RT      (664): AUDIO: Incoming call
08-31 10:39:35.397 I/Device  (969): Telephone RINGING
08-31 10:39:35.397 D/DroidGap(969): onMessage(telephone,ringing)
08-31 10:39:35.397 D/AndroidRuntime(969): Shutting down VM
08-31 10:39:35.397 W/dalvikvm(969): threadid=1: thread exiting with uncaught exception (group=0x2aac8578)
08-31 10:39:35.437 W/PhoneApp(355): Failed to unregister mScreenReceiver: java.lang.IllegalArgumentException: Receiver not registered: com.android.phone.PhoneApp$1@2afe5578
08-31 10:39:35.437 E/AndroidRuntime(969): FATAL EXCEPTION: main
08-31 10:39:35.437 E/AndroidRuntime(969): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.PHONE_STATE flg=0x20000000 (has extras) } in org.apache.cordova.Device$1@2afdced8
08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Handler.handleCallback(Handler.java:587)
08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Handler.dispatchMessage(Handler.java:92)
08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Looper.loop(Looper.java:130)
08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.ActivityThread.main(ActivityThread.java:3701)
08-31 10:39:35.437 E/AndroidRuntime(969): at java.lang.reflect.Method.invokeNative(Native Method)
08-31 10:39:35.437 E/AndroidRuntime(969): at java.lang.reflect.Method.invoke(Method.java:507)
08-31 10:39:35.437 E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
08-31 10:39:35.437 E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
08-31 10:39:35.437 E/AndroidRuntime(969): at dalvik.system.NativeStart.main(Native Method)
08-31 10:39:35.437 E/AndroidRuntime(969): Caused by: java.lang.NullPointerException
08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.AudioPlayer.pausePlaying(AudioPlayer.java:282)
08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.AudioHandler.onMessage(AudioHandler.java:154)
08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.api.PluginManager.postMessage(PluginManager.java:326)
08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:469)
08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.Device$1.onReceive(Device.java:140)
08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
08-31 10:39:35.437 E/AndroidRuntime(969): ... 9 more

--
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

[jira] [Resolved] (CB-1358) Getting Force Close in incoming Cal while recording the Audio?

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-1358.
---------------------------------

    Resolution: Fixed

I've fixed the issue by guarding against the null player value when onResume/onPause are called in the Media plugin.
                
> Getting Force Close in incoming Cal while recording the Audio?
> --------------------------------------------------------------
>
>                 Key: CB-1358
>                 URL: https://issues.apache.org/jira/browse/CB-1358
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> Hi am developing the Application in android phonegap,am getting force close in recording the audio while incoming cal is received.i attached the log cat error message
> 08-31 10:39:35.387 I/RT      (664): AUDIO: Incoming call
> 08-31 10:39:35.397 I/Device  (969): Telephone RINGING
> 08-31 10:39:35.397 D/DroidGap(969): onMessage(telephone,ringing)
> 08-31 10:39:35.397 D/AndroidRuntime(969): Shutting down VM
> 08-31 10:39:35.397 W/dalvikvm(969): threadid=1: thread exiting with uncaught exception (group=0x2aac8578)
> 08-31 10:39:35.437 W/PhoneApp(355): Failed to unregister mScreenReceiver: java.lang.IllegalArgumentException: Receiver not registered: com.android.phone.PhoneApp$1@2afe5578
> 08-31 10:39:35.437 E/AndroidRuntime(969): FATAL EXCEPTION: main
> 08-31 10:39:35.437 E/AndroidRuntime(969): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.PHONE_STATE flg=0x20000000 (has extras) } in org.apache.cordova.Device$1@2afdced8
> 08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Handler.handleCallback(Handler.java:587)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Handler.dispatchMessage(Handler.java:92)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at android.os.Looper.loop(Looper.java:130)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.ActivityThread.main(ActivityThread.java:3701)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at java.lang.reflect.Method.invokeNative(Native Method)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at java.lang.reflect.Method.invoke(Method.java:507)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at dalvik.system.NativeStart.main(Native Method)
> 08-31 10:39:35.437 E/AndroidRuntime(969): Caused by: java.lang.NullPointerException
> 08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.AudioPlayer.pausePlaying(AudioPlayer.java:282)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.AudioHandler.onMessage(AudioHandler.java:154)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.api.PluginManager.postMessage(PluginManager.java:326)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:469)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at org.apache.cordova.Device$1.onReceive(Device.java:140)
> 08-31 10:39:35.437 E/AndroidRuntime(969): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
> 08-31 10:39:35.437 E/AndroidRuntime(969): ... 9 more

--
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