PsyGik / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 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