kostmo / chartdroid

Automatically exported from code.google.com/p/chartdroid
8 stars 7 forks source link

Android Market Income App Crashes #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download an Market Income via the Android Market
2. Install the chartdroid app
3. Start Market Income App, press plot, enter details

The app then crashes. See below for the Logcat output

What version of the product are you using? On what operating system?
Tested on HTC Magic (Android 1.6)
HTC Milestone (Android 2.01)

D/dalvikvm(13557): GC freed 10385 objects / 662216 bytes in 200ms
I/Resources(13557): Loaded time zone names for en_US in 1142ms.
D/MarketIncome(13557): Status code: 200
D/MarketIncome(13557): Reason: OK
D/dalvikvm(13557): GC freed 1021 objects / 241240 bytes in 121ms
I/global  (13557): Default buffer size used in BufferedReader constructor. It 
would be better to be 
explicit if an 8k-char buffer is required.
I/global  (13557): Default buffer size used in BufferedReader constructor. It 
would be better to be 
explicit if an 8k-char buffer is required.
W/System.err(13557): java.text.ParseException: Unparseable date: 17-Apr-2010 
02:07:39
W/System.err(13557):    at java.text.DateFormat.parse(DateFormat.java:756)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.container.SpreadsheetRow.<init>(Spreadshe
etRow.java:
25)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.getPurchaseRe
cords(Sprea
dsheetFetcherTask.java:376)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:177)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:1)
W/System.err(13557):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err(13557):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
W/System.err(13557):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:122)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:6
48)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
W/System.err(13557):    at java.lang.Thread.run(Thread.java:1060)
W/System.err(13557): java.text.ParseException: Unparseable date: 17-Apr-2010 
03:08:15
W/System.err(13557):    at java.text.DateFormat.parse(DateFormat.java:756)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.container.SpreadsheetRow.<init>(Spreadshe
etRow.java:
25)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.getPurchaseRe
cords(Sprea
dsheetFetcherTask.java:376)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:177)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:1)
W/System.err(13557):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err(13557):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
W/System.err(13557):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:122)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:6
48)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
W/System.err(13557):    at java.lang.Thread.run(Thread.java:1060)
W/System.err(13557): java.text.ParseException: Unparseable date: 17-Apr-2010 
14:22:08
W/System.err(13557):    at java.text.DateFormat.parse(DateFormat.java:756)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.container.SpreadsheetRow.<init>(Spreadshe
etRow.java:
25)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.getPurchaseRe
cords(Sprea
dsheetFetcherTask.java:376)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:177)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:1)
W/System.err(13557):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err(13557):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
W/System.err(13557):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:122)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:6
48)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
W/System.err(13557):    at java.lang.Thread.run(Thread.java:1060)
W/System.err(13557): java.text.ParseException: Unparseable date: 18-Apr-2010 
19:35:56
W/System.err(13557):    at java.text.DateFormat.parse(DateFormat.java:756)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.container.SpreadsheetRow.<init>(Spreadshe
etRow.java:
25)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.getPurchaseRe
cords(Sprea
dsheetFetcherTask.java:376)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:177)
W/System.err(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:1)
W/System.err(13557):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err(13557):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
W/System.err(13557):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:122)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:6
48)
W/System.err(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
W/System.err(13557):    at java.lang.Thread.run(Thread.java:1060)
W/dalvikvm(13557): threadid=15: thread exiting with uncaught exception 
(group=0x4001da28)
E/AndroidRuntime(13557): Uncaught handler: thread AsyncTask #1 exiting due to 
uncaught 
exception
E/AndroidRuntime(13557): java.lang.RuntimeException: An error occured while 
executing 
doInBackground()
E/AndroidRuntime(13557):    at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime(13557):    at 
java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:234)
E/AndroidRuntime(13557):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:258)
E/AndroidRuntime(13557):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:122)
E/AndroidRuntime(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:6
48)
E/AndroidRuntime(13557):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
E/AndroidRuntime(13557):    at java.lang.Thread.run(Thread.java:1060)
E/AndroidRuntime(13557): Caused by: java.lang.NullPointerException
E/AndroidRuntime(13557):    at 
com.googlecode.chartdroid.market.sales.container.SpreadsheetRow.compareTo(Spread
sheetRow.j
ava:56)
E/AndroidRuntime(13557):    at 
com.googlecode.chartdroid.market.sales.container.SpreadsheetRow.compareTo(Spread
sheetRow.j
ava:1)
E/AndroidRuntime(13557):    at 
java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:286)
E/AndroidRuntime(13557):    at 
java.util.ComparableTimSort.sort(ComparableTimSort.java:167)
E/AndroidRuntime(13557):    at 
java.util.ComparableTimSort.sort(ComparableTimSort.java:142)
E/AndroidRuntime(13557):    at java.util.Arrays.sort(Arrays.java:2420)
E/AndroidRuntime(13557):    at java.util.Collections.sort(Collections.java:1915)
E/AndroidRuntime(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.generateHisto
gram(Spread
sheetFetcherTask.java:251)
E/AndroidRuntime(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:187)
E/AndroidRuntime(13557):    at 
com.googlecode.chartdroid.market.sales.task.SpreadsheetFetcherTask.doInBackgroun
d(Spreadsh
eetFetcherTask.java:1)
E/AndroidRuntime(13557):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime(13557):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
E/AndroidRuntime(13557):    ... 4 more
I/Process (   77): Sending signal. PID: 13557 SIG: 3
I/dalvikvm(13557): threadid=7: reacting to signal 3
I/dalvikvm(13557): Wrote stack trace to '/data/anr/traces.txt'
D/dalvikvm(12476): GC freed 1141 objects / 59840 bytes in 102ms

Original issue reported on code.google.com by donal.mo...@gmail.com on 20 Apr 2010 at 6:30

GoogleCodeExporter commented 9 years ago
That should be Motorola Milestone (Android 2.01)

Original comment by donal.mo...@gmail.com on 20 Apr 2010 at 6:32

GoogleCodeExporter commented 9 years ago
It appears that the Google Checkout server is sending your date in the form
"dd-MMM-yyyy HH:mm:ss", whereas on my phone the dates are recieved as "MMM dd, 
yyyy
HH:mm:ss a". Are you outside the US by chance? I wonder if Google automatically
adjusts the date locale based on IP address. Anyway, I've uploaded a new 
version to
the market that falls back to the alternate date format I'm seeing in your log. 
Let
me know if it works.

Original comment by kostmo on 20 Apr 2010 at 11:00

GoogleCodeExporter commented 9 years ago
That's right, I'm based in the UK. I've just tried the latest version of the 
app and 
it is now working.

Original comment by donal.mo...@gmail.com on 21 Apr 2010 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by kostmo on 21 Apr 2010 at 6:35