Closed Bug 821498 Opened 12 years ago Closed 12 years ago

Pending Reports are not getting sent after fix for Bug 814078

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)

RESOLVED FIXED
B2G C3 (12dec-1jan)
blocking-basecamp +
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
b2g18 --- fixed

People

(Reporter: marcia, Assigned: hub)

References

Details

Attachments

(1 file, 1 obsolete file)

Seen while smoketesting yesterday using the 20121212 build.

I crashed several times during the course of the smoketest, and only one report submitted. I still have 5 reports in the "pending" folder. I tried two different fast wifi access points (Haxxor Room in MV + my home network). Even after connecting to these networks, the reports in pending queue were never submitted.
Hub, can you look into this?
Nominating for bb because this is blocking getting good crash data.
blocking-basecamp: --- → ?
Assignee: nobody → hub
blocking-basecamp: ? → +
Blocks: 814078
(Hub's back from PTO tomorrow)
Target Milestone: --- → B2G C3 (12dec-1jan)
Are these smoke test running on Unagi?
Flags: needinfo?(mozillamarcia.knous)
In an ongoing email thread, Marcia said this:

> Example:
> 
> 1. Wifi off. Generate an OS crash (auto reboot).
> 2. Crash shows up up in pending directory
> 3. Turn wifi on
> 4. Crash stays in pending directory

I guess that's in line with the problem she reported here.
Also, I take it that the steps discussed in bug 814078 comment #33 and later will fix this issue here as well, so I asked to do this work in this bug.
there was a bug where things didn't get sent. Also make sure that prefs.js in the profile has a line like this:

user_pref("app.reportCrashes", true);

It is set by the settings.
This patch should fix a few cases I missed. Not sure if this fixes Marcia's case. But it sure make things better.
Attachment #694554 - Flags: review?(fabrice)
(In reply to Hub Figuiere [:hub] from comment #5)
> user_pref("app.reportCrashes", true);

Well, that also should be set with the prompt that appears when you encounter your first crash and acknowledge to always send them. :)
Yes, all the smoketests run on Unagi and the only devices QA are focusing on ATM are Unagi.

I was able to repeat the STR in Comment 4 moments ago and the same thing happened with an OS crash. I believe Naoki said that is not the case with App crashes but we will have to confirm.

Y(In reply to Hub Figuiere [:hub] from comment #3)
> Are these smoke test running on Unagi?
Flags: needinfo?(mozillamarcia.knous)
Comment on attachment 694554 [details] [diff] [review]
Bug 821498 - Make sure to always send the queued reports too.

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

r=me, but I'd like to know the answer to my question ;)

::: b2g/chrome/content/shell.js
@@ +148,4 @@
>        if (network.state == Ci.nsINetworkInterface.NETWORK_STATE_CONNECTED
>            && network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
>          shell.CrashSubmit.submit(aCrashID);
> +        shell.submitQueuedCrashes();

Isn't the aCrashID crash in the pending queue at this point? If so, we can just use submitQueuedCrashes() here.
Attachment #694554 - Flags: review?(fabrice) → review+
Reworked patch follow fabrice question
Attachment #694554 - Attachment is obsolete: true
Attachment #695487 - Flags: review?(fabrice)
(In reply to Marcia Knous [:marcia] from comment #8)
> Yes, all the smoketests run on Unagi and the only devices QA are focusing on
> ATM are Unagi.

OK, I just wanted to make sure. Thanks.
Comment on attachment 695487 [details] [diff] [review]
Bug 821498 - Make sure to always send the queued reports too.

Adding Vivien to the review in case Fabrice is on holiday. 

This new patch just answer Fabrice question and take proper action.
Attachment #695487 - Flags: review?(21)
Comment on attachment 695487 [details] [diff] [review]
Bug 821498 - Make sure to always send the queued reports too.

This patch addresses Fabrice's comment and looks good to me.
Attachment #695487 - Flags: review?(fabrice)
Attachment #695487 - Flags: review?(21)
Attachment #695487 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/422309d2a072
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 825840
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: