Whatever source code you are looking at does not match the build you are running on. deliverKeyEventToViewHierarchy() is a recursive traversal down the view hierarchy to deliver a key event. Most likely you view hierarchy is too deep. Try using hierarchyviewer to look at it, and simplify it (which will help the performance of your app as well).
On Sat, Apr 4, 2009 at 6:59 PM, Lucius Fox <[email protected]> wrote: > > I am getting a StackOverflow error inside ViewRoot, I would appreciate > some help in troubleshooting it? > I don't understand why it causes a StackOverflow, since from the stack > trace, it is not calling something recursive. > And i don't understand why it report line 2155 as the line for the > exception: > > line 2155 is a if check: > if (sendDone) { > if (LOCAL_LOGV) Log.v( > "ViewRoot", "Telling window manager key is finished"); > try { > sWindowSession.finishKey(mWindow); > } catch (RemoteException e) { > } > } > > > Thread [<3> main] (Suspended (exception StackOverflowError)) > ViewRoot.deliverKeyEventToViewHierarchy(KeyEvent, boolean) line: > 2155 > ViewRoot.handleFinishedEvent(int, boolean) line: 2083 > ViewRoot.handleMessage(Message) line: 1444 > ViewRoot(Handler).dispatchMessage(Message) line: 99 > Looper.loop() line: 123 > ActivityThread.main(String[]) line: 3821 > Method.invokeNative(Object, Object[], Class, Class[], Class, int, > boolean) line: not available [native method] > Method.invoke(Object, Object...) line: 521 > ZygoteInit$MethodAndArgsCaller.run() line: 745 > ZygoteInit.main(String[]) line: 503 > NativeStart.main(String[]) line: not available [native method] > > Thank you. > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

