1
現在我面臨一個奇怪的問題,在我的列表視圖中我使用拉來刷新列表它在三星Galaxy S2中工作正常,但是當我在sony設備中測試相同的應用程序時,它是崩潰當我拉刷新列表,它顯示java.lang.StackOverflowError.please檢查錯誤日誌,並給我一個解決方案。sony設備中的Java.lang.StackOverflowError
04-27 17:46:23.874: W/dalvikvm(8663): threadid=1: thread exiting with uncaught exception (group=0x2b547210)
04-27 17:46:23.894: E/AndroidRuntime(8663): FATAL EXCEPTION: main
04-27 17:46:23.894: E/AndroidRuntime(8663): java.lang.StackOverflowError
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.GLES20Canvas.drawTextRun(GLES20Canvas.java:1100)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.GLES20RecordingCanvas.drawTextRun(GLES20RecordingCanvas.java:295)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.TextLine.drawTextRun(TextLine.java:1067)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.TextLine.handleText(TextLine.java:791)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.TextLine.handleRun(TextLine.java:1034)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.TextLine.drawRun(TextLine.java:397)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.TextLine.draw(TextLine.java:195)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.BoringLayout.drawInternal(BoringLayout.java:1019)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.text.BoringLayout.draw(BoringLayout.java:950)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.widget.TextView.onDraw(TextView.java:5067)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.draw(View.java:11082)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10521)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.widget.ListView.drawChild(ListView.java:3219)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.widget.AbsListView.dispatchDraw(AbsListView.java:2099)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.widget.ListView.dispatchDraw(ListView.java:3214)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.draw(View.java:11085)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.widget.AbsListView.draw(AbsListView.java:3419)
04-27 17:46:23.894: E/AndroidRuntime(8663): at com.technoracle.chattrspace_demo_refresh.PullToRefreshView$InternalListView.draw(PullToRefreshView.java:59)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10521)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.draw(View.java:11085)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10521)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2593)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.View.getDisplayList(View.java:10519)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.drawChild(ViewGroup.java:2954)
04-27 17:46:23.894: E/AndroidRuntime(8663): at android.view.ViewGroup.dispatchDr
爲什麼它發生在特定devices.its在s2中工作正常。 – 2013-04-27 13:22:39
感謝您的response.issue在我的layout.it正在工作 – 2013-04-27 13:28:31
你在佈局文件中做了哪些改變來解決這個問題? – 2014-02-26 06:30:08