Hi Mark,

Thanks for your reply. I forgot t to mention that the ui works if I
create it programatically. I understand that StackOverflow errors are
hard to debug. That's why I think there should be a conf setting for
the maximum allowed depth to isolate "normal" StackOverflow errors
from the ones that could be caused by a bug (eg. a comp tht refreshes
its child which refreshes its parent)...

I resolved the problem by doing programmatic layout. I also saw there
is a getLayoutInflater() in the View class, where I used a getService
() method, could the problem be there? I'm sorry I can't spend more
time on this problem for now (my app is for the GDC2).

Best Regards,
Zied Hamdi
http://into-i.fr

On Jul 17, 6:57 pm, Mark Murphy <[email protected]> wrote:
> ZiedHamdiwrote:
> > 07-17 18:42:41.107: ERROR/AndroidRuntime(1054):
> > java.lang.StackOverflowError
> > 07-17 18:42:41.107: ERROR/AndroidRuntime(1054):     at
> > android.graphics.Canvas.drawText(Canvas.java:1217)
>
> In Android 1.5, when you get a StackOverflowError somewhere in the
> middle of UI rendering code, that is probably because your UI is too
> complex.
>
> Comment out some stuff to lightly simplify your UI until your code can
> run again. Then use hierarchyviewer (in your SDK tools/ directory) to
> examine your UI. If from the root to the deepest leaf, you have 10+
> levels, you probably need to more permanently simplify your UI.
>
> I have some stuff written up about this issue here:
>
> http://androidguys.com/?p=4688
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to