Going down your stack trace, the first method I can't find in the source 
is TextView.onMeasure2 and searching Google for "TextView.onMeasure2" 
(without the "") turns up some hits that look like they are from China.


On Thursday, May 31, 2012 6:51:43 PM UTC+1, koji wrote:
>
> Hi
>
> My application 's error log in google play shows 
> many StringIndexOutOfBoundsException.
> I want to find the root cause, but it's really hard for me. Because it 
> happens at render time.
> So there is not any my method in stacktrace.  
>
> my stacktrace looks like this.
>
>         java.lang.StringIndexOutOfBoundsException
>>         at java.lang.String.getChars(String.java:1059)
>>         at 
>> android.text.SpannableStringInternal.getChars(SpannableStringInternal.java:102)
>>         at android.text.TextUtils.getChars(TextUtils.java:101)
>>         at android.text.Layout.processToSupportEmoji(Layout.java:3747)
>>         at android.text.Layout.supportTabandEmoji(Layout.java:3783)
>>         at android.text.Layout.measureText2(Layout.java:3141)
>>         at android.text.Layout.getDesiredWidth2(Layout.java:183)
>>         at android.text.Layout.getDesiredWidth2(Layout.java:161)
>>         at android.widget.TextView.onMeasure2(TextView.java:5925)
>>         at android.widget.TextView.onMeasure(TextView.java:6138)
>>         at android.view.View.measure(View.java:8363)
>>         at 
>> android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3169)
>>         at 
>> android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1048)
>>         at 
>> android.widget.LinearLayout.measureHorizontal(LinearLayout.java:732)
>>         at android.widget.LinearLayout.onMeasure(LinearLayout.java:342)
>>         at android.view.View.measure(View.java:8363) 
>
>         ....
>
>
> And I can't find supportTabandEmoji in android git repository.
> My TextView's content sometimes has some ImageSpan, but it depends on 
> use's input, so I don't know what textview set actually.
>
> Did some one see this error before? And is there any work around for this 
> problem?
>
> thanks
>
> koji
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to