Closed
Bug 895931
Opened 12 years ago
Closed 12 years ago
Firefox for Android often warns about max sane launch timestamps
Categories
(Android Background Services Graveyard :: Product Announcements, defect)
Android Background Services Graveyard
Product Announcements
All
Android
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kats, Assigned: rnewman)
Details
(Whiteboard: [status-firefox23: fixed][status-firefox24: fixed])
Attachments
(2 files)
5.70 KB,
patch
|
rnewman
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1.57 KB,
patch
|
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
I often see this (or equivalent) in logcats I get from people:
W GeckoLogger: fennec_aurora :: AnnounceBrSvc :: Launch time 1374235117536 is later than max sane launch timestamp 127518136746. Ignoring until clock is corrected.
This particular one is in the logcat in the JSON dump at https://crash-stats.mozilla.com/report/index/01cae98c-04ee-4ef0-9b05-322d22130719
It seems to me like this shouldn't happen so often, so I'm filing this bug for investigation. A quick look makes me think that the GlobalConstants.BUILD_TIMESTAMP value is in seconds but being used as milliseconds.
Assignee | ||
Comment 1•12 years ago
|
||
Been meaning to file this myself for a while. Shouldn't be happening at all!
Component: General → Product Announcements
Product: Firefox for Android → Android Background Services
Assignee | ||
Comment 2•12 years ago
|
||
The issue here is that GlobalConstants.BUILD_TIMESTAMP is in seconds when it should be in milliseconds.
Assignee | ||
Comment 3•12 years ago
|
||
Assignee: nobody → rnewman
Severity: normal → major
Status: NEW → ASSIGNED
Flags: needinfo?(nalexander)
Assignee | ||
Updated•12 years ago
|
Summary: Firefox for Android often warnings about max same launch timestamps → Firefox for Android often warns about max sane launch timestamps
Assignee | ||
Comment 4•12 years ago
|
||
Nick, any chance you could land this when inbound builds successfully? I'm on PTO this afternoon.
Attachment #778617 -
Flags: review+
Comment 5•12 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #4)
> Created attachment 778617 [details] [diff] [review]
> Fix. v1
>
> Nick, any chance you could land this when inbound builds successfully? I'm
> on PTO this afternoon.
I expect to land this today.
Flags: needinfo?(nalexander)
Comment 6•12 years ago
|
||
Target Milestone: --- → Firefox 25
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 778617 [details] [diff] [review]
Fix. v1
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Original landing of Product Announcements.
User impact if declined:
No broadcasts.
Testing completed (on m-c, etc.):
Just hit inbound. Will bake for a while, but this bug component is lacking tracking flags...
Risk to taking this patch (and alternatives if risky):
Should be slim.
String or IDL/UUID changes made by this patch:
None.
Attachment #778617 -
Flags: approval-mozilla-beta?
Attachment #778617 -
Flags: approval-mozilla-aurora?
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 9•12 years ago
|
||
Comment on attachment 778617 [details] [diff] [review]
Fix. v1
In lieu of tracking flags, I'll just make a note for myself to come back and make sure this landed to FF23.
Attachment #778617 -
Flags: approval-mozilla-beta?
Attachment #778617 -
Flags: approval-mozilla-beta+
Attachment #778617 -
Flags: approval-mozilla-aurora?
Attachment #778617 -
Flags: approval-mozilla-aurora+
Comment 10•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/0b9fd9d3446d
https://hg.mozilla.org/releases/mozilla-beta/rev/5c46eea500a8
Whiteboard: [status-firefox23:fixed][status-firefox24:fixed]
Assignee | ||
Comment 11•12 years ago
|
||
I have a Nightly from this morning, and this is still occurring in a way that makes no sense at all. I'm going to assume that this commit didn't make it into the Nightly.
If I have time I'll try on an inbound build.
Reporter | ||
Comment 12•12 years ago
|
||
This seems to imply it did:
$ hg log -r 'ancestor(5ceea82a79c7,145bfcabd9a4)'
changeset: 139313:145bfcabd9a4
user: Richard Newman <rnewman@mozilla.com>
date: Fri Jul 19 13:59:42 2013 -0700
summary: Bug 895931 - Firefox for Android often warns about max sane launch timestamps. r=nalexander
Assignee | ||
Comment 13•12 years ago
|
||
Yeah, I see that. But it's a really simple patch!
Reporter | ||
Comment 14•12 years ago
|
||
My best guess is one of those multiplications is overflowing.
On my build with the latest nightly the "max sane" timestamp is 126332179280, which is not a reasonable value either in msec or seconds.
Assignee | ||
Comment 15•12 years ago
|
||
That was my guess, too. I have a local build going with some extra Ls.
Assignee | ||
Comment 16•12 years ago
|
||
This needs to chase the previous fix. I've tested this and also wrote an automated sanity test in the android-sync repo.
Attachment #779955 -
Flags: approval-mozilla-beta?
Attachment #779955 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 17•12 years ago
|
||
Reopening and setting checkin-needed, 'cos inbound is closed and the bug ain't fixed :)
Status: RESOLVED → REOPENED
Keywords: checkin-needed
Resolution: FIXED → ---
Whiteboard: [status-firefox23:fixed][status-firefox24:fixed]
Assignee | ||
Comment 18•12 years ago
|
||
Status: REOPENED → ASSIGNED
Keywords: checkin-needed
Whiteboard: [uplift needed after landing in Nightly]
Target Milestone: Firefox 25 → ---
Comment 19•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 20•12 years ago
|
||
Comment on attachment 779955 [details] [diff] [review]
Trivial follow up to avoid overflow.
Carrying over a+ from earlier.
Attachment #779955 -
Flags: approval-mozilla-beta?
Attachment #779955 -
Flags: approval-mozilla-beta+
Attachment #779955 -
Flags: approval-mozilla-aurora?
Attachment #779955 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 21•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/f61ece780449
https://hg.mozilla.org/releases/mozilla-beta/rev/51ef625ce331
Whiteboard: [uplift needed after landing in Nightly] → [status-firefox23: fixed][status-firefox24: fixed]
You need to log in
before you can comment on or make changes to this bug.
Description
•