You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Alex (JIRA)" <ji...@apache.org> on 2012/07/27 10:07:34 UTC

[jira] [Created] (CB-1147) PhoneGap 2.0 crashing taking pictures with minimal example

Alex created CB-1147:
------------------------

             Summary: PhoneGap 2.0 crashing taking pictures with minimal example
                 Key: CB-1147
                 URL: https://issues.apache.org/jira/browse/CB-1147
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.0.0
         Environment: Android 4.0.3 in Samsung Galaxy S2
            Reporter: Alex
            Assignee: Joe Bowser
            Priority: Blocker


New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html exactly as shown in example of getPicture of:
http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html#camera.getPicture

I take the picture, I press "Save", and the program crashes. It does not show the typical "xxxxx has crashed", it just goes directly to my Android home page.

Complete Logcat (since the program is started until it "crashes")
http://pastebin.com/nLUitcs4

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with no picture taken.

If I click again in "Capture Photo" button, the logcat shows this:
http://pastebin.com/Tgm4iQRa



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423751#comment-13423751 ] 

Alex commented on CB-1147:
--------------------------

Changing to Phonegap 1.9.0 (js and jar), it works in all phones tested
                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423751#comment-13423751 ] 

Alex edited comment on CB-1147 at 7/27/12 9:20 AM:
---------------------------------------------------

Changing to Phonegap 1.9.0 (js and jar), it does not work ...

But I found the problem !!!!

In AndroidManifest.xml I remove this:

        android:targetSdkVersion="15"

and it worked

Now I have just this:

    <uses-sdk
        android:minSdkVersion="10" />

                
      was (Author: dantart):
    Changing to Phonegap 1.9.0 (js and jar), it works in all phones tested
                  
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

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

Alex updated CB-1147:
---------------------

    Description: 
New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html of "Hello world"

I put the mobile in horizontal, and it "crashes".

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".

Logcat shows this:


07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)


  was:
New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html of "Hello world"

I put the mobile in horizontal, and it "crashes".

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".

Logcat shows this:


07-27 10:14:55.806: E/ActivityThread(16105): Activity com.klikin.streetmapping.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.klikin.streetmapping.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)



    
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

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

Joe Bowser updated CB-1147:
---------------------------

         Priority: Critical  (was: Blocker)
    Fix Version/s: 2.1.0

This isn't a blocker, but it is critical.  I don't get that logcat on the Galaxy Nexus 4.1.1.  Which device produces this?
                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

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

Alex updated CB-1147:
---------------------

    Environment: 
Android 4.0.3 in Samsung Galaxy S2
Android 4.1.1 in Galaxy Nexus
Android 4.0.3 in LG L5

  was:
Android 4.0.3 in Samsung Galaxy S2
Android 4.1.1 in Galaxy Nexus

    
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423955#comment-13423955 ] 

Joe Bowser edited comment on CB-1147 at 7/27/12 4:41 PM:
---------------------------------------------------------

This isn't a blocker, but it is critical.  I don't get that logcat on the Galaxy Nexus 4.1.1, but I do get the bug.  Which device produces the logcat message?
                
      was (Author: bowserj):
    This isn't a blocker, but it is critical.  I don't get that logcat on the Galaxy Nexus 4.1.1.  Which device produces this?
                  
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

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

Joe Bowser resolved CB-1147.
----------------------------

    Resolution: Not A Problem

OK, so there's not a JIRA setting for "Google released a bunch of extra configChange bullshit and didn't tell anyone".  To fix this add the following to androidManifest:configChanges.

{code}
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
{/code}

The reason for this is that the orientation fires a screenSize change event, which calls onPause, which then closes the app.  The crashing is concerning, because it means that the app isn't closing fast enough to unregister all the receivers, but it wasn't supposed to close on orientation change in the first place.

BTW: I had to go into the Android source and find the Browser's Android Manifest to fix this. At least when it's open source and broken, you get to keep both pieces.
                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423766#comment-13423766 ] 

Alex commented on CB-1147:
--------------------------

Yes, it was that ...

Take care ... if you upgrade the Eclipse and ADT plugin, in the new android application wizard process, in the AndroidManifest it's added the android:targetSdkVersion parameter, that makes crash the app when rotating the phone.
                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423741#comment-13423741 ] 

Alex commented on CB-1147:
--------------------------

It works in Geeksphone Zero with Android Cyanogen Mod 7 (2.3.7)
                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

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

Alex updated CB-1147:
---------------------

    Description: 
New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html of "Hello world"

I put the mobile in horizontal, and it "crashes".

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".


  was:
New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html exactly as shown in example of getPicture of:
http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html#camera.getPicture

I take the picture, I press "Save", and the program crashes. It does not show the typical "xxxxx has crashed", it just goes directly to my Android home page.

