Closed Bug 442300 Opened 16 years ago Closed 15 years ago

Service.Main ERROR Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFormHistory2.removeEntry]

Categories

(Cloud Services :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: iav, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1pre) Gecko/2008062606 GranParadiso/3.0.1pre
Build Identifier: 0.1.32

2008-06-27 18:48:14	Service.FormStore	TRACE	Processing command: {"action":"remove","GUID":"1WyJzdWJqZWN0IiwiMTA4NDU5N2M3YjkxYmZhODU2NmU5ZmJhMzRhY2QzZmRmYzYzMGQ1NCJd","depth":0,"parents":[]}
2008-06-27 18:48:14	Service.FormStore	INFO	FormStore got removeCommand: [object Object]
2008-06-27 18:48:14	Service.Main	ERROR	Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFormHistory2.removeEntry] (JS frame :: file:///D:/FirefoxPortableTest/Data/profile/extensions/%7B340c2bbc-ce74-4362-90b5-7c26312808ef%7D/modules/engines/forms.js :: FormStore__removeCommand :: line 242)
2008-06-27 18:48:14	Service.Main	ERROR	JS frame :: file:///D:/FirefoxPortableTest/Data/profile/extensions/%7B340c2bbc-ce74-4362-90b5-7c26312808ef%7D/modules/engines/forms.js :: FormStore__removeCommand :: line 242
JS frame :: file:///D:/FirefoxPortableTest/Data/profile/extensions/%7B340c2bbc-ce74-4362-90b5-7c26312808ef%7D/modules/stores.js :: Store_applyCommands :: line 92
JS frame :: file:///D:/FirefoxPortableTest/Data/profile/extensions/%7B340c2bbc-ce74-4362-90b5-7c26312808ef%7D/modules/async.js :: AsyncGen__cont :: line 236
JS frame :: file:///D:/FirefoxPortableTest/Data/profile/extensions/%7B340c2bbc-ce74-4362-90b5-7c26312808ef%7D/modules/async.js :: anonymous :: line 136
JS frame :: file:///D:/FirefoxPortableTest/Data/profile/extensions/%7B340c2bbc-ce74-4362-90b5-7c26312808ef%7D/modules/util.js :: EL_notify :: line 439
This exception was raised by an asynchronous coroutine.
Initial async stack trace:
unknown (async) :: Engine__sync-2361
module:engines.js:431 :: Engine_sync
module:service.js:688 :: WeaveSvc__syncEngine
module:wrap.js:91 :: WeaveNotifyWrapper
module:service.js:657 :: WeaveSync__syncAsNeeded
module:async.js:136 :: anonymous
module:async.js:264 :: anonymous
module:util.js:439 :: EL_notify

Reproducible: Didn't try
Yep, it looks like this might happen when we try to remove the entry when the SQLite DB has a lock on it. We should gracefully catch the exception and try again on the next cycle.
Assignee: nobody → anarayanan
Targeting this for 0.3.
Target Milestone: -- → 0.3
In my case:
2008-09-05 23:46:30	Service.HistStore	TRACE	Processing command: {"action":"create","GUID":"1220593773630999:http://mail.google.com/mail/#spam","depth":0,"parents":[],"data":{"URI":"http://mail.google.com/mail/#spam","parentGUID":"","time":1220593773630999,"title":"Gmail - Spam - basilevs@gmail.com","transition":1}}
2008-09-05 23:46:30	Service.HistStore	DEBUG	  -> creating history entry: 1220593773630999:http://mail.google.com/mail/#spam
2008-09-05 23:46:30	Service.HistStore	ERROR	Exception caught: Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsINavHistoryService.addVisit]
2008-09-05 23:46:30	Service.HistStore	TRACE	Processing command: {"action":"create","GUID":"1220593485700821:http://mail.google.com/mail/#contacts","depth":0,"parents":[],"data":{"URI":"http://mail.google.com/mail/#contacts","parentGUID":"","time":1220593485700821,"title":"Gmail - Contacts - basilevs@gmail.com","transition":2}}
2008-09-05 23:46:30	Service.HistStore	DEBUG	  -> creating history entry: 1220593485700821:http://mail.google.com/mail/#contacts
2008-09-05 23:46:30	Service.HistStore	ERROR	Exception caught: Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsINavHistoryService.addVisit]

I always have my history pane opened. May that is why last Weave version fails to sync my history at all.
These bugs need to be triaged, removing 0.3 milestone setting.
Target Milestone: 0.3 → Future
Component: Weave → Needs Triage
Product: Mozilla Labs → Weave
Target Milestone: Future → ---
QA Contact: weave → needstriage
cbc, too old?
Should be fixed with Firefox 3.5+
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Assignee: anant → nobody
Component: Needs Triage → General
QA Contact: needstriage → general
You need to log in before you can comment on or make changes to this bug.