NullPointerException in process com.android.inputmethod.latin

by sawyer jim » Sat, 26 Feb 2011 05:24:14 GMT


Sponsored Links
 Hello Everyone,

When I ran focus monkey test to com.android.settings, I always got a
NullPointerException, the NullPointerException always happended in the
process of com.android.inputmethod.latin. The details log is below:

//=======================log begin================================
// CRASH: com.android.inputmethod.latin (pid 1540)
// Short Msg: java.lang.NullPointerException
// Long Msg: java.lang.NullPointerException
// Build Label: asus/epc1015/epc1015:2.3/EPC1015/eng.kyle.
20110124.175834:eng/test-keys
// Build Changelist: eng.kyle.20110124.175834
// Build Time: 1295867094000
// java.lang.NullPointerException
//  at
android.inputmethodservice.IInputMethodSessionWrapper.executeMessage(IInputMethodSessionWrapper.java:
93)
//  at com.android.internal.os.HandlerCaller
$MyHandler.handleMessage(HandlerCaller.java:61)
//  at android.os.Handler.dispatchMessage(Handler.java:99)
//  at android.os.Looper.loop(Looper.java:123)
//  at android.app.ActivityThread.main(ActivityThread.java:3647)
//  at java.lang.reflect.Method.invokeNative(Native Method)
//  at java.lang.reflect.Method.invoke(Method.java:507)
//  at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
//  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
//  at dalvik.system.NativeStart.main(Native Method)
//
// NOT RESPONDING: com.android.settings (pid 5652)
ANR in com.android.settings (com.android.settings/.LocalePicker)
Reason: keyDispatchingTimedOut
//=======================log end================================

File IInputMethodSessionWrapper.java and Line 93, I pasted the
NullPointerException's context below:
//================code begin============================
91:  case DO_DISPATCH_KEY_EVENT:
92:       HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj;
93:       mInputMethodSession.dispatchKeyEvent(msg.arg1,
94:                         (KeyEvent)args.arg1,
95:                           new InputMethodEventCallbackWrapper(
96:                                           (IInputMethodCallback)args.arg2));
97:     mCaller.recycleArgs(args);
//================code end==============================

My OS version is android gingerbread(2.3).
Had anyone met this issue?
Except a good soul to help me.
Thanks very much.

-- 



Re: NullPointerException in process com.android.inputmethod.latin

by HanWriting » Wed, 11 May 2011 06:57:36 GMT


 hi,
I would like the know the steps to reproduce the crash.
Thanks!

HanWriting <https://market.android.com/developer?pub=Honso>

-- 


Sponsored Links


Other Threads

1. .text alignment problem

hi, everybody.

i made a simple C program.

it use signal.
but, it does not work in my modified kernel.

I think the problem is byte aligned.

Android system binary is aligned  odd( address& 0x01 == 1).

ex)
#strace dalvikvm
..
..
sigaction(SIGILL, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
sigaction(SIGABRT, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
sigaction(SIGBUS, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
sigaction(SIGFPE, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
sigaction(SIGSEGV, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
sigaction(SIGSTKFLT, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
sigaction(SIGPIPE, {0xb0001a99, [], SA_RESTART}, {SIG_DFL}, 0) = 0
..
..
signal handler address is odd.

so, it cause alignment trap

how can i fix it?


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. ImageView 's layout_width and layout_height

Hi,

I have created a ImageView

    BitmapDrawable bitmapDrawalbe = new BitmapDrawable();

        ImageView imageView = new ImageView(this);
        imageView.setBackgroundDrawable(bitmapDrawalbe);


where BitmapDrawable has an attribute of 'Bitmap' and its getWidth and
getHeight are:
   public int getMinimumWidth() {
        return mBitmap.getWidth();
    }

    public int getMinimumHeight() {
        return mBitmap.getHeight();
    }

But when I load my application in HierarchyView, the layout_width is
80 and layout_height is 100, but my Bitmap i put in BitmapDrawable is
96 (width) and 144 (height).
Do I need to set the height/width specifically for my ImageView to
match my backgroundDrawable? Or it will pick up automatically.

Thank you.

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

3. ScrollView and Programmatically Scrolling

4. how to develop Android app?

5. How to display text and picture in a line?

6. Is there a way to navigate android SDK documentation online for multiple releases??

7. issue in emulator compare to HTC Dream