Closed Bug 1766258 Opened 3 years ago Closed 3 years ago

Every profile can only be launched once (macOS)

Categories

(Core :: Widget: Cocoa, defect, P2)

Firefox 99
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dan.lach, Unassigned, NeedInfo)

References

Details

Attachments

(4 files, 1 obsolete file)

Attached image Screen Shot 2022-04-25 at 14.42.43.png (obsolete) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

Steps to reproduce:

Using OS Sierra, the program refuses to open.

Actual results:

Upon creating a new profile with Terminal it will open. However, once you quit, a new profile must be once again created or it will not open

Comments do not yield any positive solution

Flags: needinfo?(dan.lach)

Hello I have tried to reproduce the issue on macOS 10.13 but in my case firefox 99.0.1 and 101.0a1(2022-04-27) opened multiple times with the same profile for each firefox
Could you please answer the following questions in order to further investigate this issue

  1. Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Does this issue happen in the latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
  3. Do you have any addons installed if so can you list them?
Flags: needinfo?(dan.lach)
Attachment #9273652 - Attachment is obsolete: true
Flags: needinfo?(dan.lach)

Beta version also not operational

Spohl, if reporter would click the "Report" button in that dialog, is there anything there that might give us a clue where to start looking?

Component: Untriaged → Widget: Cocoa
Flags: needinfo?(spohl.mozilla.bugs)
Product: Firefox → Core
Summary: Firefox will not open → Every profile can only be launched once (macOS)

Agreed, let's start there. In the dialog that gets displayed in your screenshot from comment 4, could you please click on "Report..." and then copy/paste (or attach) the report to this bug? Thanks!

Flags: needinfo?(spohl.mozilla.bugs) → needinfo?(dan.lach)
Severity: -- → S2
Priority: -- → P2
Flags: needinfo?(dan.lach)

Could you check and see if libmozglue.dylib is present under /Applications/Firefox.app/Contents/MacOS?

Flags: needinfo?(dan.lach)

libmozglue.dylib is present

Flags: needinfo?(dan.lach)

Could you please run the following two commands in a Terminal and post the output here?

codesign -dv /Applications/Firefox.app
codesign -vvvv /Applications/Firefox.app

Flags: needinfo?(dan.lach)

Comment # 12 on Bug 1766258 from Stephen A Pohl [:spohl] at 2022-05-30 12:41:17 PDT
Could you please run the following two commands in a Terminal and post the output here?

codesign -dv /Applications/Firefox.app
codesign -vvvv /Applications/Firefox.app

Flags: needinfo?(dan.lach)

This all looks correct and I'm running out of ideas. The only thing I've noticed in one of your logs is that you apparently have System Integrity Protection turned off, which could lead to issues if malicious software were to make changes on your system. But at least in Firefox's case, the bundle seems to be valid and passing all codesign verification checks. Markus, have you seen anything like this before?

Flags: needinfo?(mstange.moz)

I have not seen this before.

Glandium, do you have ideas why libmozglue.dylib can only be opened once per Firefox profile on this machine?

Flags: needinfo?(mstange.moz) → needinfo?(mh+mozilla)

Oh, one more thing that just came to mind: what is the path to your user profile? Does your home directory have any special characters for example?

Flags: needinfo?(dan.lach)

Could you try running this Firefox build and report back if this fixes the issue for you? This is a build that includes the fix for bug 1770484 and there is a chance that this might fix the issue here too:

https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NEIaGjVMQ3Sn1jUWz_iVrQ/runs/0/artifacts/public/build/target.dmg

Flags: needinfo?(dan.lach)

Requesting need-info for comment 16 and comment 17.

Flags: needinfo?(dan.lach)

