1
我收到Android Market市場報告中的這個狂野異常。它每週發生4-6次(我們有超過10萬用戶羣)。我將代碼片段附加在堆棧下。我甚至找不到Text.java源代碼。android.graphics.Text.setPaint中的ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: result:3
at android.graphics.Text.setPaint(Native Method)
at android.graphics.Text.setPaint(Text.java:211)
at android.text.Layout.each(Layout.java:350)
at android.text.Layout.decorateText(Layout.java:312)
at android.text.Layout.reflow(Layout.java:410)
at android.text.Layout.reflowFull(Layout.java:369)
at android.text.StaticLayout.<init>(StaticLayout.java:114)
at android.text.StaticLayout.<init>(StaticLayout.java:67)
at android.text.StaticLayout.<init>(StaticLayout.java:51)
at android.widget.TextView.makeNewLayout(TextView.java:5315)
at android.widget.TextView.checkForRelayout(TextView.java:5765)
at android.widget.TextView.setText(TextView.java:2781)
at android.widget.TextView.setText(TextView.java:2649)
at android.widget.TextView.setText(TextView.java:2624)
at com.soakmein.MessageListView$StreamAdapter.getView(MessageListView.java:1042)
at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220)
at android.widget.AbsListView.obtainView(AbsListView.java:1498)
at android.widget.ListView.makeAndAddView(ListView.java:1749)
at android.widget.ListView.fillUp(ListView.java:704)
at android.widget.ListView.fillGap(ListView.java:650)
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:3521)
at android.widget.AbsListView.onTouchEvent(AbsListView.java:2339)
at android.widget.ListView.onTouchEvent(ListView.java:3447)
at android.view.View.dispatchTouchEvent(View.java:3952)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:995)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1034)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1034)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1034)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1034)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1711)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1145)
at android.app.Activity.dispatchTouchEvent(Activity.java:2096)
這是那裏的錯誤時拋出被解僱行:
messageText.setText(Html.fromHtml(text));
這是不夠近的信息來幫助你的問題。 – 2012-07-18 21:12:13
@Recursed看起來像是在android庫中的問題,而不是在代碼中,基於堆棧跟蹤? – assylias 2012-07-19 02:51:28
對我來說,文本看起來好像有時會出現不同於預期的情況,並且沒有辦法知道如何解決它,而不會看到被輸入該方法的內容。 – 2012-07-19 12:31:18