Closed
Bug 822392
Opened 12 years ago
Closed 12 years ago
"Restart" button not working
Categories
(Firefox OS Graveyard :: General, defect, P1)
Tracking
(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)
People
(Reporter: cjones, Assigned: nrc)
References
Details
(Keywords: regression, smoketest, Whiteboard: [b2g-gfx])
Attachments
(1 file)
STR
(1) Long-tap power button
(2) Choose "Restart"
The first press seems to be ignored. Pressing the button a second time hangs the UI until the emergency code kicks in.
Reporter | ||
Comment 1•12 years ago
|
||
Gecko 7b93aab393cd0ea45f2b1894c969f6c5b55ef083, gaia df14f48088e107a180811ff73357e76e95acf776
Comment 2•12 years ago
|
||
I attached GDB a few days ago and saw GC, CC and other regular shutdown work. Maybe something got really slow.
Updated•12 years ago
|
blocking-basecamp: ? → +
Comment 4•12 years ago
|
||
Restart works as expected on my unagi build 20121212102240.
Comment 5•12 years ago
|
||
George, can you find a regression window for this?
Assignee: nobody → gwright
Whiteboard: [b2g-gfx]
Comment 6•12 years ago
|
||
I noticed it the first time around Dec 12 on mc.
Updated•12 years ago
|
Target Milestone: --- → B2G C3 (12dec-1jan)
Comment 7•12 years ago
|
||
Raising to P1 -- this is a smoketest blocker.
Keywords: smoketest
Priority: -- → P1
Reporter | ||
Comment 8•12 years ago
|
||
Why didn't the smoketests catch this?
Comment 9•12 years ago
|
||
I have seen it intermittently today, but not consistently.
(In reply to Chris Jones [:cjones] [:warhammer] from comment #8)
> Why didn't the smoketests catch this?
I found the reason why the smoketests have not caught this.
If you reboot the phone, and then restart; you won't see the issue.
If you go to the settings app, and then try to restart, it doesn't restart the phone.
If you let the phone sleep and play with apps and then try to restart, it could potentially lock the phone. I think somewhere along the lines there might be some memory leak or something that's causing this to occur?
Comment 12•12 years ago
|
||
Naoki is right, restarting from the lockscreen works fine.
STR:
1) Open the settings app
2) Hold down the power button
3) Click restart
Expected: Should restart
Actual: Hangs for some seconds, shows settings app again, hangs for some seconds, reboots.
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Bisecting tells me bug 814921 is the cause. And indeed, backing it out makes restarting work again.
Blocks: 814921
Updated•12 years ago
|
Assignee: gwright → ncameron
Reporter | ||
Comment 15•12 years ago
|
||
o_O
Comment 16•12 years ago
|
||
The 'animationend' does not fire and thus we're waiting forever or until it does after a couple of seconds.
Comment 17•12 years ago
|
||
Pointer to Github pull-request
Comment 18•12 years ago
|
||
Comment on attachment 694293 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7105
I noticed we never remove the 'animationend' listener and it thus could execute code twice. Let's not do this.
Attachment #694293 -
Flags: review?(timdream+bugs)
Comment 19•12 years ago
|
||
Comment on attachment 694293 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7105
As a clean up I can r+ this patch, however I am not sure why is this fixing anything, especially with comment 14?
Attachment #694293 -
Flags: review?(timdream+bugs) → review+
Comment 20•12 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #19)
> As a clean up I can r+ this patch, however I am not sure why is this fixing
> anything, especially with comment 14?
It's not fixing the core issue, just a cleanup patch.
Comment 21•12 years ago
|
||
(In reply to Tim Taubert [:ttaubert] from comment #20)
> (In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #19)
> > As a clean up I can r+ this patch, however I am not sure why is this fixing
> > anything, especially with comment 14?
>
> It's not fixing the core issue, just a cleanup patch.
++ for stow away a clean up fix in a blocking+ bug
Comment 22•12 years ago
|
||
Sorry for the confusion, it's not caused by bug 814921. Bisecting was quite hard because there was some build bustage in that range and I had to do it again. Currently verifying.
No longer blocks: 814921
Comment 23•12 years ago
|
||
The first bad revision is:
changeset: 117599:c16bc9826f53
user: Nicholas Cameron <ncameron@mozilla.com>
date: Sat Dec 15 14:39:15 2012 -0800
summary: Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz a=blocking-basecamp
That's what my last bisection tells me. Unfortunately, the back out doesn't build so I can't really verify this.
Blocks: 780692
Comment 24•12 years ago
|
||
(In reply to Tim Taubert [:ttaubert] from comment #23)
> That's what my last bisection tells me. Unfortunately, the back out doesn't
> build so I can't really verify this.
The first suspected bug depends on the currently suspected one, of course. Backing both out makes it work again. Backing only d3ebbae46c23 out does not help so it must be bug 780692.
Comment 25•12 years ago
|
||
Setting 'layers.offmainthreadcomposition.throttle-animations' to 'false' doesn't fix this issue.
Reporter | ||
Comment 26•12 years ago
|
||
How does the restart button work in gaia? That might help us figure out where to look.
Comment 27•12 years ago
|
||
(In reply to Chris Jones [:cjones] [:warhammer] from comment #26)
> How does the restart button work in gaia? That might help us figure out
> where to look.
It's starting two CSS animations and waits for the animationend event for both of these and then calls navigator.mozPower.reboot() or .powerOff().
Comment 28•12 years ago
|
||
Restarting works again with the first patch from bug 822231. The animation looks a little different but that may be because I'm missing the second patch which doesn't apply. Looks like we just need to wait for bug 822231?
Comment 30•12 years ago
|
||
Just to confirm, the two now r+'ed patches from bug 822231 fix this issue.
Comment 31•12 years ago
|
||
I wonder if we should not reboot/powerOff after a timeout instead of waiting for animationend event which may be less reliable.
Just a thought, but what do you think ?
Comment 32•12 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #31)
> I wonder if we should not reboot/powerOff after a timeout instead of waiting
> for animationend event which may be less reliable.
Or both -- the animationend trigger is nice and smooth when it's working but if we're still around after 3 seconds (or whatever threshold) just kill it anyway.
Comment 33•12 years ago
|
||
Closing based on #30, that's landed now.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 34•12 years ago
|
||
Dylan> should we file a bug for using setTimeout in addition to the animation events ?
Updated•12 years ago
|
Comment 35•12 years ago
|
||
Issue no longer appears to be occurring on an Unagi device running the following build:
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/af9270e8f205
Gaia: a78ebf426840b5ef08c0cc3e437ad30aba3e2528
Build: 20130318070202
Verifying as fixed.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•