Soft keyboard errors with 1.5

by Rmac » Wed, 29 Apr 2009 07:53:35 GMT


Sponsored Links
  have views in my application that contain TextView components.  When
clicking them to enter text I will get either one of the two sample
stack traces below (mostly StackOverflowError) before the app is
forced to close. Only happens with the soft keyboard in 1.5
regardless whether the input mode is resize or pan... or compiled with
1.1 or 1.5 targets. Any suggestions?

Stack trace 1:

java.lang.IllegalArgumentException
at android.view.Surface.lockCanvasNative(Native Method)
at android.view.Surface.lockCanvas(Surface.java:196)
at android.view.ViewRoot.draw(ViewRoot.java:1175)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3948)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)

Stack trace 2:

java.lang.StackOverflowError
at android.text.Layout.measureText(Layout.java:1477)
at android.text.Layout.getHorizontal(Layout.java:529)
at android.text.Layout.getHorizontal(Layout.java:513)
at android.text.Layout.getPrimaryHorizontal(Layout.java:498)
at android.text.Layout.getCursorPath(Layout.java:1094)
at android.widget.TextView.onDraw(TextView.java:3839)
at android.view.View.draw(View.java:5838)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.View.draw(View.java:5841)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.View.draw(View.java:5841)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.View.draw(View.java:5841)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.View.draw(View.java:5841)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.View.draw(View.java:5841)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
at android.view.View.draw(View.java:5841)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
at



Soft keyboard errors with 1.5

by Dianne Hackborn » Wed, 29 Apr 2009 09:23:26 GMT


 or the second, it's because your view hierarchy is too deep, and doesn't
really have anything to do with the IME.

On Tue, Apr 28, 2009 at 4:53 PM, Rmac <ry...@mac.com> wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Saving a file in .xls format and storing it in a particular location.

Hi,

I am making an activity where we need to save a file in the .xls/.csv format
at a user defined location.

How could this be implemented ? Pointers would be highly appreciated.

Thanks.

Cuil

-- 

2. How to Create language package for android

Hello experts,



              I need to support a Regional language in my android
device .So  guess I need to develop

              language package .And also I am aware that ,I also need
to edit Firmware


              I am totaly new to this area somebody point me right
direction.





              Thanks for your valuable time.



 
Regards,

-- 

3. How to implement a keypad driver

4. C2DM Push Message error on device

5. Mirdak di kelapa gading w/ lesjaw

6. Inputs from the Android Camera

7. no ant template for android-9