Open Bug 750674 Opened 13 years ago Updated 3 years ago

Keeps creating empty Personal Address Books, for profile on network share, caused by the network connection not being restored after sleep

Categories

(Thunderbird :: Address Book, defect)

12 Branch
x86_64
Windows 7
defect

Tracking

(Not tracked)

People

(Reporter: keepthishidden, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120420145725 Steps to reproduce: Access Address book. The user profile is stored on a network share; this may be a factor. Actual results: Occasionally a new 'Personal Address Book' is created. I don't store my contacts in there; I sync them with GMail so my contacts are under Google-xxxx.xxxx@gmail.com Currently I have 25 'Personal address Book' entries. I cannot delete them, and I haven't as yet been able to find out what triggers the creation of a new one. If I add a contact to one of these address books, it is visible in all 25 of them. So they seem to share the same file, but simply show op 25 times (and counting...). Expected results: There should be only one Personal Address Book.
(In reply to keepthishidden from comment #0) When a new personal address book is created, do you see any error in the Error Console?
Sorry it took awhile to respond, I wanted to make sure that I trapped a session where a new PAB was created. Unfortunately, no errors pertaining to the PAB were logged. (Only error is: Timestamp: 17-5-2012 9:49:32 Error: formatURL: Couldn't find value for key: TIME_SESSION_RESTORED Source File: resource:///components/nsURLFormatter.js Line: 131) But I don't think that's got anything to do with it.
(In reply to keepthishidden from comment #2) I have no idea why this happens, but as you said earlier, it could be because you are storing it on a network share. Couldn't find similar bugs.
Does it also happens in -safe-mode (ie with extension disabled) ?
It also happens in safe mode. I have now found exactly when this occurs, which points to the reason being that the profile is stored on the network: With a running thunderbird, enter standby Resume from standby Several errors are logged (see below) Restart thunderbird and up to 3 new PABs are shown. It's likely that this is caused by the network connection not being restored yet, so soon after waking up. Some errors (there is many): Timestamp: 20-5-2012 14:28:38 Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAbManager.newAddressBook]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://gmcont/content/gmcont.js :: <TOP_LEVEL> :: line 205" data: no] === Timestamp: 20-5-2012 14:28:38 Error: [calStorageCalendar] Message: Error selecting events with recurrence! Connection Ready: true Last DB Error Number: 10 Last DB Error Message: disk I/O error Database File: G:\Synced\Thunderbird Profile\Profiles\gvrs9ypr.default\calendar-data\cache.sqlite Last DB Statement: [object StatementWrapper] Last Statement param [cal_id]: 46800f16-ffa3-4710-95ab-87ecbf45f7c6 Exception: [Exception... "Component returned failure code: 0x80630002 (NS_ERROR_STORAGE_IOERR) [mozIStorageStatementWrapper.step]" nsresult: "0x80630002 (NS_ERROR_STORAGE_IOERR)" location: "JS frame :: file:///G:/Synced/Thunderbird%20Profile/Profiles/gvrs9ypr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calStorageCalendar.js :: cSC_assureRecurringItemCaches :: line 1551" data: no] 1: [file:///G:/Synced/Thunderbird%20Profile/Profiles/gvrs9ypr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calStorageCalendar.js:2607] cSC_logError 2: [file:///G:/Synced/Thunderbird%20Profile/Profiles/gvrs9ypr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calStorageCalendar.js:1558] cSC_assureRecurringItemCaches 3: [file:///G:/Synced/Thunderbird%20Profile/Profiles/gvrs9ypr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calStorageCalendar.js:737] cSC_getItems_ 4: [file:///G:/Synced/Thunderbird%20Profile/Profiles/gvrs9ypr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calStorageCalendar.js:679] null === Timestamp: 20-5-2012 14:28:52 Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAbManager.newAddressBook]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://gmcont/content/gmcont.js :: <TOP_LEVEL> :: line 205" data: no] === Timestamp: 20-5-2012 14:28:52 Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgSendLater.hasUnsentMessages]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://messenger/content/mail-offline.js :: <TOP_LEVEL> :: line 81" data: no] ===
Same issue in bug 762622.
Given details in comment 5, and duplicate bug 762622 (didn't test there), I think we can confirm this. Haven't checked for further dupes yet.
Status: UNCONFIRMED → NEW
Ever confirmed: true
While this is in the queue to be fixed (if anyone picks it up), any idea on how I can get rid of the incorrect PAB listings?
Summary: Keeps creating empty Personal Address Books → Keeps creating empty Personal Address Books, for profile on network share, caused by the network connection not being restored after sleep
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.