wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

NullPointerException in Scatter.java:DrawSeries() method #375

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,
Myself, Prakhar. I'm a researcher in WiNGS Lab at University of 
Wisconsin-Madison. I've been using AchartEngine since past 1 year in my lab 
projects, and have really liked it so far!

Problem:
In our most recent project, we're not able to release our app to our users, as 
it is crashing randomly because of a NullPointerException in 'Scatter.java' 
class. I've been working on fixing this issue since past week, but finally I 
thought to ask for some help/pointers from you. 

Scenario:
I'm trying to render TimeChart (ChartFactory.getTimeChartView) in the app. We 
update the chart every time we have new data available with a frequency of 0.5 
secs), and the rendering of chart works successfully for around 5-10 mins after 
which it randomly crashes.
Library Version: 1.0.0 (getting same crash with 1.1.0 as well).

Crashlog:
The crash log has no traces of our app, because of which it's hard for me to 
debug the issue. I've attached the crash log with this message. It'd be really 
helpful if you could take a look at it, and point me to the source of the 
problem. As I went through the code of Scatter.java, also it looks like no 
exception is being thrown from the method, because of which the app is crashing.

Thanking you in anticipation!

Original issue reported on code.google.com by prakhar....@gmail.com on 30 Nov 2013 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
Can you please try version 1.2.0 and let me know if you still see the issue? If 
the bug is still there, please attach a new log.

https://repository-achartengine.forge.cloudbees.com/snapshot/org/achartengine/ac
hartengine/1.2.0/

Original comment by dandrome...@gmail.com on 3 Dec 2013 at 6:15

GoogleCodeExporter commented 9 years ago
Sure, I'll give a try and will let you know. Thanks!

Original comment by prakhar....@gmail.com on 3 Dec 2013 at 6:17

GoogleCodeExporter commented 9 years ago
With version 1.2.0 also, I'm facing crash (NullPointerException) on 
ScatterChart.java, but this time on line#87 of drawSeries() method. Please find 
new crashlog attached with this mesg.

Original comment by prakhar....@gmail.com on 7 Dec 2013 at 6:38

Attachments:

GoogleCodeExporter commented 9 years ago
You are setting point style of null. Don't do that.

Original comment by dandrome...@gmail.com on 7 Jan 2014 at 10:52

GoogleCodeExporter commented 9 years ago
Seems to work. Thanks man!

Original comment by prakhar....@gmail.com on 22 Jan 2014 at 5:17