title: Timed out waiting on IInputContextCallback with custom keyboard on Android
body: <p>We've developed a custom keyboard for Android and we're facing a weird issue. The issue currently only happens on few devices and on our login website... But it causes our keyboard to hang for a very long time eventually giving the user the option to close or continue to wait.</p>
  
  <p>To be precise we have a custom keyboard which has a login page (fragment webview) that has slow response time for key inputs.</p>
  
  <p>Following stack trace is the important part:</p>
  
  <pre><code>11-17 09:35:07.535 5935-5935/xxx W/InputConnectionWrapper.ICC: Timed out waiting on IInputContextCallback
  </code></pre>
  
  <p>The Android source file can be read here: <a href="https://android.googlesource.com/platform/frameworks/base.git/+/b798689749c64baba81f02e10cf2157c747d6b46/core/java/com/android/internal/view/InputConnectionWrapper.java" rel="noreferrer">https://android.googlesource.com/platform/frameworks/base.git/+/b798689749c64baba81f02e10cf2157c747d6b46/core/java/com/android/internal/view/InputConnectionWrapper.java</a></p>
  
  <p>But the problem is it is waiting on something that I can't see the source for (an aidl file): <a href="https://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/core/java/com/android/internal/view/IInputContext.aidl" rel="noreferrer">https://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/core/java/com/android/internal/view/IInputContext.aidl</a></p>
  
  <p>So I have no idea about what we're doing wrong (other keyboards don't have this issue) and I don't really know how I should debug it. I've tryed accessing the webpage from chrome with no issues also from the app with other keyboards enabled and still no issues.</p>
  
  <p>Any ideas on how to proceed would be greatly appreciated.</p>