This is the last problem that I have and can’t solve it after days of debugging and reading the documentation. The problem is that when you leave the app and then reopen it, some things from chart disappear but some stay there. Not sure what is the key, best to check this gif I recorded (it is on the loop that’s why it seems the data re-appears):
Also this exception occurs which is the cause I think:
2019-02-22 13:18:47.994 7216-14171/xx.yy E/Exception: null
java.lang.NullPointerException: Attempt to read from field 'int com.scichart.drawing.opengl.ac.a' on a null object reference
at com.scichart.drawing.opengl.MyGLRenderer.g(SourceFile:575)
at com.scichart.drawing.opengl.MyGLRenderer.b(SourceFile:371)
at com.scichart.drawing.opengl.aw.drawLinesStrip(SourceFile:167)
at com.scichart.drawing.common.RegionRenderContextWrapper.drawLinesStrip(SourceFile:201)
at com.scichart.drawing.common.RegionRenderContextWrapper.drawLinesStrip(SourceFile:201)
at com.scichart.drawing.common.d.draw(SourceFile:36)
at com.scichart.charting.visuals.renderableSeries.SeriesDrawingManager.a(SourceFile:125)
at com.scichart.charting.visuals.renderableSeries.SeriesDrawingManager.iterateLines(SourceFile:107)
at com.scichart.charting.visuals.renderableSeries.FastBandRenderableSeries.internalDraw(SourceFile:227)
at com.scichart.charting.visuals.renderableSeries.BaseRenderableSeries.onDraw(SourceFile:701)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.f(SourceFile:469)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.d(SourceFile:394)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.c(SourceFile:374)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.a(SourceFile:358)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.a(SourceFile:134)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.onDraw(SourceFile:123)
at com.scichart.drawing.opengl.RenderSurfaceGL$a.onDraw(SourceFile:243)
at com.scichart.drawing.opengl.MyGLRenderer.b(SourceFile:262)
at com.scichart.drawing.opengl.MyGLRenderer.onDrawFrame(SourceFile:246)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
2019-02-22 13:18:48.017 7216-14171/xx.yy E/Exception: null
java.lang.NullPointerException: Attempt to read from field 'int com.scichart.drawing.opengl.ac.a' on a null object reference
at com.scichart.drawing.opengl.MyGLRenderer.g(SourceFile:575)
at com.scichart.drawing.opengl.MyGLRenderer.b(SourceFile:371)
at com.scichart.drawing.opengl.aw.drawLinesStrip(SourceFile:167)
at com.scichart.drawing.common.RegionRenderContextWrapper.drawLinesStrip(SourceFile:201)
at com.scichart.drawing.common.RegionRenderContextWrapper.drawLinesStrip(SourceFile:201)
at com.scichart.drawing.common.d.draw(SourceFile:36)
at com.scichart.charting.visuals.renderableSeries.SeriesDrawingManager.a(SourceFile:125)
at com.scichart.charting.visuals.renderableSeries.SeriesDrawingManager.iterateLines(SourceFile:107)
at com.scichart.charting.visuals.renderableSeries.FastBandRenderableSeries.internalDraw(SourceFile:227)
at com.scichart.charting.visuals.renderableSeries.BaseRenderableSeries.onDraw(SourceFile:701)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.f(SourceFile:469)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.d(SourceFile:394)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.c(SourceFile:374)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.a(SourceFile:358)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.a(SourceFile:134)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.onDraw(SourceFile:123)
at com.scichart.drawing.opengl.RenderSurfaceGL$a.onDraw(SourceFile:243)
at com.scichart.drawing.opengl.MyGLRenderer.b(SourceFile:262)
at com.scichart.drawing.opengl.MyGLRenderer.onDrawFrame(SourceFile:246)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
- Primoz asked 5 years ago
- last edited 5 years ago
- You must login to post comments
Hi Primoz,
I noticed that you use v2.2.1.2391. In this question I suggested to update to v2.2.2.2410 and above which should this issue. Have you tried it? Does it fix the issue?
Best regards,
Yura
- Yura Khariton answered 5 years ago
-
This fixes the problem Yura, thanks! I don’t know why Android Studio didn’t notify me about new version.
- You must login to post comments
Please login first to submit.