Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Crash when using library with samsung note 5 9 years 5 months ago #9907

  • sofien
  • sofien's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
I have tried to integrate the library with samsung note 5 , the library cause a crash with the following log :

11-24 16:13:49.341 29139-30046/com.example.android A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 30046 (AsyncTask #4)
11-24 16:13:49.401 3065-3065/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-24 16:13:49.401 3065-3065/? I/DEBUG: Build fingerprint: 'samsung/nobleltejv/noblelte:5.1.1/LMY47X/N920CXXU2AOJ5:user/release-keys'
11-24 16:13:49.401 3065-3065/? I/DEBUG: Revision: '9'
11-24 16:13:49.401 3065-3065/? I/DEBUG: ABI: 'arm64'
11-24 16:13:49.401 3065-3065/? I/DEBUG: pid: 29139, tid: 30046, name: AsyncTask #4 >>> com.example.android <<<
11-24 16:13:49.401 3065-3065/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
11-24 16:13:49.421 3065-3065/? I/DEBUG: x0 0000007f9ba980f0 x1 0000000000000000 x2 0000000000000044 x3 0000000000000001
11-24 16:13:49.421 3065-3065/? I/DEBUG: x4 ffffffffffffffff x5 0000000000000000 x6 8000000000000080 x7 fefefefefefefefe
11-24 16:13:49.421 3065-3065/? I/DEBUG: x8 ffffffffffffffff x9 ff646d6872746dff x10 7f7f7f7f7f7f7f7f x11 0101010101010101
11-24 16:13:49.421 3065-3065/? I/DEBUG: x12 0000000000000000 x13 0000000000430000 x14 0000000000000000 x15 0000007fa2bfb000
11-24 16:13:49.421 3065-3065/? I/DEBUG: x16 0000007f89167c20 x17 0000007fa69e6ae4 x18 0000007fa2b45000 x19 00000000000000f0
11-24 16:13:49.421 3065-3065/? I/DEBUG: x20 0000000000000006 x21 0000000000000003 x22 0000000000000000 x23 0000000000000000
11-24 16:13:49.421 3065-3065/? I/DEBUG: x24 0000007f9b9d4740 x25 0000000000000000 x26 0000000000000001 x27 0000000012c67df0
11-24 16:13:49.421 3065-3065/? I/DEBUG: x28 0000000012d15c60 x29 0000000012da15d0 x30 0000007f89005768
11-24 16:13:49.421 3065-3065/? I/DEBUG: sp 0000007f8a6010f0 pc 0000007f88e82a78 pstate 0000000020000000
11-24 16:13:49.421 3065-3065/? I/DEBUG: #00 pc 0000000000065a78 /data/app/com.example.app.android-1/lib/arm64/librdpdf.so
11-24 16:13:49.421 3065-3065/? I/DEBUG: #01 pc 00000000001e8764 /data/app/com.example.app.android-1/lib/arm64/librdpdf.so
11-24 16:13:49.421 3065-3065/? I/DEBUG: #02 pc 00000000000bc97c /data/app/com.example.app.android-1/lib/arm64/librdpdf.so
11-24 16:13:49.421 3065-3065/? I/DEBUG: #03 pc 000000000004acc0 /data/app/com.example.app.android-1/lib/arm64/librdpdf.so (Java_com_radaee_pdf_Global_setDefaultFont+76)
11-24 16:13:49.421 3065-3065/? I/DEBUG: #04 pc 00000000001e0504 /data/dalvik-cache/arm64/data@app@com.example.app.android-1@base.apk@classes.dex

After further invesitgations , the library seems to fail to load default fonts from the system (roboto and droid sans) on this lines in global.java:

// set default font for fixed width font.
if (!setDefaultFont(null, "Roboto-Regular", true) && face_name != null)
{
if( !setDefaultFont(null, "DroidSans", true) )
setDefaultFont(null, face_name, true);
}
// set default font for non-fixed width font.
if (!setDefaultFont(null, "Roboto-Regular", false) && face_name != null)
{
if( !setDefaultFont(null, "DroidSans", false) )
setDefaultFont(null, face_name, false);
}

the fonts exists in the system.

Please Log in or Create an account to join the conversation.

Crash when using library with samsung note 5 9 years 5 months ago #9908

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 695
  • Thank you received: 59
In some cases we've found system fonts loaded from OEM in their devices with wrong or unexpected encoding.
Are you able to extract that files from device system?
You should try a software like play.google.com/store/apps/details?id=com.extract.fonts

To double check, while commenting that font loading, is the library instantiating properly?

Please, send files from your device within a support ticket and don't publish here.
We will delete such files as soon as your ticket will be closed.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum