Closed Bug 872116 Opened 12 years ago Closed 12 years ago

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

Categories

(Testing :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: emorley, Assigned: emorley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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
Attached patch Patch v1 (deleted) — Splinter 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+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: