paragp / achartengine

AChartEngine is a charting library for Android applications. It currently supports the following chart types: line chart area chart scatter chart time chart bar chart pie chart bubble chart doughnut chart range (high-low) bar chart dial chart / gauge combined (any combination of line, cubic line, scatter, bar, range bar, bubble) chart cubic line chart All the above supported chart types can contain multiple series, can be displayed with the X axis horizontally (default) or vertically and support many other custom features. The charts can be built as a view that can be added to a view group or as an intent, such as it can be used to start an activity. The model and the graphing code is well optimized such as it can handle and display huge number of values. AChartEngine is currently at the 1.0.0 release. New chart types will be added in the following releases. Please keep sending your feedback such as we can continually improve this library. Find us on Facebook, too: http://www.facebook.com/achartengine Read a short introduction to AChartEngine here: http://www.javaadvent.com/2012/12/achartengine-charting-library-for.html Another good tutorial can be read here: http://jaxenter.com/effort-free-graphs-on-android-with-achartengine-46199.html
0 stars 1 forks source link

StrictMode reports DiskReadViolation #421

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable StrictMode
2. use  GraphicalView to draw chart

What is the expected output? What do you see instead?

07-18 12:58:48.758: D/StrictMode(4758): StrictMode policy violation; 
~duration=247 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 
violation=2
07-18 12:58:48.758: D/StrictMode(4758):     at 
android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:113
5)
07-18 12:58:48.758: D/StrictMode(4758):     at 
libcore.io.BlockGuardOs.read(BlockGuardOs.java:148)
07-18 12:58:48.758: D/StrictMode(4758):     at 
libcore.io.IoBridge.read(IoBridge.java:425)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.io.RandomAccessFile.read(RandomAccessFile.java:287)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.util.zip.ZipFile$RAFStream.read(ZipFile.java:464)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.io.InputStream.read(InputStream.java:162)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.io.BufferedInputStream.read(BufferedInputStream.java:288)
07-18 12:58:48.758: D/StrictMode(4758):     at 
libcore.io.Streams.readFully(Streams.java:81)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.util.zip.ZipEntry.<init>(ZipEntry.java:388)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.util.zip.ZipFile.readCentralDir(ZipFile.java:414)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.util.zip.ZipFile.<init>(ZipFile.java:151)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.util.zip.ZipFile.<init>(ZipFile.java:115)
07-18 12:58:48.758: D/StrictMode(4758):     at 
dalvik.system.DexPathList$Element.maybeInit(DexPathList.java:432)
07-18 12:58:48.758: D/StrictMode(4758):     at 
dalvik.system.DexPathList$Element.findResource(DexPathList.java:446)
07-18 12:58:48.758: D/StrictMode(4758):     at 
dalvik.system.DexPathList.findResource(DexPathList.java:344)
07-18 12:58:48.758: D/StrictMode(4758):     at 
dalvik.system.BaseDexClassLoader.findResource(BaseDexClassLoader.java:67)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.lang.ClassLoader.getResource(ClassLoader.java:391)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:430)
07-18 12:58:48.758: D/StrictMode(4758):     at 
java.lang.Class.getResourceAsStream(Class.java:1037)
07-18 12:58:48.758: D/StrictMode(4758):     at 
org.achartengine.GraphicalView.<init>(GraphicalView.java:100)

What version of the product binary library are you using?
1.1.0

Please provide any additional information below.
See isse #420 for another bug in this implementation.

Original issue reported on code.google.com by martin.b...@gmail.com on 18 Jul 2014 at 1:26

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 16 Sep 2014 at 7:35