Closed
Bug 945829
Opened 11 years ago
Closed 11 years ago
Metrofox hangs on startup when trying to show the profile chooser dialog
Categories
(Firefox for Metro Graveyard :: General, defect, P2)
Tracking
(firefox28 verified, firefox29 verified)
VERIFIED
FIXED
Firefox 29
People
(Reporter: kats, Assigned: bbondy)
References
Details
(Keywords: regression, Whiteboard: [beta28] p=1)
Crash Data
Attachments
(1 file, 2 obsolete files)
4.42 KB,
patch
|
bbondy
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Previously when working on Metro I had set the option to always show the profilemanager profile chooser dialog on startup. On Metrofox that usually did nothing and would just start Metrofox directly, while starting in desktop mode it would show the dialog. Recently (sometime in the last ~10 days) Metrofox has started to hang under these conditions. Attaching Visual studio shows that it is trying to show the modal dialog for the profile manager.
Updated•11 years ago
|
Blocks: metrov1backlog
Comment 1•11 years ago
|
||
There are a few cases here that can launch this dialog - parameters on shortcuts and we also store a flag in hte profile ini file - http://mxr.mozilla.org/mozilla-central/ident?i=ShowProfileManager http://mxr.mozilla.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp#2297 http://mxr.mozilla.org/mozilla-central/source/toolkit/profile/nsToolkitProfileService.cpp#906
Whiteboard: [triage] → [release28]
Updated•11 years ago
|
Blocks: metrov1backlog
Assignee | ||
Comment 2•11 years ago
|
||
I think we should just ignore the profile manager flag on Metro for v1
Assignee | ||
Comment 3•11 years ago
|
||
p=1
Reporter | ||
Comment 4•11 years ago
|
||
In case anybody else runs into this, I worked around it by commenting out the line at http://mxr.mozilla.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp?rev=bd024cf6af34#2297
Updated•11 years ago
|
Whiteboard: [release28] → [beta28] p=0
Updated•11 years ago
|
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: [beta28] p=0 → [beta28] p=1
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8345354 -
Flags: review?(jmathies)
Comment 8•11 years ago
|
||
Comment on attachment 8345354 [details] [diff] [review] rev1 XRE_GetWindowsEnvironment() is ifdef'd into XP_WIN builds only which is going to make this messy. Maybe add a helper function in nsAppRunner with the ifdef's GetWindowsEnvironment call to simplify?
Attachment #8345354 -
Flags: review?(jmathies) → review-
Assignee | ||
Comment 9•11 years ago
|
||
Talked about making the environment type call cross platform but bsmedberg x'ed the idea. I think having a helper on a helper is a bit ugly, so just going to add in the ifdefs to each call. I think w can propose and find a better way in a diff bug that won't hold this up if we want to. This will just uses our previous convention for this kind of thing.
Assignee | ||
Comment 10•11 years ago
|
||
Actually we can go with your idea and get past my gripe about helper on helper just by making it called ShouldShowProfileManager() and not something like IsMetro. Maybe you meant that originally :) In any case I'll do that so we only have one ifdef
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8345354 -
Attachment is obsolete: true
Attachment #8346066 -
Flags: review?(jmathies)
Updated•11 years ago
|
Crash Signature: [@ @0x0 | _MD_MemMap | PR_MemMap | nsZipHandle::Init(nsIFile*, nsZipHandle**, PRFileDesc**)]
Comment 12•11 years ago
|
||
Comment on attachment 8346066 [details] [diff] [review] rev2 Review of attachment 8346066 [details] [diff] [review]: ----------------------------------------------------------------- What happen when we drop out of this, do we still get a default profile loaded? ::: toolkit/xre/nsAppRunner.cpp @@ +584,5 @@ > +{ > +#if defined(XP_WIN) > + return XRE_GetWindowsEnvironment() == WindowsEnvironmentType_Desktop; > +#else > + return false; return true?
Attachment #8346066 -
Flags: review?(jmathies) → review+
Updated•11 years ago
|
Crash Signature: [@ @0x0 | _MD_MemMap | PR_MemMap | nsZipHandle::Init(nsIFile*, nsZipHandle**, PRFileDesc**)] → [@ @0x0 | _MD_MemMap | PR_MemMap | nsZipHandle::Init(nsIFile*, nsZipHandle**, PRFileDesc**)]
[@ RtlpWaitOnCriticalSection | arena_malloc | je_malloc | nsStringBuffer::Alloc(unsigned __int64)]
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #12) > Comment on attachment 8346066 [details] [diff] [review] > rev2 > > Review of attachment 8346066 [details] [diff] [review]: > ----------------------------------------------------------------- > > What happen when we drop out of this, do we still get a default profile > loaded? > > ::: toolkit/xre/nsAppRunner.cpp > @@ +584,5 @@ > > +{ > > +#if defined(XP_WIN) > > + return XRE_GetWindowsEnvironment() == WindowsEnvironmentType_Desktop; > > +#else > > + return false; > > return true? Yep oops, fixed. Try would have caught it but thanks for catching it early :D > What happen when we drop out of this, do we still get a default profile > loaded? From my testing we get the default profile
Assignee | ||
Comment 14•11 years ago
|
||
Carrying forward r+
Attachment #8346066 -
Attachment is obsolete: true
Attachment #8346100 -
Flags: review+
Assignee | ||
Comment 15•11 years ago
|
||
I'll be out a lot today (on PTO) and inbound is closed now, this passes try tests, marking checkin-needed in case someone gets to it before me.
Keywords: checkin-needed
Comment 16•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/00a28ea962f2 Please make sure your patch includes a commit message next time. Thanks :)
Keywords: checkin-needed
Whiteboard: [beta28] p=1 → [beta28] p=1[fixed-in-fx-team]
Comment 17•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/00a28ea962f2
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [beta28] p=1[fixed-in-fx-team] → [beta28] p=1
Target Milestone: --- → Firefox 29
Assignee | ||
Comment 18•11 years ago
|
||
Comment on attachment 8346100 [details] [diff] [review] rev3 [Approval Request Comment] Bug caused by (feature/regressing bug #): 924860 User impact if declined: Always show profile manager would hang Metro Firefox on startup. Testing completed (on m-c, etc.): It's been on m-c for a couple days. Risk to taking this patch (and alternatives if risky): very low String or IDL/UUID changes made by this patch: none
Attachment #8346100 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8346100 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 19•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/cac87bf8f6ec
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Updated•11 years ago
|
Target Milestone: Firefox 29 → Firefox 28
Reporter | ||
Comment 20•11 years ago
|
||
Target milestone reflects what was on m-c when the bug landed. Status-firefoxXX flags track uplifts to other branches/trains.
Target Milestone: Firefox 28 → Firefox 29
Comment 21•11 years ago
|
||
Kartikaya, can you please confirm this is working for you now with Firefox 28 and 29?
Flags: needinfo?(bugmail.mozilla)
Reporter | ||
Comment 22•11 years ago
|
||
I tried a few days ago after this bug landed on 29, and it would show me the profile chooser dialog and then start the non-metro interface of Firefox. I could switch to the metro interface from the menu. So I would consider this bug fixed, yes.
Flags: needinfo?(bugmail.mozilla)
Comment 23•11 years ago
|
||
Thanks for your help Kartikaya.
You need to log in
before you can comment on or make changes to this bug.
Description
•