Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] firefox profile uses 100% CPU
Date: Fri, 13 Nov 2015 06:26:49
Message-Id: 1809688.i8MiuxAep3@andromeda
In Reply to: Re: [gentoo-user] firefox profile uses 100% CPU by thelma@sys-concept.com
1 On Thursday, November 12, 2015 08:10:39 PM thelma@×××××××××××.com wrote:
2 > Thelma
3 >
4 > On 11/12/2015 05:30 PM, Walter Dnes wrote:
5 > > On Thu, Nov 12, 2015 at 01:56:28PM -0700, thelma@×××××××××××.com wrote
6 > >
7 > >> I do agree, but I'm looking for a way to fix it. What file should I
8 > >> delete from Firefox profile. I just want to retain bookmarks, passwords
9 > >> etc.
10 > >>
11 > > Do *NOT* delete any files just see. I would suggest the following
12 > >
13 > > course of action...
14 > >
15 > > * Do not start any of the profiles unless the instructions say to
16 > > * Create 2 new profiles; call them "salvage1" and salvage2"
17 > >
18 > > ***IMPORTANT*** If copying any specific file to "salvage1" screws up
19 > > that profile, do ***NOT*** copy it to "salvage2".
20 > >
21 > > * Copy the "places.sqlite" file from the bad profile over top of the
22 > >
23 > > "places.sqlite" file in the "salvage1" profile
24 > >
25 > > * Start up the "salvage1" profile. Try surfing for a few minutes. If
26 > >
27 > > it works, close "salvage1" and copy "places.sqlite" to the same place
28 > > in the "salvage2" profile, and skip "Restoring bookmarks from backups".
29 > >
30 > > "Restoring bookmarks from backups" (ONLY IF places.sqlite IS DAMAGED)
31 > > =====================================================================
32 > > * Copy all the files from the "bookmarksbackup" folder in the bad
33 > >
34 > > profile to the "bookmarksbackup" folder in the "salvage1" profile.
35 > >
36 > > * Start up the "salvage1" profile. Select...
37 > >
38 > > Bookmarks ==> Manage Bookmarks
39 > > From the Bookmarks Manager select...
40 > > Tools ==> Restore
41 > > ...and select a backup. Obviously, the more recent the better. If
42 > > this works, close the browser ("salvage1") and repeat with the
43 > > "salvage2" profile.
44 > >
45 > > =====================================================================
46 > >
47 > > There are several more items...
48 > >
49 > > https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-da
50 > > ta
51 > >
52 > > Passwords are stored in the key3.db and logins.json files.
53 > >
54 > > Site-specific preferences are stored in the permissions.sqlite and
55 > > content-prefs.sqlite files.
56 > >
57 > > Search engines are stored in the search.sqlite file and searchplugins
58 > > folder.
59 > >
60 > > Personal dictionary is stored in persdict.dat
61 > >
62 > > etc, etc. I know that it's painfull, but...
63 > >
64 > > 1) Make sure "salvage1" and "salvage2" are both shut down.
65 > > 2) Copy over *ONE* file listed on the above webpage at a time to the
66 > >
67 > > "salvage1" profile, and launch "salvage1" and try it out.
68 > >
69 > > 3) If it works, shut down "salvage1", and copy the same file over to
70 > >
71 > > the "salvage2" profile. If "salvage1" dies, you've found a culprit.
72 > > Copy the file of the same name from the "salvage2" profile to the
73 > > "salvage1" profile.
74 > >
75 > > 4) GOTO 1 (i.e. "rinse, lather, repeat") and repeat for every file
76 > >
77 > > listed on the webpage I pointed to. There may be more than 1
78 > > corrupted file
79 > >
80 > > After you're finished, you can go to
81 > >
82 > > Tools ==> Switch Profile ==> Manage Profiles
83 > >
84 > > There, you can rename or delete the old profile, and rename "salvage1"
85 > >
86 > > to the name of your old profile. Note that this will only affect the
87 > > name that it is invoked with by the "-P" option. It will not change the
88 > > directory name.
89 >
90 > Thank you for detailed instructions, that was a good idea but I'm
91 > puzzled and surprised by the result.
92 >
93 > I created two new profiles:
94 > salvage1 (new)
95 > salvage2 (new)
96 > test (this profile is damaged)
97 >
98 > Originally started profile salvage1, salvage2 to create all the
99 > necessary files.
100 >
101 > I've copied all the files from: .mozilla/firefox/tscsip8f.test/ (not
102 > sub-folders)
103 > to: salvage1 profile, indeed something is dammage CPU goes 100%
104 > Deleted "salvage1" and recreated it.
105 >
106 > Now, I copied files "one by one" from test profile to salvage1 and
107 > started "salvage1" every time to make sure it work. At the same time I
108 > copied the same file from "test" to "salvage2" (without starting
109 > "salvage2"); I was only starting "salvege1" after each file I copied.
110 > I finished copping all the file from test "one-by-one" starting the
111 > profile "salvage1" and it worked but when I started profile "salvage2"
112 > the CPU when 100%.
113 > So it seems to me every time I was restarting profile "salvage1" Firefox
114 > was correcting the error some how.
115 >
116 > Though, I can not import the bookmarks, I'm on Firefox-bin-38.3.0
117 > There is no entry: Bookmarks ==> Manage Bookmarks
118 > I have: Bookmarks ==> Show All Bookmarks
119 > where I can restore and backup bookmars. I've tried to restore bookmarks
120 > from file: bookmarks-2015-11-12.json
121 > but I'm getting an error message: "Unable to process the backup file."
122 >
123 > --
124 > Thelma
125
126 Thelma,
127
128 Does this mean "salvage1" works, but "salvage2" does not?
129 Then why not simply keep "salvage1" and remove the broken ones?
130
131 --
132 Joost