App crashes by touching TeeChart since Android update

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
MSBT
Newbie
Newbie
Posts: 3
Joined: Thu Jul 23, 2015 12:00 am

App crashes by touching TeeChart since Android update

Post by MSBT » Sat Feb 20, 2016 11:40 am

Hi,

I'm using TeeChart for my Android application. I have found out that my app crashes by touching the chart ( for example to scroll the chart back and forth) since I set chart.enabled(true). I know that scrolling was possible when I started working on my application a few weeks ago. When I thought about what changed since then, I noticed that I updated the tablet from Android 5 to Android 6.0.1 in the meanwhile. To make sure I created a new application with just a TeeChart in it and adding random values:

Code: Select all

 
chart1 = (TChart) findViewById(R.id.chart1);
chart1.addSeries(new Line()).fillSampleValues(40);
While touching the chart works fine on my phone with Android 4.1.2 , this leads to a crash on the tablet with Android 6.0.1 and throwing an segmentation error:

02-20 12:34:36.191 16113-16113/com.example.caro.teecharttest A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x58 in tid 16113 (ro.teecharttest)
02-20 12:34:36.293 193-193/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-20 12:34:36.294 193-193/? A/DEBUG: Build fingerprint: 'google/razor/flo:6.0.1/MMB29K/2419427:user/release-keys'
02-20 12:34:36.294 193-193/? A/DEBUG: Revision: '0'
02-20 12:34:36.294 193-193/? A/DEBUG: ABI: 'arm'
02-20 12:34:36.294 193-193/? A/DEBUG: pid: 16113, tid: 16113, name: ro.teecharttest >>> com.example.caro.teecharttest <<<
02-20 12:34:36.294 193-193/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x58
02-20 12:34:36.317 193-193/? A/DEBUG: r0 00000000 r1 00000000 r2 ff000000 r3 41400000
02-20 12:34:36.317 193-193/? A/DEBUG: r4 aa54b670 r5 b4cfe660 r6 b6ca4ec0 r7 bee63854
02-20 12:34:36.317 193-193/? A/DEBUG: r8 aa545fe0 r9 b4cfe688 sl 43fd8000 fp 43f78000
02-20 12:34:36.317 193-193/? A/DEBUG: ip 40800000 sp bee63848 lr b69299b1 pc b5d4012c cpsr 600b0030
02-20 12:34:36.320 193-193/? A/DEBUG: #00 pc 0002e12c /system/lib/libhwui.so (android::uirenderer::DisplayListCanvas::drawRect(float, float, float, float, SkPaint const&)+263)
02-20 12:34:36.320 193-193/? A/DEBUG: #01 pc 741f78db /data/dalvik-cache/arm/system@[email protected] (offset 0x1ec9000)



So do you have any suggestions for me how to to solve this problem?

Tanks in advance!
Kind regards
MSBT

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: App crashes by touching TeeChart since Android update

Post by Yeray » Mon Feb 22, 2016 10:53 am

Hello,

This sounds as a problem we recently corrected so the next maintenance release should fix it.
See the following related tickets for the details:
http://bugs.teechart.net/show_bug.cgi?id=1263
http://bugs.teechart.net/show_bug.cgi?id=1107

In the meanwhile try disabling the hardware acceleration:

Code: Select all

  if (Build.VERSION.SDK_INT>10)
    tChart1.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply