Closed Bug 388106 Opened 19 years ago Closed 18 years ago

exceptions thrown when content-prefs.sqlite is empty

Categories

(Toolkit :: Preferences, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta4

People

(Reporter: dbaron, Assigned: myk)

References

Details

Somehow I ended up with an empty content-prefs.sqlite. This caused me to see this error every time I opened a new browser window: Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.executeSimpleSQL]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///builds/trunk/obj/firefox-debugopt/dist/bin/components/nsContentPrefService.js :: ContentPrefService___dbMigrate0To2 :: line 756" data: no] Source File: file:///builds/trunk/obj/firefox-debugopt/dist/bin/components/nsContentPrefService.js Line: 756 It seems like the code was trying to migrate and repeatedly failing. It seems like we should be able to recover from the file being empty (which could perhaps happen if the disk is full).
Version: 1.8 Branch → Trunk
(In reply to comment #0) > It seems like the code was trying to migrate and repeatedly failing. It seems > like we should be able to recover from the file being empty (which could > perhaps happen if the disk is full). Indeed we should. We already do for some cases of corruption; we should do so for this case as well.
Assignee: nobody → myk
Target Milestone: --- → mozilla1.9 M11
Priority: -- → P3
Target Milestone: mozilla1.9beta3 → mozilla1.9beta4
Depends on: 416208
Fixed by the checkin for bug 416208.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.