ks32 / CrosswalkNative

Embedded Crosswalk 77 webview based sample project.
95 stars 42 forks source link

Android 10 crash onfocus #16

Open daniponsg1991 opened 4 years ago

daniponsg1991 commented 4 years ago

Dear ks32,

We have upgraded a device to Android 10 and we have noticed that the application crashes when we focus over input-box, textarea, etc.

With other Android versions the application works perfectly.

The exception is:

02-24 11:47:32.109 12906 12906 E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'android.view.WindowManager$LayoutParams android.view.ViewRootImpl.mWindowAttributes' on a null object reference 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1625) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1864) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.view.inputmethod.InputMethodManager.isActive(InputMethodManager.java:1183) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at org.chromium.content.browser.input.InputMethodManagerWrapper.isActive(InputMethodManagerWrapper.java:65) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at org.chromium.content.browser.input.ThreadedInputConnectionFactory$1.run(ThreadedInputConnectionFactory.java:179) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7403) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 02-24 11:47:32.109 12906 12906 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

It seems that the issue is related with the keyboard show process.

Do you have any idea about this issue?

Thanks in advanced.