Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network connection after background mode #9

Open
Gitju opened this issue Feb 21, 2014 · 0 comments
Open

Network connection after background mode #9

Gitju opened this issue Feb 21, 2014 · 0 comments
Assignees

Comments

@Gitju
Copy link

Gitju commented Feb 21, 2014

When the app runs in the background and is activated again after some minutes it can crash. After the crash the app can be started normally and it also shows a normal behaviour. The log:

10:45:24.984 [main] BlockchainServiceImpl - service start command: Intent { act=de.schildbach.wallet_mac.cancel_coins_received cmp=de.schildbach.wallet_mac/de.schildbach.wallet.service.BlockchainServiceImpl }
10:45:25.005 [ModernAsyncTask Litecoin-Java#11] ExchangeRatesProvider - problem fetching exchange rates
java.net.UnknownHostException: Unable to resolve host "ticker.machinecoin.de": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:439) ~[na:0.0]
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236) ~[na:0.0]
at java.net.InetAddress.getAllByName(InetAddress.java:214) ~[na:0.0]
at libcore.net.http.HttpConnection.(HttpConnection.java:70) ~[na:0.0]
at libcore.net.http.HttpConnection.(HttpConnection.java:50) ~[na:0.0]
at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340) ~[na:0.0]
at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87) ~[na:0.0]
at libcore.net.http.HttpConnection.connect(HttpConnection.java:128) ~[na:0.0]
at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316) ~[na:0.0]
at libcore.net.http.HttpEngine.connect(HttpEngine.java:311) ~[na:0.0]
at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290) ~[na:0.0]
at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240) ~[na:0.0]
at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:81) ~[na:0.0]
at de.schildbach.wallet.ExchangeRatesProvider.requestExchangeRates(ExchangeRatesProvider.java:267) ~[na:0.0]
at de.schildbach.wallet.ExchangeRatesProvider.query(ExchangeRatesProvider.java:144) ~[na:0.0]
at android.content.ContentProvider.query(ContentProvider.java:652) ~[na:0.0]
at android.content.ContentProvider$Transport.query(ContentProvider.java:189) ~[na:0.0]
at android.content.ContentResolver.query(ContentResolver.java:373) ~[na:0.0]
at android.content.ContentResolver.query(ContentResolver.java:316) ~[na:0.0]
at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:49) ~[na:0.0]
at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35) ~[na:0.0]
at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:240) ~[na:0.0]
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51) ~[na:0.0]
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40) ~[na:0.0]
at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123) ~[na:0.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:234) ~[na:0.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) ~[na:0.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) ~[na:0.0]
at java.lang.Thread.run(Thread.java:838) ~[na:0.0]
Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
at libcore.io.Posix.getaddrinfo(Native Method) ~[na:0.0]
at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:59) ~[na:0.0]
at java.net.InetAddress.lookupHostByName(InetAddress.java:405) ~[na:0.0]
... 28 common frames omitted
Caused by: libcore.io.ErrnoException: getaddrinfo failed: ENETUNREACH (Network is unreachable)
... 31 common frames omitted
10:45:25.043 [main] BlockchainServiceImpl - network is down
10:45:39.253 [main] BlockchainServiceImpl - network is up
10:45:39.256 [main] BlockchainServiceImpl - starting peergroup

Especially "Unable to resolve host ticker.machinecoin.de" and "No address associated with hostname" is interesting. Looks like the app looses its internet connection in the background at a given point and therefore isn't able to get the address of the hostname.

Its no critical bug but annoying.
Will fix this soon.

@Gitju Gitju self-assigned this Feb 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant