incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sauvier (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-1029) FileEntry.createWriter() problem on Motorola XOOM w/ Android 4.0.4
Date Wed, 01 Aug 2012 16:22:02 GMT

    [ https://issues.apache.org/jira/browse/CB-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426728#comment-13426728
] 

David Sauvier edited comment on CB-1029 at 8/1/12 4:20 PM:
-----------------------------------------------------------

Ok, so I did some testing without GWT-Phonegap. (See index.html test file attached). I tested
the Motorola Xoom w/ Android 4.0.4 and a Samsung Galaxy Tab with 3.2

On the Samsung Galaxy Tab it works as expected. After loading the App, I'm able to go in and
out of Airplane mode, click the "try-it" button and Log-Cat reports everything operates fine
when in Airplane mode or not. 

On the Xoom it's a different story. Once the app is initially loaded (not in Airplane Mode)
everything works fine. But when I go into Airplane mode, it seems like LogCat loses complete
communication with the App. Clicking the "try-it" button does nothing. When I come back out
of Airplane mode, communication to LogCat is still hindered and I get some errors. 

These two in LogCat - All messages (no filters)

08-01 12:00:47.260: E/Ethernet(207): DHCP request error:Timed out waiting for dhcpcd to start
08-01 12:00:47.381: E/Ethernet(207): DHCP request error:Timed out waiting for dhcpcd to start

and then the following in the (Session Filter)

08-01 12:00:38.881: W/System.err(4554): java.net.SocketException: sendto failed: ETIMEDOUT
(Connection timed out)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:496)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.IoBridge.sendto(IoBridge.java:465)
08-01 12:00:38.881: W/System.err(4554): 	at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
08-01 12:00:38.881: W/System.err(4554): 	at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
08-01 12:00:38.881: W/System.err(4554): 	at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
08-01 12:00:38.881: W/System.err(4554): 	at java.io.OutputStream.write(OutputStream.java:82)
08-01 12:00:38.881: W/System.err(4554): 	at java.io.DataOutputStream.writeBytes(DataOutputStream.java:156)
08-01 12:00:38.881: W/System.err(4554): 	at org.apache.cordova.CallbackServer.run(CallbackServer.java:270)
08-01 12:00:38.881: W/System.err(4554): 	at java.lang.Thread.run(Thread.java:856)
08-01 12:00:38.881: W/System.err(4554): Caused by: libcore.io.ErrnoException: sendto failed:
ETIMEDOUT (Connection timed out)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.Posix.sendtoBytes(Native Method)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.Posix.sendto(Posix.java:146)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.IoBridge.sendto(IoBridge.java:463)
08-01 12:00:38.881: W/System.err(4554): 	... 7 more
08-01 12:00:40.281: D/DroidGap(4554): onMessage(networkconnection,none)
08-01 12:00:40.981: D/DroidGap(4554): onMessage(networkconnection,none)
08-01 12:00:41.011: D/DroidGap(4554): onMessage(networkconnection,none)


After this episode, which again happens after coming out of Airplane mode and trying to click
"try-it" button. It's basically completely locked-up and I have to close it down and re-open
the whole thing until it comes back...

Thanks for looking into it. If you want me to make a YouTube video of the whole thing, I can
do that, if it would help...



                
      was (Author: dsauvier):
    Ok, so I did some testing without GWT-Phonegap. (See index.html test file attached). I
tested the Motorola Xoom w/ Android 4.0.4 and a Samsung Galaxy Tab with 3.2

On the Samsung Galaxy Tab it works as expected. After loading the App, I'm able to go in and
out of Airplane mode, click the "try-it" button and Log-Cat reports everything operates fine
when in Airplane mode or not. 

On the Xoom it's a different story. Once the app is initially loaded (not in Airplane Mode)
everything works fine. But when I go into Airplane mode, it seems like LogCat loses complete
communication with the App. Clicking the "try-it" button does nothing. When I come back out
of Airplane mode, communication to LogCat is still hindered and I get some errors. 

These two in LogCat - All messages (no filters)

08-01 12:00:47.260: E/Ethernet(207): DHCP request error:Timed out waiting for dhcpcd to start
08-01 12:00:47.381: E/Ethernet(207): DHCP request error:Timed out waiting for dhcpcd to start

and then the following in the (Session Filter)

