Hi All,

I am using my custom fonts in android kitkat by changing the Android.mk and
fonts.mk in /frameworks/base/data/fonts/.

When i try to access

SkUnichar SkGlyphCache::glyphToUnichar(uint16_t glyphID)

i get segmentation error. The error is random but always crashes at
FT_Get_Next_Char in libft2.so.

This is what i get in logcat.


I/DEBUG   (  189): Build fingerprint:
'qcom/msm8226/msm8226:4.4.2/KOT49H/eng.root.20140120.172549:userdebug/test-keys'
I/DEBUG   (  189): Revision: '0'
I/DEBUG   (  189): pid: 3989, tid: 4104, name: android.browser  >>>
com.android.browser <<<
I/DEBUG   (  189): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
638df000
I/DEBUG   (  189):     r0 0000200d  r1 00000000  r2 00000000  r3 638df000
I/DEBUG   (  189):     r4 00000e2f  r5 6031d238  r6 62c2ae3c  r7 00000218
I/DEBUG   (  189):     r8 00000000  r9 405e6005  sl 000005cb  fp 00000001
I/DEBUG   (  189):     ip 00000000  sp 62c2ae00  lr 4062dd94  pc 4062d348
cpsr 20030010
I/DEBUG   (  189):     d0  433e000000000000  d1  7149f2ca3f000000
I/DEBUG   (  189):     d2  0000000000000000  d3  0000000000000000
I/DEBUG   (  189):     d4  000000003f371759  d5  3f0000003d93dd98
I/DEBUG   (  189):     d6  438f000000000000  d7  4000000040000000
I/DEBUG   (  189):     d8  000000cd438f0000  d9  000000000000000e
I/DEBUG   (  189):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  189):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  189):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  189):     d16 0000000000000001  d17 0000000000000000
I/DEBUG   (  189):     d18 4030000000000000  d19 0000000000000000
I/DEBUG   (  189):     d20 4000000000000000  d21 0000000000000000
I/DEBUG   (  189):     d22 0000000000000000  d23 0000000000000000
I/DEBUG   (  189):     d24 4030000000000000  d25 0000000000000000
I/DEBUG   (  189):     d26 4000000000000000  d27 0000000000000000
I/DEBUG   (  189):     d28 4040000000000000  d29 0000000000000000
I/DEBUG   (  189):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   (  189):     scr 28000013
I/DEBUG   (  189):
I/DEBUG   (  189): backtrace:
I/DEBUG   (  189):     #00  pc 00014348  /system/lib/libft2.so
I/DEBUG   (  189):     #01  pc 00014d90  /system/lib/libft2.so
I/DEBUG   (  189):     #02  pc 0000ab10  /system/lib/libft2.so
(FT_Get_Next_Char+92)
I/DEBUG   (  189):     #03  pc 0010adbb  /system/lib/libskia.so
(SkScalerContext_FreeType::generateGlyphToChar(unsigned short)+28)
I/DEBUG   (  189):     #04  pc 000c4a1f  /system/lib/libskia.so
(SkScalerContext::glyphIDToChar(unsigned short)+36)
I/DEBUG   (  189):     #05  pc 000a78c3  /system/lib/libskia.so
(SkDraw::drawPosText(char const*, unsigned int, float const*, float, int,
SkPaint const&) const+262)
I/DEBUG   (  189):     #06  pc 000a019b  /system/lib/libskia.so
(SkCanvas::drawPosTextH(void const*, unsigned int, float const*, float,
SkPaint const&)+122)
I/DEBUG   (  189):     #07  pc 000bd611  /system/lib/libskia.so
(SkPicturePlayback::draw(SkCanvas&, SkDrawPictureCallback*)+1358)
I/DEBUG   (  189):     #08  pc 00b15f15  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #09  pc 00b45083  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #10  pc 00b45405  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #11  pc 00b5281b  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #12  pc 00b52a1f  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #13  pc 00b4e107  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #14  pc 00b54493  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #15  pc 001dbe3b  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #16  pc 001dc087  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #17  pc 001da2d3  /system/lib/libwebviewchromium.so
I/DEBUG   (  189):     #18  pc 0000d218  /system/lib/libc.so
(__thread_entry+72)
I/DEBUG   (  189):     #19  pc 0000d3b0  /system/lib/libc.so
(pthread_create+240)
I/DEBUG   (  189):
I/DEBUG   (  189): stack:
I/DEBUG   (  189):          62c2adc0  0000000b
I/DEBUG   (  189):          62c2adc4  00000001
I/DEBUG   (  189):          62c2adc8  62c2ae24  [stack:4104]
I/DEBUG   (  189):          62c2adcc  00000001
I/DEBUG   (  189):          62c2add0  3f800000
I/DEBUG   (  189):          62c2add4  638de638
/system/fonts/DroidSansHindi.ttf
I/DEBUG   (  189):          62c2add8  00000000
I/DEBUG   (  189):          62c2addc  fffff733
I/DEBUG   (  189):          62c2ade0  00000000
I/DEBUG   (  189):          62c2ade4  40000000
I/DEBUG   (  189):          62c2ade8  00000006
I/DEBUG   (  189):          62c2adec  609c7b90
I/DEBUG   (  189):          62c2adf0  62c2ae3c  [stack:4104]
I/DEBUG   (  189):          62c2adf4  00000063
I/DEBUG   (  189):          62c2adf8  00000218
I/DEBUG   (  189):          62c2adfc  6031d238
I/DEBUG   (  189):     #00  62c2ae00  00000973
I/DEBUG   (  189):          62c2ae04  6031d238
I/DEBUG   (  189):          62c2ae08  62c2ae24  [stack:4104]
I/DEBUG   (  189):          62c2ae0c  4062dd94  /system/lib/libft2.so
I/DEBUG   (  189):     #01  62c2ae10  00000218
I/DEBUG   (  189):          62c2ae14  6031d238
I/DEBUG   (  189):          62c2ae18  609c7b90
I/DEBUG   (  189):          62c2ae1c  40623b14  /system/lib/libft2.so
(FT_Get_Next_Char+96)
I/DEBUG   (  189):     #02  62c2ae20  62c2b5b4  [stack:4104]
I/DEBUG   (  189):          62c2ae24  00000973
I/DEBUG   (  189):          62c2ae28  60c87af0
I/DEBUG   (  189):          62c2ae2c  00000063
I/DEBUG   (  189):          62c2ae30  00000063
I/DEBUG   (  189):          62c2ae34  4054ddbf  /system/lib/libskia.so
(SkScalerContext_FreeType::generateGlyphToChar(unsigned short)+32)
I/DEBUG   (  189):
I/DEBUG   (  189): memory near r0:
I/DEBUG   (  189):     00001fec ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     00001ffc ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000200c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000201c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000202c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000203c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000204c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000205c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000206c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000207c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000208c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     0000209c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     000020ac ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     000020bc ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     000020cc ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     000020dc ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):
I/DEBUG   (  189): memory near r3:
I/DEBUG   (  189):     638defe0 00000000 00000000 00000000 00000000
I/DEBUG   (  189):     638deff0 00000000 00000000 00000000 00000000
I/DEBUG   (  189):     638df000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df0a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df0b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df0c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):     638df0d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  189):
I/DEBUG   (  189): memory near r5:
I/DEBUG   (  189):     6031d218 2e2e0013 40e00000 36340201 302e0000
I/DEBUG   (  189):     6031d228 6031cd98 00000000 630ddf20 0000004b
I/DEBUG   (  189):     6031d238 609c7b90 756e6963 00010003 4066a194
I/DEBUG   (  189):     6031d248 638de5da 00000000 00000947 0000007a
I/DEBUG   (  189):     6031d258 0000000b 00000005 00000900 0000094d
I/DEBUG   (  189):     6031d268 fffff733 00000000 00004963 00000000
I/DEBUG   (  189):     6031d278 00000048 000004b3 5cefdfa8 00000000
I/DEBUG   (  189):     6031d288 60efb2b0 60efb2b8 60efb2b8 ffffffff
I/DEBUG   (  189):     6031d298 00000000 ffffffff 00000000 0000003d
I/DEBUG   (  189):     6031d2a8 63257fc0 3f000000 3f000000 00000000
I/DEBUG   (  189):     6031d2b8 00000000 00000000 00000000 00000000
I/DEBUG   (  189):     6031d2c8 00000000 62000000 00000000 00000000
I/DEBUG   (  189):     6031d2d8 00000000 00000000 ffffffff 00000000
I/DEBUG   (  189):     6031d2e8 00000000 00000000 00000000 ffffffff
I/DEBUG   (  189):     6031d2f8 00000000 00000100 62920000 3f800000
I/DEBUG   (  189):     6031d308 00000000 00000000 62000000 62923ea4
I/DEBUG   (  189):
I/DEBUG   (  189): memory near r6:
I/DEBUG   (  189):     62c2ae1c 40623b14 62c2b5b4 00000973 60c87af0
I/DEBUG   (  189):     62c2ae2c 00000063 00000063 4054ddbf 60c87af0
I/DEBUG   (  189):     62c2ae3c 000000a6 4054dd9f 60c87af0 00000000
I/DEBUG   (  189):     62c2ae4c 40507a21 0000fffb 602fc8c0 60e43fd8
I/DEBUG   (  189):     62c2ae5c 62c2b52c 62c2b5b4 404ea8c7 62c2b5b4
I/DEBUG   (  189):     62c2ae6c 60e43fd8 62c2aeac 62c2aeb0 00000000
I/DEBUG   (  189):     62c2ae7c 00000001 404f7319 404e8937 404e8ced
I/DEBUG   (  189):     62c2ae8c 602fc8a4 0000000a 405e6010 0000000a
I/DEBUG   (  189):     62c2ae9c 602fc8a4 62c2b318 60e43fd8 404eb9b9
I/DEBUG   (  189):     62c2aeac 0178d880 00be8000 00000000 00000000
I/DEBUG   (  189):     62c2aebc 01785880 00be0000 00000000 00000000
I/DEBUG   (  189):     62c2aecc 43bc2c40 433e0000 6310a544 404f3bcf
I/DEBUG   (  189):     62c2aedc 438f0000 40000000 00000000 433e0000
I/DEBUG   (  189):     62c2aeec 62c2b52c 00000000 6310d9a0 00000000
I/DEBUG   (  189):     62c2aefc 62c2af24 60e43fd8 62c2b5b4 00000000
I/DEBUG   (  189):     62c2af0c 00000000 00000180 00000180 00002000
I/DEBUG   (  189):
I/DEBUG   (  189): memory near r9:
I/DEBUG   (  189):     405e5fe4 20726f66 6579616c 53002e72 6765526b
I/DEBUG   (  189):     405e5ff4 3a6e6f69 20704f3a 6f727265 006e2f72
I/DEBUG   (  189):     405e6004 446b5300 20776172 00203a3a 77617244
I/DEBUG   (  189):     405e6014 54736f50 20747865 74786554 205d695b
I/DEBUG   (  189):     405e6024 7825203d 78655420 2b695b74 3d205d31
I/DEBUG   (  189):     405e6034 20782520 63696e55 20726168 7830202d
I/DEBUG   (  189):     405e6044 20207825 6554000a 695b7478 203d205d
I/DEBUG   (  189):     405e6054 54207825 5b747865 5d312b69 25203d20
I/DEBUG   (  189):     405e6064 6e552078 61686369 202d2072 78257830
I/DEBUG   (  189):     405e6074 000a2020 61696b53 72724520 203a726f
I/DEBUG   (  189):     405e6084 000a7325 45206f4e 726f7272 766e4900
I/DEBUG   (  189):     405e6094 64696c61 67724120 6e656d75 6e490074
I/DEBUG   (  189):     405e60a4 696c6176 704f2064 74617265 006e6f69
I/DEBUG   (  189):     405e60b4 61766e49 2064696c 646e6148 4900656c
I/DEBUG   (  189):     405e60c4 6c61766e 50206469 746e6961 74754f00
I/DEBUG   (  189):     405e60d4 20664f20 6f6d654d 50007972 65737261
I/DEBUG   (  189):
I/DEBUG   (  189): memory near sp:
I/DEBUG   (  189):     62c2ade0 00000000 40000000 00000006 609c7b90
I/DEBUG   (  189):     62c2adf0 62c2ae3c 00000063 00000218 6031d238
I/DEBUG   (  189):     62c2ae00 00000973 6031d238 62c2ae24 4062dd94
I/DEBUG   (  189):     62c2ae10 00000218 6031d238 609c7b90 40623b14
I/DEBUG   (  189):     62c2ae20 62c2b5b4 00000973 60c87af0 00000063
I/DEBUG   (  189):     62c2ae30 00000063 4054ddbf 60c87af0 000000a6
I/DEBUG   (  189):     62c2ae40 4054dd9f 60c87af0 00000000 40507a21
I/DEBUG   (  189):     62c2ae50 0000fffb 602fc8c0 60e43fd8 62c2b52c
I/DEBUG   (  189):     62c2ae60 62c2b5b4 404ea8c7 62c2b5b4 60e43fd8
I/DEBUG   (  189):     62c2ae70 62c2aeac 62c2aeb0 00000000 00000001
I/DEBUG   (  189):     62c2ae80 404f7319 404e8937 404e8ced 602fc8a4
I/DEBUG   (  189):     62c2ae90 0000000a 405e6010 0000000a 602fc8a4
I/DEBUG   (  189):     62c2aea0 62c2b318 60e43fd8 404eb9b9 0178d880
I/DEBUG   (  189):     62c2aeb0 00be8000 00000000 00000000 01785880
I/DEBUG   (  189):     62c2aec0 00be0000 00000000 00000000 43bc2c40
I/DEBUG   (  189):     62c2aed0 433e0000 6310a544 404f3bcf 438f0000
I/DEBUG   (  189):
I/DEBUG   (  189): code around pc:
I/DEBUG   (  189):     4062d328 e5951034 e1540000 e595c030 8a00000e
I/DEBUG   (  189):     4062d338 e3510000 0a000016 e0632004 e0813082
I/DEBUG   (  189):     4062d348 e4d31002 e5532001 e1921401 e081200c
I/DEBUG   (  189):     4062d358 0a000002 e6ff1072 e3510000 1a000019
I/DEBUG   (  189):     4062d368 e2844001 e1500004 2afffff4 e595e024
I/DEBUG   (  189):     4062d378 e1a00005 e28e1001 ebffff92 e3500000
I/DEBUG   (  189):     4062d388 ba00000b e5953028 e1540003 31a04003
I/DEBUG   (  189):     4062d398 eaffffe1 e084200c e6ff3072 e3530000
I/DEBUG   (  189):     4062d3a8 1a00000b e2844001 e1500004 2afffff8
I/DEBUG   (  189):     4062d3b8 eaffffed e3e00000 e3a0c000 e5850018
I/DEBUG   (  189):     4062d3c8 e585c01c e8bd8038 e5854018 e585101c
I/DEBUG   (  189):     4062d3d8 e8bd8038 e5854018 e585301c e8bd8038
I/DEBUG   (  189):     4062d3e8 e92d0ff0 e24dd028 e58d001c e5900010
I/DEBUG   (  189):     4062d3f8 e58d2020 e58d1024 e5d0b006 e5d03007
I/DEBUG   (  189):     4062d408 e5911000 e183240b e3c2b001 e1b0c0ab
I/DEBUG   (  189):     4062d418 e58dc004 01a0000c 0a000061 e59d3020
I/DEBUG   (  189):
I/DEBUG   (  189): code around lr:
I/DEBUG   (  189):     4062dd74 e8bd4038 eafffe22 e3a00000 e8bd8038
I/DEBUG   (  189):     4062dd84 e3a02001 e8bd4038 eafffd95 ebfffd59
I/DEBUG   (  189):     4062dd94 e594001c e3500000 0afffff6 e5941018
I/DEBUG   (  189):     4062dda4 e5851000 e8bd8038 e5903010 e3a02004
I/DEBUG   (  189):     4062ddb4 e5812004 e3a00000 e5d3c004 e5d33005
I/DEBUG   (  189):     4062ddc4 e183240c e5812000 e12fff1e e5903010
I/DEBUG   (  189):     4062ddd4 e52d4004 e5d34006 e5d30008 e5d3c007
I/DEBUG   (  189):     4062dde4 e5d32009 e18cc404 e1822400 e06c1001
I/DEBUG   (  189):     4062ddf4 e1520001 8283300a 80832081 93a00000
I/DEBUG   (  189):     4062de04 87d30081 85d23001 81830400 e8bd0010
I/DEBUG   (  189):     4062de14 e12fff1e e5913000 e5902010 e2833001
I/DEBUG   (  189):     4062de24 e3530801 e92d0070 e5d25006 e5d2c007
I/DEBUG   (  189):     4062de34 e5d26008 e5d20009 2a00001a e18c5405
I/DEBUG   (  189):     4062de44 e1806406 e1550003 21a03005 e282200a
I/DEBUG   (  189):     4062de54 e0650003 e1560000 e082c080 9a000011
I/DEBUG   (  189):     4062de64 e7d24080 e28c2002 e5dc0001 e1900404
I/DEBUG   (  189):
I/DEBUG   (  189): memory map around fault addr 638df000:
I/DEBUG   (  189):     638b0000-638df000 r--
/system/fonts/DroidSansHindi.ttf
I/DEBUG   (  189):     (no map for address)
I/DEBUG   (  189):     638f0000-638f2000 rw-


DroidSansHindi.ttf is my font file.
Can anybody suggest as to why it is happening. I had done similar in JB but
there was no crash.




-- 
+91-9620784884, +91-9620471488
Thanks & regards
Pranjal Nayak

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to