I have this strict mode configuration:
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectDiskReads()
.detectDiskWrites()
.detectNetwork()
.penaltyLog()
.build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectLeakedSqlLiteObjects()
.detectLeakedClosableObjects()
.penaltyLog()
.penaltyDeath()
.build());
I have an error when I rotate screen:
03-15 09:40:24.215 29914-29923 E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'release' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:223)
at android.view.Surface.setNativeObjectLocked(Surface.java:554)
at android.view.Surface.<init>(Surface.java:187)
at com.scichart.drawing.opengl.ac.<init>(SourceFile:69)
at com.scichart.drawing.opengl.n.createCanvasTexture(SourceFile:140)
at com.scichart.charting.visuals.axes.AxisTickLabelsRendererComponent.onDraw(SourceFile:120)
at com.scichart.charting.visuals.axes.AxisTickLabelsRendererComponent$HorizontalAxisTickLabelsRendererComponent.onDraw(SourceFile:278)
at com.scichart.charting.visuals.axes.f.onDraw(SourceFile:182)
at com.scichart.charting.visuals.axes.AxisBase.onDraw(SourceFile:866)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.a(SourceFile:491)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.g(SourceFile:485)
at com.scichart.charting.visuals.rendering.RenderSurfaceRenderer.a(SourceFile:359)
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:228)
at com.scichart.drawing.opengl.MyGLRenderer.b(SourceFile:299)
at com.scichart.drawing.opengl.MyGLRenderer.onDrawFrame(SourceFile:283)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
- Evgeny Khramov asked 6 years ago
- You must login to post comments
Hi Evgeny,
Thanks for reporting this issue. I could reproduce this issue on my PC. I’m going to create a task to investigate it and will try to fix ASAP.
Best regards,
Yura
- Yura Khariton answered 6 years ago
- You must login to post comments
Do you have any progress on this issue?
- Evgeny Khramov answered 6 years ago
-
Hi Evgeniy. I believe fix should be available in latest nightly build ( 2.1.0.2224 ) from our Maven repository. You can find instructions how to reference it in our documentation – https://www.scichart.com/documentation/android/v2.x/webframe.html#Tutorial%2001%20-%20Adding%20SciChart%20libraries%20as%20dependencies.html . Please try it and let me know if you can confirm that issue is fixed on your side. Thanks in advance.
- You must login to post comments
Please login first to submit.