08-01 12:00:38.881: W/System.err(4554): java.net.SocketException: sendto failed: ETIMEDOUT
(Connection timed out)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:496)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.IoBridge.sendto(IoBridge.java:465)
08-01 12:00:38.881: W/System.err(4554): 	at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
08-01 12:00:38.881: W/System.err(4554): 	at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
08-01 12:00:38.881: W/System.err(4554): 	at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
08-01 12:00:38.881: W/System.err(4554): 	at java.io.OutputStream.write(OutputStream.java:82)
08-01 12:00:38.881: W/System.err(4554): 	at java.io.DataOutputStream.writeBytes(DataOutputStream.java:156)
08-01 12:00:38.881: W/System.err(4554): 	at org.apache.cordova.CallbackServer.run(CallbackServer.java:270)
08-01 12:00:38.881: W/System.err(4554): 	at java.lang.Thread.run(Thread.java:856)
08-01 12:00:38.881: W/System.err(4554): Caused by: libcore.io.ErrnoException: sendto failed:
ETIMEDOUT (Connection timed out)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.Posix.sendtoBytes(Native Method)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.Posix.sendto(Posix.java:146)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
08-01 12:00:38.881: W/System.err(4554): 	at libcore.io.IoBridge.sendto(IoBridge.java:463)
08-01 12:00:38.881: W/System.err(4554): 	... 7 more

After this episode, which again happens after coming out of Airplane mode and trying to click
"try-it" button. It's basically completely locked-up and I have to close it down and re-open
the whole thing until it comes back...

Thanks for looking into it. If you want me to make a YouTube video of the whole thing, I can
do that, if it would help...



                  
> FileEntry.createWriter() problem on Motorola XOOM w/ Android 4.0.4
> ------------------------------------------------------------------
>
>                 Key: CB-1029
>                 URL: https://issues.apache.org/jira/browse/CB-1029
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.8.1
>         Environment: Motorola XOOM w/ 4.0.4 and cordova-1.8.1 used via gwtphonegap-1.8.1.0
>            Reporter: David Sauvier
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: ETIMEDOUT, Motorola, Xoom
>         Attachments: FileTest.java, index.html, log.txt
>
>
> I'm having problems similar to what is described here: 
> https://issues.apache.org/jira/browse/CB-587
> What steps will reproduce the problem?
> 1. Use the sample gwt-phonegap file attached to init() phonegap and to test File procedures.
> 2. On the Motorola XOOM with Android 4.0.4, the save() method consistently fails after
going from Network to Airplane mode just after the second log statement before fileEntry.createWriter(),
no errors are given. It is not recoverable, after it fails you can not use the File any longer.
You have to close down the app and open again.
> 3. This same sample works fine on the Google Nexus Phone with 4.0.4, a Motorola Droid
Phone w/ 2.3.4 and two different Samsung Galaxy Tabs with 3.2.
> What is the expected output? What do you see instead?
> It should work on the XOOM as it does on the other devices.
> What version of the product are you using? On what operating system?
> GWT 2.4, cordova-1.8.1.js, cordova-1.8.1.jar, gwtphonegap-1.8.1.0.jar
> Would it be possible for someone to check-it out on the same device and confirm if this
is a device specific problem or perhaps something else? 
> This is the error, see attached log.txt for longer log.
> W/System.err(1969): java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed
out)
> W/System.err(1969): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:496)
> W/System.err(1969): at libcore.io.IoBridge.sendto(IoBridge.java:465)
> W/System.err(1969): at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
> W/System.err(1969): at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
> W/System.err(1969): at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
> W/System.err(1969): at java.io.OutputStream.write(OutputStream.java:82)
> W/System.err(1969): at java.io.DataOutputStream.writeBytes(DataOutputStream.java:156)
> W/System.err(1969): at org.apache.cordova.CallbackServer.run(CallbackServer.java:272)
> 07-03 09:37:09.044: W/System.err(1969): at java.lang.Thread.run(Thread.java:856)
> 07-03 09:37:09.044: W/System.err(1969): Caused by: libcore.io.ErrnoException: sendto
failed: ETIMEDOUT (Connection timed out)
> 07-03 09:37:09.044: W/System.err(1969):	at libcore.io.Posix.sendtoBytes(Native Method)
> 07-03 09:37:09.044: W/System.err(1969):	at libcore.io.Posix.sendto(Posix.java:146)
> 07-03 09:37:09.044: W/System.err(1969): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
> 07-03 09:37:09.044: W/System.err(1969):	at libcore.io.IoBridge.sendto(IoBridge.java:463)
> 07-03 09:37:09.044: W/System.err(1969):	... 7 more
> GWT-Phonegap Test File and Log File are attached
>  
> Thanks,

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

        

Mime
View raw message