Closed
Bug 983626
Opened 11 years ago
Closed 11 years ago
InvalidStateError constantly reported in logcat when putting device in sleep mode
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: etienne)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
With current gecko/gaia master running on Nexus S, I constantly get an InvalidStateError reported in logcat:
E/GeckoConsole( 703): [JavaScript Error: "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" {file: "app://system.gaiamobile.org/js/dialer_ringer.js" line: 153}]
STR:
0. Run |adb logcat|
1. Press power, unlock your device
2. Press power to put it to sleep
Expected:
No error in logcat
Actual:
The reported error is being displayed each time.
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → etienne
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8391168 -
Flags: review?(21)
| Assignee | ||
Comment 2•11 years ago
|
||
Alex can you confirm that this fixes this *and* bug 983624? (and dupe appropriately :))
| Reporter | ||
Comment 3•11 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #2)
> Alex can you confirm that this fixes this *and* bug 983624? (and dupe
> appropriately :))
No, it fixes none.
| Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8391168 [details] [review]
Gaia PR
Might be a different issue, clearing the review until then.
Attachment #8391168 -
Flags: review?(21)
| Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #4)
> Comment on attachment 8391168 [details] [review]
> Gaia PR
>
> Might be a different issue, clearing the review until then.
Only doing .pause(), not touching .currentTime fixes both.
| Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #5)
> (In reply to Etienne Segonzac (:etienne) from comment #4)
> > Comment on attachment 8391168 [details] [review]
> > Gaia PR
> >
> > Might be a different issue, clearing the review until then.
>
> Only doing .pause(), not touching .currentTime fixes both.
Well we need to reset the current time :)
But I'm sure Paul will have an idea :)
Flags: needinfo?(paul)
Comment 8•11 years ago
|
||
Clearing needinfo, I walked to Alexandre's desk to debug.
Flags: needinfo?(paul)
| Reporter | ||
Comment 9•11 years ago
|
||
Just commented on github that after debugging with paul, the correct condition is:
> if (this._player.readyState > this._player.HAVE_NOTHING) {
| Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8391168 [details] [review]
Gaia PR
Updated the PR, can you confirm that this fixes the nexus S issue before I ask for review? Thanks.
Attachment #8391168 -
Flags: feedback?(lissyx+mozillians)
| Reporter | ||
Comment 11•11 years ago
|
||
Comment on attachment 8391168 [details] [review]
Gaia PR
Yes, with this change I'm not able to reproduce anymore the InvalidStateError and vibration correctly stops.
Attachment #8391168 -
Flags: feedback?(lissyx+mozillians) → feedback+
| Assignee | ||
Updated•11 years ago
|
Attachment #8391168 -
Flags: review?(21)
Comment 12•11 years ago
|
||
Comment on attachment 8391168 [details] [review]
Gaia PR
r+ with comment addressed.
Attachment #8391168 -
Flags: review?(21) → review+
| Assignee | ||
Comment 13•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 14•11 years ago
|
||
FYI I spotted this one a couple of times on my Inari that does not have this fix. This confirm there is nothing Nexus S specific there.
You need to log in
before you can comment on or make changes to this bug.
Description
•