Hi All,
I'm running into a StackOverflowException in
ViewRoot.performTraversals. After looking around for a while I've
concluded that my view hierarchy is probably too deep. My questions
are as follows:

1. Why would this only occur on the HTC Thunderbolt and Samsung Nexus
S? Other older devices running eclair/froyo/gingerbread do not have
this problem. My only theory is that the default stack size that these
two devices allocate for the main thread is unusually small.

2. Is there any way I can profile my stack usage such that I can tell
what would be the most useful to remove? The Hierarchy Viewer is cool
and all, but it does nothing for me in terms of interpreting memory
usage.

3. Is there any way I can offload some of the layout processing that
is done in ViewRoot to another thread? I know that the constructor for
thread takes a max stack size...perhaps I can the layout or something
to some other, new thread.

Thanks in advance,
Sam

-- 
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

Reply via email to