SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


When using GLTextureView on Android 4.4 API 19, there are a few issues. The same issue does not occur on API 27. Have not tested other API levels. If you do not use GLTextureView, this issue doesn’t happen (but due to theming bugs I have to use GLTextureView and not the other 2 types of render surfaces).

  1. If activity A has a SciChartSurface and activity B has a SciChartSurface and appears above activity A, then the surface in A dissapears (Shows blank) when you return to it. 100% repro for me. Let me know if you need more info.

  2. Due to 1? If you try to re-render the chart on activity A, it will lead to an ANR (app freezes indefinitely) after a few times (see below)

  3. Even if you don’t have activity B and only activity A, if you interact with it a few times and show/hide it, it will lead to an ANR (app freezes indefinitely) as well (see below):

ANR log (it freezes the app until you kill it):

09-03 13:01:40.583 1690-1705/system_process E/ActivityManager: ANR in co..stocks (co..stocks/.ui.screens.home.MainActivity)
PID: 12076
Reason: Input dispatching timed out (Waiting because the touched window has not finished processing the input events that were previously delivered to it.)
Load: 0.64 / 0.49 / 0.39
CPU usage from 6217ms to 779ms ago:

  • Yura Khariton
    Hi Mike. Can you provide a project which reproduces this issue – I’ve tried to reproduce this issue in our demo application using step 3 ( I replaced default render surface on GLTextureView for all examples ) but I couldn’t get ANR. Thanks in advance.
  • Mike Liu
    Here’s a way to repro: 1. Start an emulator running Android 4.4 API 19. 2. Open BandChartFragment in the demo project (version 3. Add ‘surface.setRenderSurface(new GLTextureView(getActivity()));’ as the first line in initExample: public class BandChartFragment extends ExampleBaseFragment { @BindView( SciChartSurface surface; @Override protected int getLayoutId() { return R.layout.example_single_chart_fragment; } @Override protected void initExample() { surface.setRenderSurface(new GLTextureView(getActivity())); final IAxis xAxis = sciChartBuilder.newNumericAxis().withVisibleRange(1.1, 2.7).build(); final IAxis yAxis = sciChartBuilder.newNumericAxis().withGrowBy(0.1, 0.1).build(); 4. Run the project, go into the Band Chart, tap the chart a few times, hit back, then go back into the Band Chart, and notice the app freezes until an ANR comes up. I will upload a video soon.
  • Mike Liu
  • You must to post comments

Hi Mike,

I could reproduce this issue. I’ve created a task to investigate why this happens.


It should be fixed starting from v2.2.0.2379 and above. Can you try it?

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.