Closed Bug 1216563 Opened 9 years ago Closed 9 years ago

GeckoInputConnection: clearFocus() called from non-UI-Thread

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(fennec42+)

RESOLVED DUPLICATE of bug 1215950
Tracking Status
fennec 42+ ---

People

(Reporter: sebastian, Unassigned)

References

Details

This looks like a regression from the workaround in bug 1211848. This happened while entering text on google.com and rotating the device / accessing the tabs tray. I don't have STR yet.

10-20 16:29:53.758    4679-5523/org.mozilla.fennec_sebastian E/GeckoCrashHandler﹕ >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 48349 ("GeckoInputConnection")
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
            at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556)
            at android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023)
            at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964)
            at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964)
            at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964)
            at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964)
            at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964)
            at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964)
            at android.view.View.clearFocusInternal(View.java:5596)
            at android.view.View.clearFocus(View.java:5579)
            at android.view.ViewGroup.clearFocus(ViewGroup.java:977)
            at org.mozilla.gecko.GeckoInputConnection.showSoftInput(GeckoInputConnection.java:374)
            at org.mozilla.gecko.GeckoInputConnection.notifyIME(GeckoInputConnection.java:939)
            at org.mozilla.gecko.GeckoEditable$8.run(GeckoEditable.java:855)
            at android.os.Handler.handleCallback(Handler.java:739)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at android.os.Looper.loop(Looper.java:148)
            at org.mozilla.gecko.GeckoInputConnection$1.run(GeckoInputConnection.java:516)
            at java.lang.Thread.run(Thread.java:818)
tracking-fennec: --- → ?
Sounds like we should post that whole block to the UI thread when we need the workaround.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
tracking-fennec: ? → 42+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.