Closed Bug 636602 Opened 13 years ago Closed 13 years ago

Android crash reporter crashes

Categories

(Toolkit :: Crash Reporting, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0+ ---

People

(Reporter: jdm, Assigned: blassey)

Details

(Keywords: crash)

Attachments

(1 file, 1 obsolete file)

I've seen Fennec crash and bring up the reporter app, but then the reporter app appears to crash.  From logcat:

I/GeckoCrashReport(12465): sendReport: /data/data/org.mozilla.fennec/mozilla/Crash Reports/pending/0510b74f-54cc-2b9f-51ffd321-55589558.dmp
I/GeckoCrashReport(12465): server url: https://crash-reports.mozilla.com/submit
W/dalvikvm(12465): threadid=17: thread exiting with uncaught exception (group=0x4001dc20)
E/AndroidRuntime(12465): Uncaught handler: thread Thread-9 exiting due to uncaught exception
E/AndroidRuntime(12465): java.lang.NoSuchFieldError: android.os.Build.CPU_ABI2
E/AndroidRuntime(12465): 	at org.mozilla.fennec.CrashReporter.sendReport(CrashReporter.java:258)
E/AndroidRuntime(12465): 	at org.mozilla.fennec.CrashReporter$1.run(CrashReporter.java:134)
E/AndroidRuntime(12465): 	at java.lang.Thread.run(Thread.java:1096)
I think at minimum investigation of this should block, because I'm unsure if any of the crashes I'm trying to send are making it to the crash-stats servers.
OS: Linux → Android
Hardware: x86 → ARM
tracking-fennec: ? → 2.0+
Attached patch patch v.1 (obsolete) — Splinter Review
not sure I really like this, but try try try.

I was thinking about doing something in the catch, but figured if the field isn't there in the report, we know an exception occurred.
Attachment #515832 - Flags: review?(blassey.bugs)
Comment on attachment 515832 [details] [diff] [review]
patch v.1

doug, can you just put a try catch in sendPart, rather than.... this?
Comment on attachment 515832 [details] [diff] [review]
patch v.1

brad and I spoke.  we can be a little tighter with the try{}'s
Attachment #515832 - Flags: review?(blassey.bugs) → review-
Assignee: doug.turner → blassey.bugs
Attached patch patchSplinter Review
Attachment #515832 - Attachment is obsolete: true
Attachment #515978 - Flags: review?(doug.turner)
Comment on attachment 515978 [details] [diff] [review]
patch



>       sendPart(os, boundary, "Android_Model", Build.MODEL);
>       sendPart(os, boundary, "Android_Board", Build.BOARD);
>       sendPart(os, boundary, "Android_Brand", Build.BRAND);
>-      sendPart(os, boundary, "Android_CPU_ABI", Build.CPU_ABI); 
>-      sendPart(os, boundary, "Android_CPU_ABI2", Build.CPU_ABI2);
>       sendPart(os, boundary, "Android_Device", Build.DEVICE);
>       sendPart(os, boundary, "Android_Display", Build.DISPLAY);
>       sendPart(os, boundary, "Android_Fingerprint", Build.FINGERPRINT);

So we require at least version 4.

>-      if (Build.VERSION.SDK_INT >= 8)
>-        sendPart(os, boundary, "Android_Hardware", Build.HARDWARE);
>+      sendPart(os, boundary, "Android_CPU_ABI", Build.CPU_ABI); 
>+      if (Build.VERSION.SDK_INT >= 8) {
>+        try {
>+          sendPart(os, boundary, "Android_CPU_ABI2", Build.CPU_ABI2);
>+          sendPart(os, boundary, "Android_Hardware", Build.HARDWARE);
>+        } catch (Exception ex) {
>+          Log.e("GeckoCrashReporter", "Exception while sending SDK version 8 keys", ex);
>+        }

Why do we need this try?  Lets remove it, and r+
Attachment #515978 - Flags: review?(doug.turner) → review+
(In reply to comment #7)
> 
> So we require at least version 4.
and that's enforced by our manifest https://mxr.mozilla.org/mozilla-central/source/embedding/android/AndroidManifest.xml.in#9
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: