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. Overrides for code as well as resources

Does anyone know if there is a equivalent for code?

I'm working with some people on a Froyo port to the Archos 5 IT, which, 
although it ships with Android, doesn't have the home, menu, and back buttons 
so we've had to implement them in the status bar. In order to do this we've 
needed some code changes to frameworks/base, so it would be great if someone 
could point me at a method of doing a vendor overlay for the java sources (and 
yes, I've tried including the code in the overlay file, and unfortunately it 
doesn't work).

Thanks,

Al.
--

* Looking for Android Apps? - Try http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the company number  
6741909. 

The views expressed in this email are those of the author and not necessarily 
those of Funky Android Limited, it's associates, or it's subsidiaries.










> > > website:

2. How to reduced size of Android Emulator come up with SDK

Hi,

I want to reduced the size of Android Emulator i.e. come up
with your SDK ? As Emulator size is greater than
my laptops screen size, unable to see whole content
on simulator.

Regards
Atul

-- 

3. Optimizing image processing algorithms for Android

4. Check Activity Stack from Service

5. How to set static ip for adb in x86 virtualbox img?

6. Why are the standard Android components as ugly as MS Visual Studio components?

7. Want to hire someone to write and app to pull info from my website.