(In reply to Stephen A Pohl [:spohl] from comment #12)

Could you please run the following two commands in a Terminal and post the output here?

codesign -dv /Applications/Firefox.app
codesign -vvvv /Applications/Firefox.app

(In reply to Stephen A Pohl [:spohl] from comment #17)

Could you try running this Firefox build and report back if this fixes the issue for you? This is a build that includes the fix for bug 1770484 and there is a chance that this might fix the issue here too:

https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NEIaGjVMQ3Sn1jUWz_iVrQ/runs/0/artifacts/public/build/target.dmg

Yes!! Wow, you are good, thank you., very much....problem solved.

Flags: needinfo?(dan.lach)

Fantastic! Please don't use this particular build permanently going forward as you will not be receiving important updates with this build. Hopefully, the patch in bug 1770484 will land soon and a public Nightly build should become available within hours after landing.

Out of curiosity: were you able to check the path to your profile? Was there anything unusual about the path?

Flags: needinfo?(mh+mozilla) → needinfo?(dan.lach)

(In reply to Stephen A Pohl [:spohl] from comment #20)

Fantastic! Please don't use this particular build permanently going forward as you will not be receiving important updates with this build. Hopefully, the patch in bug 1770484 will land soon and a public Nightly build should become available within hours after landing.

Out of curiosity: were you able to check the path to your profile? Was there anything unusual about the path?

Hi...How do I check that?

Flags: needinfo?(dan.lach)

When you type about:support in the URL bar (or click on Help > More Troubleshooting Information), you should be able to see the path under "Profile Folder" halfway down on the Application Basics chart at the top of the page. It would also be interesting to see the path to "Application Binary" and "Update Folder" in this same chart.

Flags: needinfo?(dan.lach)

Profile Folder: /Users/danlach/Library/Application Support/Firefox/Profiles/5wa5yklf.default-default
App Binary: /Applications/Firefox Nightly.app/Contents/MacOS/firefox
Update Folder: /Users/danlach/Library/Caches/Mozilla/updates/Applications/Firefox Nightly

Flags: needinfo?(dan.lach)

(In reply to Dan Lach from comment #23)

Profile Folder: /Users/danlach/Library/Application Support/Firefox/Profiles/5wa5yklf.default-default
App Binary: /Applications/Firefox Nightly.app/Contents/MacOS/firefox
Update Folder: /Users/danlach/Library/Caches/Mozilla/updates/Applications/Firefox Nightly

This is with the new build, correct? Does it show something different with the regular release Firefox that exhibited the issue?

Flags: needinfo?(dan.lach)

Data above pertains to successfully installed and normal operation of Firefox Nightly.

I reinstalled Firefox 101.0 and it still does not load. Terminal spits out the following message:

Abort trap: 6
Mac-mini:~ danlach$ /Applications/firefox.app/Contents/MacOS/firefox -profilemanager
dyld: Library not loaded: @executable_path/libmozglue.dylib
Referenced from: /Applications/firefox.app/Contents/MacOS/firefox
Reason: no suitable image found. Did find:
/Applications/firefox.app/Contents/MacOS/libmozglue.dylib: open() failed with errno=1
/Applications/firefox.app/Contents/MacOS/libmozglue.dylib: stat() failed with errno=1
/Applications/Firefox.app/Contents/MacOS/libmozglue.dylib: open() failed with errno=1
/Applications/Firefox.app/Contents/MacOS/libmozglue.dylib: stat() failed with errno=1
Abort trap: 6
Mac-mini:~ danlach$ /Applications/firefox.app/Contents/MacOS/firefox-bin -profilemanager
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.

###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost

Mac-mini:~ danlach$ _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.

*** Upon creating a new profile in Terminal (Default User1), Firefox 101.0 opens, albeit only once.

Update Folder: /Users/danlach/Library/Caches/Mozilla/updates/Applications/firefox
Profile Folder: /Users/danlach/Library/Application Support/Firefox/Profiles/7o7f3qdk.Default User1
App Binary: /Applications/firefox.app/Contents/MacOS/firefox-bin

Flags: needinfo?(dan.lach)

(In reply to Dan Lach from comment #25)

Profile Folder: /Users/danlach/Library/Application Support/Firefox/Profiles/7o7f3qdk.Default User1

So, does this mean that your profile directory has a space between "Default" and "User1" at the end? That could explain this odd behavior. Could you try launching Firefox from a terminal like this:

/Applications/firefox.app/Contents/MacOS/firefox -p

Then create a new profile that doesn't have a space in its name. It's just a guess, but maybe that could fix this as well. I'm not sure how "Default User1" was created.

Flags: needinfo?(dan.lach)
Status: UNCONFIRMED → NEW
Depends on: 1770484
Ever confirmed: true

Closing as fixed by bug 1770484.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: