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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gerard-majax, Assigned: etienne)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
vingtetun
: review+
gerard-majax
: feedback+
Details | Review
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: nobody → etienne
Attached file Gaia PR
Attachment #8391168 - Flags: review?(21)
Alex can you confirm that this fixes this *and* bug 983624? (and dupe appropriately :))
(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.
Comment on attachment 8391168 [details] [review] Gaia PR Might be a different issue, clearing the review until then.
Attachment #8391168 - Flags: review?(21)
(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.
(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)
Clearing needinfo, I walked to Alexandre's desk to debug.
Flags: needinfo?(paul)
Just commented on github that after debugging with paul, the correct condition is: > if (this._player.readyState > this._player.HAVE_NOTHING) {
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)
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+
Attachment #8391168 - Flags: review?(21)
Comment on attachment 8391168 [details] [review] Gaia PR r+ with comment addressed.
Attachment #8391168 - Flags: review?(21) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: