Output TBPL compatible failure messages for Android logcat "FATAL EXCEPTION: main"

RESOLVED FIXED in mozilla24

Status

defect
RESOLVED FIXED
6 years ago
3 years ago

People

(Reporter: emorley, Assigned: emorley)

Tracking

(Blocks 1 bug)

Trunk
mozilla24
ARM
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Periodically we're seeing failed runs whose logcats show errors of the form:
{
01-01 00:00:49.676 E/AndroidRuntime( 1230): FATAL EXCEPTION: main
01-01 00:00:49.676 E/AndroidRuntime( 1230): java.lang.NoSuchMethodError: 
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at com.android.launcher2.LauncherApplication.onCreate(LauncherApplication.java:37)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4244)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.app.ActivityThread.access$3000(ActivityThread.java:125)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.os.Handler.dispatchMessage(Handler.java:99)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.os.Looper.loop(Looper.java:123)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at android.app.ActivityThread.main(ActivityThread.java:4627)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at java.lang.reflect.Method.invokeNative(Native Method)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at java.lang.reflect.Method.invoke(Method.java:521)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at com.android.INFO: sending rebt command
sent cmd: push /data/data/com.mozilla.SUTAgentAndroid/files/update.info 30
recv'ing...
internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-01 00:00:49.676 E/AndroidRuntime( 1230): 	at dalvik.system.NativeStart.main(Native Method)
}

We should add support for parsing the logcat for "FATAL EXCEPTION" (and generate a TBPL compatible failure line), similar to how we now do for uncaught java exceptions:
http://mxr.mozilla.org/mozilla-central/source/build/mobile/remoteautomation.py#92
Posted patch Patch v1Splinter Review
The format is the same as the "REPORTING UNCAUGHT EXCEPTION" style failures, so this should be all we need :-)
Attachment #749380 - Flags: review?(jmaher)
Comment on attachment 749380 [details] [diff] [review]
Patch v1

Review of attachment 749380 [details] [diff] [review]:
-----------------------------------------------------------------

more exceptions!
Attachment #749380 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/bc3da2083a3d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
See Also: → 1311528
You need to log in before you can comment on or make changes to this bug.