Soft Keyboard stopped unexpectedly...

293 views
Skip to first unread message

erta...@gmail.com

unread,
May 19, 2009, 4:25:18 PM5/19/09
to android-porting
I am trying to port Android to my Dell Axim x51v. I use the Android
master branch and kernel 2.6.29 with my own patches. But I have a
strange problem with the soft keyboard. Whenever I focus on a text
input field I get the following error as a dialog:

The application Android keyboard (process
com.android.inputmethod.latin) has stopped unexpectedly. Please try
again.

And the following is the logcat entry. It says something about
"permission denied for this window type"... Can anybody help me with
this?



I/ActivityManager( 924): Start proc com.android.inputmethod.latin for
service com.android.inputmethod.latin/.LatinIME: pid=1188 uid=10001
gids={3003}
D/dalvikvm( 1188): Trying to load lib /system/lib/libjni_latinime.so
0x4373f838
D/dalvikvm( 1188): Added shared lib /system/lib/libjni_latinime.so
0x4373f838
W/InputMethodManager( 961): Ignoring onBind: cur seq=29, given seq=30
D/AndroidRuntime( 1188): Shutting down VM
W/dalvikvm( 1188): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime( 1188): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1188): android.view.WindowManager$BadTokenException:
Unable to add window android.view.ViewRoot$W@43770f48 -- permission
denied for this window type
E/AndroidRuntime( 1188): at android.view.ViewRoot.setView
(ViewRoot.java:449)
E/AndroidRuntime( 1188): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:178)
E/AndroidRuntime( 1188): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
E/AndroidRuntime( 1188): at android.app.Dialog.show(Dialog.java:
231)
E/AndroidRuntime( 1188): at
android.inputmethodservice.InputMethodService.showWindowInner
(InputMethodService.java:1335)
E/AndroidRuntime( 1188): at
android.inputmethodservice.InputMethodService.showWindow
(InputMethodService.java:1278)
E/AndroidRuntime( 1188): at
android.inputmethodservice.InputMethodService
$InputMethodImpl.showSoftInput(InputMethodService.java:388)
E/AndroidRuntime( 1188): at
android.inputmethodservice.IInputMethodWrapper.executeMessage
(IInputMethodWrapper.java:148)
E/AndroidRuntime( 1188): at
com.android.internal.os.HandlerCaller$MyHandler.handleMessage
(HandlerCaller.java:45)
E/AndroidRuntime( 1188): at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime( 1188): at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 1188): at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/AndroidRuntime( 1188): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1188): at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime( 1188): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 1188): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 1188): at dalvik.system.NativeStart.main
(Native Method)
I/Process ( 924): Sending signal. PID: 1188 SIG: 3
I/dalvikvm( 1188): threadid=7: reacting to signal 3
E/ActivityThread( 924): Failed to find provider info for
android.server.checkin
E/Checkin ( 924): Error reporting crash:
java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/crashes
I/dalvikvm( 1188): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 1188): Sending signal. PID: 1188 SIG: 9
I/ActivityManager( 924): Process com.android.inputmethod.latin (pid
1188) has died.
W/ActivityManager( 924): Scheduling restart of crashed service
com.android.inputmethod.latin/.LatinIME in 5000ms
E/ActivityThread( 924): Failed to find provider info for
android.server.checkin
W/Checkin ( 924): Can't log event SYSTEM_SERVICE_LOOPING:
java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/events
W/InputManagerService( 924): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@4373e720
I/ActivityManager( 924): Start proc com.android.inputmethod.latin for
service com.android.inputmethod.latin/.LatinIME: pid=1205 uid=10001
gids={3003}
D/dalvikvm( 1205): Trying to load lib /system/lib/libjni_latinime.so
0x4373f8f8
D/dalvikvm( 1205): Added shared lib /system/lib/libjni_latinime.so
0x4373f8f8
W/InputMethodManager( 961): Ignoring onBind: cur seq=29, given seq=30
D/AndroidRuntime( 1205): Shutting down VM
W/dalvikvm( 1205): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime( 1205): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1205): android.view.WindowManager$BadTokenException:
Unable to add window android.view.ViewRoot$W@43771008 -- permission
denied for this window type
E/AndroidRuntime( 1205): at android.view.ViewRoot.setView
(ViewRoot.java:449)
E/AndroidRuntime( 1205): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:178)
E/AndroidRuntime( 1205): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
E/AndroidRuntime( 1205): at android.app.Dialog.show(Dialog.java:
231)
E/AndroidRuntime( 1205): at
android.inputmethodservice.InputMethodService.showWindowInner
(InputMethodService.java:1335)
E/AndroidRuntime( 1205): at
android.inputmethodservice.InputMethodService.showWindow
(InputMethodService.java:1278)
E/AndroidRuntime( 1205): at
android.inputmethodservice.InputMethodService
$InputMethodImpl.showSoftInput(InputMethodService.java:388)
E/AndroidRuntime( 1205): at
android.inputmethodservice.IInputMethodWrapper.executeMessage
(IInputMethodWrapper.java:148)
E/AndroidRuntime( 1205): at
com.android.internal.os.HandlerCaller$MyHandler.handleMessage
(HandlerCaller.java:45)
E/AndroidRuntime( 1205): at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime( 1205): at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 1205): at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/AndroidRuntime( 1205): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1205): at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime( 1205): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 1205): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 1205): at dalvik.system.NativeStart.main
(Native Method)
I/Process ( 924): Sending signal. PID: 1205 SIG: 3
I/dalvikvm( 1205): threadid=7: reacting to signal 3
E/ActivityThread( 924): Failed to find provider info for
android.server.checkin
E/Checkin ( 924): Error reporting crash:
java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/crashes
I/dalvikvm( 1205): Wrote stack trace to '/data/anr/traces.txt'



