Crash on SChartGLView


#1

Hello,

I am plotting Line chart with x-axis as DateTimeAxis and y-axis as ChartNumberAxis with crosshairToolTip enabled. It works fine. But recently found two crashes on that chart on iPhone 6 (iOS 9) & iPhone 5 (iOS 9) respectively. How to fix these crashes? Thanks in advance.

CRASH # 1

#0. Crashed: com.apple.main-thread

0  EventKitUI                     0x191fc9f08 (Missing)

1  EventKitUI                     0x191fcaec4 (Missing)

2  libCGInterfaces.dylib          0x1963c2d28 (Missing)

3  OpenGLES                       0x185b5fb5c -[EAGLContext renderbufferStorage:fromDrawable:] + 500

4  WebSim                         0x10031a4e4 -[SChartGLView setupFrameBuffer] + 4297762020

5  WebSim                         0x1003196d0 -[SChartGLView initWithFrame:] + 4297758416

6  WebSim                         0x10031c450 -[SChartCanvas initWithFrame:usingChart:] + 4297770064

7  WebSim                         0x10032f9e8 -[ShinobiChart initialiseChartUsingThemeOrDefault:errorHandler:] + 4297849320

8  WebSim                         0x10032fecc -[ShinobiChart initWithFrame:] + 4297850572

9  WebSim                         0x10014c634 -[SimulationChart initWithFrame:withMinRange:withMaxRange:withDateRangeMin:withDateRangeMax:withCutDownBy:] (SimulationChart.m:23)

CRASH # 2

#0. Crashed: com.apple.main-thread

0  AccessibilityUI                0x2ead5322 (Missing)

1  AccessibilityUI                0x2ead5e13 (Missing)

2  AccessibilitySettingsLoader    0x31a81c65 (Missing)

3  AccessibilitySettingsLoader    0x31a84d23 (Missing)

4  AccessibilitySettingsLoader    0x319bc3eb (Missing)

5  libCGInterfaces.dylib          0x31f7ae33 (Missing)

6  libCGInterfaces.dylib          0x31f67ba9 (Missing)

7  libCGInterfaces.dylib          0x31f1d41b (Missing)

8  WebSim                         0x396e27 SChartGL::GLResources::addTexture(void*, unsigned int, unsigned int, unsigned int, int, int, int, int, bool, bool) + 4177447

9  WebSim                         0x39700b SChartGL::GLResources::createSpriteTexturesOfSize(float) + 4177931

10 WebSim                         0x39675f SChartGL::GLResources::setupTextures() + 4175711

11 WebSim                         0x3964c7 SChartGL::GLResources::GLResources(std::__1::shared_ptr<SChartGL::ErrorHandlerHandle const>) + 4175047

12 WebSim                         0x396a05 SChartGL::GLResources::GLResources(std::__1::shared_ptr<SChartGL::ErrorHandlerHandle const>) + 4176389

13 WebSim                         0x37a16f SChartGL::Drawer::Drawer(bool, SChartGL::ErrorHandlerHandle const*) + 4059503

14 WebSim                         0x37a38d SChartGL::Drawer::Drawer(bool, SChartGL::ErrorHandlerHandle const*) + 4060045

15 WebSim                         0x310c95 -[SChartGLView initWithFrame:] + 3628181

16 WebSim                         0x3138a1 -[SChartCanvas initWithFrame:usingChart:] + 3639457

17 WebSim                         0x327a49 -[ShinobiChart initialiseChartUsingThemeOrDefault:errorHandler:] + 3721801

18 WebSim                         0x32806f -[ShinobiChart initWithFrame:] + 3723375

19 WebSim                         0x1568fd -[SimulationChart initWithFrame:withMinRange:withMaxRange:withDateRangeMin:withDateRangeMax:withCutDownBy:] (SimulationChart.m:23)


#2

Hi,

Could I ask which version of shinobicharts you are using?

We fixed an issue in version 2.8.7 which may resolve this problem. We believe the problem is due to the app being backgrounded while the chart is setting up its OpenGL resources for rendering. We’ve deferred the creation of these resources until a later date in the latest version.

If you haven’t updated to 2.8.7 would you mind doing so and then getting back to us if you’re still seeing the crash in your logs?

Many thanks,

Sam