[android-developers] Re: Very strange StackOverflow exception
Hi fadden, Here is the stack trace: 05-21 08:38:08.050: ERROR/AndroidRuntime(952): Uncaught handler: thread main exiting due to uncaught exception 05-21 08:38:08.098: ERROR/AndroidRuntime(952): java.lang.StackOverflowError 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:97) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:54) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:45) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.makeNewLayout(TextView.java:4769) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.assumeLayout(TextView.java:4669) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.onDraw(TextView.java:3753) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5838) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5944) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.buildDrawingCache(View.java:5617) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.getDrawingCache(View.java:5458) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1422) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1847) 05-21 08:38:08.098:
[android-developers] Re: Very strange StackOverflow exception
But I'm confident I don't deal with so much levels. I count about 30 draw() calls on either ViewGroup or FrameLayout in the stack. You are dealing with quite a number of levels... probably too many of them. On May 21, 4:44 am, Vince vincent.gann...@gmail.com wrote: Hi fadden, Here is the stack trace: 05-21 08:38:08.050: ERROR/AndroidRuntime(952): Uncaught handler: thread main exiting due to uncaught exception 05-21 08:38:08.098: ERROR/AndroidRuntime(952): java.lang.StackOverflowError 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:97) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:54) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:45) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.makeNewLayout(TextView.java:4769) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.assumeLayout(TextView.java:4669) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.onDraw(TextView.java:3753) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5838) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5944) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.buildDrawingCache(View.java:5617) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.getDrawingCache(View.java:5458) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1422) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21
[android-developers] Re: Very strange StackOverflow exception
Indeed, you're right. Which does not explain why a single character can cause the all app to crash :-( Any guess? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Very strange StackOverflow exception
On May 21, 9:30 am, Vince vincent.gann...@gmail.com wrote: Indeed, you're right. Which does not explain why a single character can cause the all app to crash :-( Any guess? It could be that the additional StringBuilder operations for the string concatenation affected something. Could be that the different text caused the layout code to behave differently. It's likely that you went from just barely under to just barely over. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Very strange StackOverflow exception
On May 20, 2:25 pm, Vince vincent.gann...@gmail.com wrote: It's driving me mad. I read on a post that such StackOverflow exception could be caused by a hierarchy 15 levels deep. But I'm confident I don't deal with so much levels. What does the exception stack trace look like? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---