Closed Bug 462760 Opened 16 years ago Closed 14 years ago

Bookmarks and history do not work.

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: gavin.aiken, Unassigned)

Details

(Whiteboard: [CLOSEME 2010-11-01])

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3

When I launch Firefox 3 the back button is greyed out no matter how many pages I visit, the bookmarks menu is empty, I can't create new bookmarks, and I can't import bookmarks.

I get the following errors in the error console on launch:

Error: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: file:///Applications/Firefox%203.app/Contents/MacOS/components/nsBrowserGlue.js :: bg__initPlaces :: line 389"  data: no]
Source File: file:///Applications/Firefox%203.app/Contents/MacOS/components/nsBrowserGlue.js
Line: 389
----------
Error: Warning: unrecognized command line flag -foreground

Source File: file:///Applications/Firefox%203.app/Contents/MacOS/components/nsBrowserContentHandler.js
Line: 706
----------
Error: uncaught exception: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: file:///Applications/Firefox%203.app/Contents/MacOS/modules/utils.js :: anonymous :: line 97"  data: no]
----------
Error: uncaught exception: [Exception... "Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [nsIDocShellHistory.useGlobalHistory]"  nsresult: "0x8007000e (NS_ERROR_OUT_OF_MEMORY)"  location: "JS frame :: chrome://browser/content/browser.js :: prepareForStartup :: line 844"  data: no]
----------
Error: uncaught exception: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: file:///Applications/Firefox%203.app/Contents/MacOS/modules/utils.js :: anonymous :: line 106"  data: no]
----------


I also see a 'places.sqlite-*.corrupt' file created (or maybe more than one) for every page I visit. It keeps on creating these files every time I browse to a new page.

I have multiple accounts on my Mac and other accounts do not have this problem. I have used sqlite for some development projects so I wondered if that could be the problem. I tried unsetting all shell environment variables but the problem persisted. I tried changing shell back to the OSX default bash (rather than tcsh which I usually use), but the problem was still there. One of the accounts that is ok uses tcsh anyway so this doesn't seem to be the cause.

I also tried removing the Firefox profile completely (I deleted ~/Library/Application Support/Firefox) and restarting. It asked me if wanted to import from Safari etc, I said no, and it started up with a tiny window in the top left of the screen - and the problem with history and bookmarks persisted.

I tried copying the Firefox profile from another working account on the Mac, but the problem still persisted!

I also have a laptop with OSX and my account on there has the exact same problem. i.e. this problem affects multiple machines. 

Reproducible: Always

Steps to Reproduce:
1. Launch Firefox 3
2. History and bookmarks do not work/are greyed out
3. Browse to any page, new file called places.sqlite-1.corrupt created every time


Expected Results:  
Bookmarks and history should work
Any reason you're using -foreground? (not even sure what it does, so maybe you can enlighten on that as well!)
I just double-clicked the application in the OSX Finder, so I presume that option must be sent from there? I'm not using any command line to launch the app.
Component: Bookmarks & History → Storage
Product: Firefox → Toolkit
QA Contact: bookmarks → storage
Component: Storage → Places
QA Contact: storage → places
After a lot of testing I have figured out what causes this problem.

It seems that if the environment variable DYLD_LIBRARY_PATH is set for the login, via the file ~/.MacOSX/environment.plist, this causes the problem.

I removed the file ~/.MacOSX/environment.plist, logged out, logged back in again, and everything was fine.

Note that this issue can be reproduced simply by doing the following in an OSX terminal:

DYLD_LIBRARY_PATH=/usr/lib ; export DYLD_LIBRARY_PATH ; /Applications/Firefox.app/Contents/MacOS/firefox-bin

Not sure therefore is this is a bug but it may be useful to others with the same problem. Maybe Firefox could set the DYLD_LIBRARY_PATH environment appropriately when launching to avoid any possibility of this happening?
Over to firefox->general for lack of BrowserGlue component.
Component: Places → General
Product: Toolkit → Firefox
QA Contact: places → general
(In reply to comment #4)
> Over to firefox->general for lack of BrowserGlue component.

Is this an correct behavior with PPC Mac? 

I'm having the exact same issue on my Power Mac G5 and PowerBook G4 after I installed 10.4.11 and 10.5.6.  However, the problem is only with the trunk.

The problem occurred from December 8, still persists with the latest trunk. Also, I had installed a nightly on a clean 10.4.11 and 10.5.6 many times, but still have the same problem.

This problem occurred only with the PPC Mac. Intel mac doesn't have this problem.  

I followed comment #3, tried to check an clean installed 10.4.11 and 10.5.6 too.  But the STD Mac OS does not have the environment.plist.
This is a mass search for bugs which are in the Firefox General component, are
UNCO, have not been changed for 500 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.