Complete Logcat (since the program is started until it "crashes")
http://pastebin.com/nLUitcs4

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with no picture taken.

If I click again in "Capture Photo" button, the logcat shows this:
http://pastebin.com/Tgm4iQRa



        Summary: PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample  (was: PhoneGap 2.0 crashing taking pictures with minimal example)
    
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424061#comment-13424061 ] 

Alex commented on CB-1147:
--------------------------

With no doubt the best part is "... extra configChange bullshit and didn't tell anyone"

:D

Nice work, THANK YOU 

I hope phonegap guys update asap the "Getting started guide"

                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423977#comment-13423977 ] 

Joe Bowser edited comment on CB-1147 at 7/27/12 5:09 PM:
---------------------------------------------------------

OK, so there's not a JIRA setting for "Google released a bunch of extra configChange bullshit and didn't tell anyone".  To fix this add the following to androidManifest:configChanges.

{code}
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
{code}

The reason for this is that the orientation fires a screenSize change event, which calls onPause, which then closes the app.  The crashing is concerning, because it means that the app isn't closing fast enough to unregister all the receivers, but it wasn't supposed to close on orientation change in the first place.

BTW: I had to go into the Android source and find the Browser's Android Manifest to fix this. At least when it's open source and broken, you get to keep both pieces.
                
      was (Author: bowserj):
    OK, so there's not a JIRA setting for "Google released a bunch of extra configChange bullshit and didn't tell anyone".  To fix this add the following to androidManifest:configChanges.

{code}
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
{/code}

The reason for this is that the orientation fires a screenSize change event, which calls onPause, which then closes the app.  The crashing is concerning, because it means that the app isn't closing fast enough to unregister all the receivers, but it wasn't supposed to close on orientation change in the first place.

BTW: I had to go into the Android source and find the Browser's Android Manifest to fix this. At least when it's open source and broken, you get to keep both pieces.
                  
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423741#comment-13423741 ] 

Alex edited comment on CB-1147 at 7/27/12 8:33 AM:
---------------------------------------------------

Surprisingly, it works in Geeksphone Zero with Android Cyanogen Mod 7 (2.3.7)
                
      was (Author: dantart):
    It works in Geeksphone Zero with Android Cyanogen Mod 7 (2.3.7)
                  
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

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

Alex updated CB-1147:
---------------------

    Description: 
New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html of "Hello world"

I put the mobile in horizontal, and it "crashes".

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".

Logcat shows this:


07-27 10:14:55.806: E/ActivityThread(16105): Activity com.klikin.streetmapping.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.klikin.streetmapping.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)



  was:
New project exactly as said in:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

index.html of "Hello world"

I put the mobile in horizontal, and it "crashes".

I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.

The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".


    Environment: 
Android 4.0.3 in Samsung Galaxy S2
Android 4.1.1 in Galaxy Nexus

  was:Android 4.0.3 in Samsung Galaxy S2

    
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.klikin.streetmapping.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.klikin.streetmapping.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1147) PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample

Posted by "Michael Brooks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424119#comment-13424119 ] 

Michael Brooks commented on CB-1147:
------------------------------------

Good suggestion [~dantart]. I've created #CB-1152 to update the Android Getting Started Guide.
                
> PhoneGap 2.0 "crashing" moving mobile to horizontal with "Hello World" sample
> -----------------------------------------------------------------------------
>
>                 Key: CB-1147
>                 URL: https://issues.apache.org/jira/browse/CB-1147
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Android 4.0.3 in Samsung Galaxy S2
> Android 4.1.1 in Galaxy Nexus
> Android 4.0.3 in LG L5
>            Reporter: Alex
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> New project exactly as said in:
> http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
> index.html of "Hello world"
> I put the mobile in horizontal, and it "crashes".
> I put "Crashes" between quotes because, as I said, there's no "crash" alert message, it just go to Android Home page.
> The program is still in memory, if I put in foreground the program again, I just see the index.html with the "Hello world".
> Logcat shows this:
> 07-27 10:14:55.806: E/ActivityThread(16105): Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): android.app.IntentReceiverLeaked: Activity com.myapp.MainActivity has leaked IntentReceiver org.apache.cordova.Device$1@4176d570 that was originally registered here. Are you missing a call to unregisterReceiver()?
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:792)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:593)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1111)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1098)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1092)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:365)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.initTelephonyReceiver(Device.java:156)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.Device.setContext(Device.java:62)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:81)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:255)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.api.PluginManager.exec(PluginManager.java:182)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:207)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.os.Looper.loop(Looper.java:137)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invokeNative(Native Method)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at java.lang.reflect.Method.invoke(Method.java:511)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-27 10:14:55.806: E/ActivityThread(16105): 	at dalvik.system.NativeStart.main(Native Method)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira