Bitcoin Forum

Bitcoin => Bitcoin Wallet for Android => Topic started by: mb300sd on October 08, 2013, 12:07:17 AM



Title: Crash when connected to network. stack trace included -issue with exchange rate?
Post by: mb300sd on October 08, 2013, 12:07:17 AM
Been using bitcoin wallet for a a few months now, everything was working fine until today.

Based on the stack trace, it looks like wherever its looking up the exchange rate is returning invalid data

=== stack trace ===
Code:
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:137)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
at java.util.concurrent.FutureTask.run(FutureTask.java:239)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.ArithmeticException: Amount larger than the total quantity of Bitcoins possible specified.
at com.google.bitcoin.core.Utils.toNanoCoins(Utils.java:118)
at de.schildbach.wallet.ExchangeRatesProvider.getBitcoinCharts(ExchangeRatesProvider.java:239)
at de.schildbach.wallet.ExchangeRatesProvider.query(ExchangeRatesProvider.java:109)
at android.content.ContentProvider.query(ContentProvider.java:652)
at android.content.ContentProvider$Transport.query(ContentProvider.java:189)
at android.content.ContentResolver.query(ContentResolver.java:375)
at android.content.ContentResolver.query(ContentResolver.java:318)
at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35)
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground$42af7916(AsyncTaskLoader.java:40)
at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
... 3 more

Cause:

java.lang.ArithmeticException: Amount larger than the total quantity of Bitcoins possible specified.
at com.google.bitcoin.core.Utils.toNanoCoins(Utils.java:118)
at de.schildbach.wallet.ExchangeRatesProvider.getBitcoinCharts(ExchangeRatesProvider.java:239)
at de.schildbach.wallet.ExchangeRatesProvider.query(ExchangeRatesProvider.java:109)
at android.content.ContentProvider.query(ContentProvider.java:652)
at android.content.ContentProvider$Transport.query(ContentProvider.java:189)
at android.content.ContentResolver.query(ContentResolver.java:375)
at android.content.ContentResolver.query(ContentResolver.java:318)
at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35)
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground$42af7916(AsyncTaskLoader.java:40)
at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)


Title: Re: Crash when connected to network. stack trace included -issue with exchange rate?
Post by: M31 on October 08, 2013, 04:28:20 AM
i'm having the exact same issue.  quite the piss off as i was at dinner, about to pay for it all in btc for the first time -- this also being the first time this wallet has failed me!


Title: Re: Crash when connected to network. stack trace included -issue with exchange rate?
Post by: stevenf on October 08, 2013, 06:46:52 AM
Same problem here.

When it crashes, choose 'Cancel' when asked to send a report. You should be able to get into the app then. Not sure if you can send/receive coins.


Title: Re: Crash when connected to network. stack trace included -issue with exchange rate?
Post by: Andreas Schildbach on October 08, 2013, 06:58:41 AM
It should work again now, since the bad exchange rate has been corrected.

If it happens again, I'll release an update. Too bad things like this always happen while sleeping...

Sorry for the inconvenience.