erta...@gmail.com

unread,
May 21, 2009, 1:02:36 PM5/21/09
to android-porting
I guess nobody has anything helpful to say about that?

I really want to solve this problem. It seems like a "permission"
problem, but I cannot find what permission.
I did not change anything related to permissions. I just use
android-2.6.29 branch with my own patches for
Dell Axim x51v. And that's all...

Can it be related to ext3 partition I use for the root, system, data
etc??

erta...@gmail.com

unread,
May 22, 2009, 12:32:19 PM5/22/09
to android-porting
Can somebody guide me on how to debug this please?

LatinIME is not working on my device. How can I debug it?

Jim Pai

unread,
May 22, 2009, 11:54:47 PM5/22/09
to android-porting
I have met the situation, but it's happened on PinyinIME.
I checked the log, seems the permission so that the CandidateView
can't be create.

erta...@gmail.com

unread,
May 25, 2009, 2:25:05 AM5/25/09
to android-porting

So is there anything we can do to solve it?

I didn't change anything related to permissions, why would a problem
like this occur?

Michael Trimarchi

unread,
May 25, 2009, 2:25:53 AM5/25/09
to android...@googlegroups.com
Hi,

erta...@gmail.com wrote:
> So is there anything we can do to solve it?
>
> I didn't change anything related to permissions, why would a problem
> like this occur?
>
Can you send me the crash. The best thing is to understand
where the crash is and look at the code. The code is under
packages/inputmethods/LatinIme/src I think.
Michael

erta...@gmail.com

unread,
May 25, 2009, 11:54:48 AM5/25/09
to android-porting

The following is the logcat entry:
On May 25, 9:25 am, Michael Trimarchi <trimar...@gandalf.sssup.it>
wrote:
> Hi,

erta...@gmail.com

unread,
Jun 16, 2009, 2:30:33 PM6/16/09
to android-porting

Just not to leave this unanswered.
This seems related to "policy_mid".

When I use it, the soft keyboard does not show up.

Dianne Hackborn

unread,
Jun 16, 2009, 3:54:51 PM6/16/09
to android...@googlegroups.com
The mid policy is not being maintained, and it would be surprising if it worked at all.  I strongly suggest staying away from it.
--
Dianne Hackborn
Android framework engineer
hac...@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.

Reply all
Reply to author
Forward
0 new messages