Closed Bug 771544 Opened 12 years ago Closed 12 years ago

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java) at android.widget.TextView.updateAfterEdit(TextView.java)

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

ARM
Android
defect
Not set
critical

Tracking

(firefox16 affected)

RESOLVED WORKSFORME
Tracking Status
firefox16 --- affected

People

(Reporter: xti, Unassigned)

Details

(Keywords: crash, Whiteboard: [native-crash])

Crash Data

This bug was filed from the Socorro interface and is 
report bp-b74a8916-2c35-43ea-b7ce-e2d3d2120706 .
============================================================= 

Frame 	Module 	Signature 	Source
0 	libmozalloc.so 	mozalloc_abort 	memory/mozalloc/mozalloc_abort.cpp:19
1 	libc.so 	libc.so@0x1214e 	
2 	libdvm.so 	libdvm.so@0x1edbe 	
3 	dalvik-heap (deleted) 	dalvik-heap @0x1b3e66 	
4 	dalvik-heap (deleted) 	dalvik-heap @0xc2701e 	
5 	dalvik-LinearAlloc (deleted) 	dalvik-LinearAlloc @0x29b856 	
6 	libmozglue.so 	Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash 	mozglue/android/APKOpen.cpp:301
7 	libdvm.so 	libdvm.so@0x1ec32 	
8 	dalvik-heap (deleted) 	dalvik-heap @0x6c194e 	
9 	libdvm.so 	libdvm.so@0x593cb 	
10 	data@app@org.mozilla.fennec-1.apk@classes.dex 	data@app@org.mozilla.fennec-1.apk@classes.dex@0x12ed02 	
11 	libmozglue.so 	Java_org_mozilla_gecko_GeckoAppShell_onChangeNetworkLinkStatus 	mozglue/android/APKOpen.cpp:300

I was using Find in Page feature on a webpage and then I switched to a different website to search something else. When I start typing the new search criteria, Fennec has crashed.

--
Firefox 16.0a1 (2012-07-06)
Device: Asus EEE Transformer TF101
OS: Android 4.0.3
The Java stack trace is:
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
	at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:4039)
	at android.view.ViewRootImpl.invalidateChild(ViewRootImpl.java:722)
	at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:771)
	at android.view.ViewGroup.invalidateChild(ViewGroup.java:4005)
	at android.view.View.invalidate(View.java:8581)
	at android.view.View.invalidate(View.java:8532)
	at android.widget.TextView.updateAfterEdit(TextView.java:6080)
	at android.widget.TextView.finishBatchEdit(TextView.java:6071)
	at android.widget.TextView.endBatchEdit(TextView.java:6054)
	at com.android.internal.widget.EditableInputConnection.endBatchEdit(EditableInputConnection.java:60)
	at android.view.inputmethod.BaseInputConnection.finishComposingText(BaseInputConnection.java:261)
	at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1163)
	at android.view.inputmethod.InputMethodManager.onWindowFocus(InputMethodManager.java:1195)
	at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2564)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=android.view.ViewRootImpl%24CalledFromWrongThreadException%3A+Only+the+original+thread+that+created+a+view+hierarchy+can+touch+its+views.+at+android.view.ViewRootImpl.checkThread%28ViewRootImpl.java%29
Component: General → Keyboards and IME
Whiteboard: [native-crash]
Summary: crash [@ android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java) ] → android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java) at android.widget.TextView.updateAfterEdit(TextView.java)
Can we close this as WORKSFORME? I don't see any Nightly 17 or Aurora 16 crashes CalledFromWrongThreadException within the last 28 days.
Whiteboard: [native-crash]
(In reply to Chris Peterson (:cpeterson) from comment #2)
> Can we close this as WORKSFORME? I don't see any Nightly 17 or Aurora 16
> crashes CalledFromWrongThreadException within the last 28 days.
Aurora and Nightly populations (1-2k) are much smaller than Beta and Release ones (100-600k). As there are only four crashes in Beta, we can't say it's fixed.
Whiteboard: [native-crash]
Sriram, do you know why an editable TextView would be running on our GeckoBackgroundThread instead of the UI thread?
With that stack trace, I don't see it anymore in 16.0 Beta and above.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.