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. Samsung Galaxy S dengan Froyo XXJPO Update

Guys,
kemarin baru nyoba update lagi SGS.
Pertama dicoba update ke official ROM release DXJPA, hasilnya lelet
super duper lelet. Rasanya pengen ngebanting aja.
Lalu putuskan untuk update XXJPO.
Pertama harus downgrade dulu ke XWJPM6 karena recovery masih 2e, bukan yang 3e

URL: http://forum.xda-developers.com/showthread.php?t=817703
Setelah update dan tweaking, didapat hasil di Quadrant = 1480. Not bad ..
Perlu beberapa tweaking lagi, tapi resiko menurut saya.
Karena ini saja sudah lancar dan tidak lagging.

Ada beberapa minus aplikasi dan font.
1. Coco Chukcy (CMIIW) = font yang saya suka tapi tidak ada.
2. Aplikasi semua Google (Maps, Latitude,dll) tidak ada.

Gimana ya cara install nya ? dicari di Market koq tidak ada.

Thanks

- Rio.Martin -

-- 
===============
"

2. [WTA] Rooting CSL DroidPad Mi700

As subject, Abang gue baru beli ni barang, trus nanya cara install flash...
ane bilang bukannya froyo dah pake flash? dia bilang ga ada...
nah gue bilang aja. bisa-bisa aja tapi harus rooting dulu... trus dia nanya
lagi "Caranya gimana?" nah berhubung ane ga pernah megang barangnya dan ane
cuma tau modding GTi5700 aka Spica ane jawab... "Ga' Tau..."

apakah ada suhu-suhu tau caranya?

sebelumnya terima kasih...

-- 
Viva Otaku, Viva Open Source, Let The World Know that we're exist!

-- 
===============
"

3. Reading the native Music Player

4. What is Cursor??

5. looking for android games (source code + rights) to buy

6. Map Overlays Null Pointer Exception..pls help

7. IMAP Version in android