Closed Bug 792887 Opened 12 years ago Closed 12 years ago

Out of memory when syncing tabs

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rnewman, Unassigned)

Details

Attachments

(7 files)

Thought I'd capture this. Sync is failing when extracting tabs. Error creating record: [JavaScript Error: "out of memory" {file: "resource:///modules/sessionstore/SessionStore.jsm" line: 4153}] Stack trace: ssi_toJSONString()@resource:///modules/sessionstore/SessionStore.jsm:4153 < ssi_getBrowserState()@resource:///modules/sessionstore/SessionStore.jsm:1376 < ss_getBrowserState()@resource:///modules/sessionstore/SessionStore.jsm:111 < getAllTabs()@resource:///modules/services-sync/engines/tabs.js:128 < createRecord()@resource:///modules/services-sync/engines/tabs.js:169 < SyncEngine__createRecord()@resource://services-sync/engines.js:642
This is such a weird one. I created a new profile and as I'm setting up the account, it gets to about 80/90% and then crashes. That's a fresh profile. Is it possible some corrupted data in the cloud is causing this?
Not corruption in the usual sense; the payload would not be successfully decrypted if it wasn't identical to the data that a client uploaded. Something might have changed in sessionstore to cause it to choke on data it previously produced. And certainly nothing Sync does (outside of js-ctypes crypto) should ever cause Firefox to crash. Can you provide a log from the crash? about:crashes might have a record.
Attached file Sync Log 01
Attached file Sync Log 02
Attached file Sync Log 03
Attached file Sync Log 04
Attached file Sync Log 05
I seemingly had a bit of a respite with a new profile. However yesterday, since adding my phone back to my sync account, I've had constant crashes again.
Do you still get crashes if you uncheck Tabs in Sync Preferences?
I'm still getting failures with Sync. Though the last one didn't cause a crash. That said, it's started crashing my Fennec. Thought this may be of interest: 1349302616890 Sync.Store.Bookmarks WARN Failed to apply incoming record XDm7X8_JlBH9 1349302616890 Sync.Store.Bookmarks WARN Encountered exception: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavBookmarksService.insertBookmark] Stack trace: BStore_create()@resource:///modules/services-sync/engines/bookmarks.js:637 < Store_applyIncoming()@resource://services-sync/engines.js:239 < BStore_applyIncoming()@resource:///modules/services-sync/engines/bookmarks.js:525 < applyIncomingBatch()@resource://services-sync/engines.js:207 < doApplyBatch()@resource://services-sync/engines.js:759 < resource://services-sync/engines.js:866 < resource://services-sync/record.js:608 < Channel_onDataAvail()@resource:///modules/services-sync/resource.js:522 < <file:unknown> 1349302616897 Sync.Engine.History INFO 162 outgoing items pre-reconciliation 1349302623691 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: --GFCski7uAv 1349302623842 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: -4DKqSqEXFZr 1349302623893 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: -7PmNFOz-cyi 1349302624212 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: -MfUgHyZ-Q-v 1349302624252 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: -PebbcvWUjYU 1349302624411 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: -XmD4ddhq1Sv 1349302625202 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: 0DwxkHNVyTq9 1349302627408 Sync.Engine.History WARN DATA LOSS: Both local and remote changes to record: 13u-0ojEfMtK 1349302628232 Sync.Status DEBUG Status for engine history: error.engine.reason.unknown_fail 1349302628232 Sync.Status DEBUG Status.service: success.status_ok => error.sync.failed_partial 1349302628232 Sync.ErrorHandler DEBUG history failed: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS JS Stack trace: Res_get@resource.js:400 < SyncEngine__processIncoming@engines.js:873 < SyncEngine__sync@engines.js:1284 < WrappedNotify@util.js:142 < Engine_sync@engines.js:481 < _syncEngine@service.js:1399 < onNotify@service.js:1292 < WrappedNotify@util.js:142 < WrappedLock@util.js:97 < _lockedSync@service.js:1192 < @service.js:1183 < WrappedCatch@util.js:71 < sync@service.js:1171
Tried turning off bookmark syncing too. Still seeing the issue sadly.
(In reply to Paul [sabret00the] from comment #12) > Tried turning off bookmark syncing too. Still seeing the issue sadly. Still seeing which issue?
Everything on the browser turns black before it crashes.
So you're saying that with Tabs and Bookmarks both unchecked, desktop's entire chrome UI goes black and the process dies during your sync?
Not the chrome, the actual page. I'll have one of four things happen. 1. Sync encounters error, toast pops up, page goes black and I have to change tab to restore the content 2. Sync encounters error, toast pops up, page goes black and chrome turns completely to glass (tabs disappear, even the toast is glass) and I can guess where the X is, click it and continue browsing when the chrome reappears). 3. Sync encounters error, toast pops up, page goes black and Firefox crashes with an empty report. 4. Sync encounters error, toast pops up, page goes black and chrome turns completely to glass (tabs disappear, even the toast is glass) and then Firefox crashes with an empty crash report.
If there's anything from about:memory I can add, be sure to let me know what. Also if there's an extension I can install to help diagnose this, I'd be happy to install that too.
I removed my mobile profile (uninstalled) and created a new one. And now every time Fennec tries an initial sync, Fennec crashes. I say that but this could also be bug 798858
(In reply to Paul [sabret00the] from comment #18) > I removed my mobile profile (uninstalled) and created a new one. And now > every time Fennec tries an initial sync, Fennec crashes. Well, it's not this bug for sure. Please file a new bug in Fennec, attaching this log; the PasswordsProvider is crashing. Pretty much nothing Sync can do on Android can cause a 'real' crash like that. > I say that but this > could also be bug 798858 Did you typo that bug number? Looks like a very different bug.
Filed as bug 799141. That was indeed the bug I thought it may have been as an alternative as that bug stopped me from opening the last build of Fennec at all.
Disabled HW acceleration and the chrome issues have gone. Now I'm just getting Sync failing which is bogging down nightly and also crashing on occasion but not as much as with HWA on.
Attached file Sync Log 06
Here's the latest sync-log. I think this one may actually be a tad more helpful.
I'm not getting messages to say that Sync hasn't completed in seven days.
Thought it worth mentioning that Firefox 16.1 is working. No crashes and syncing properly.
Aurora 17.0a2 doesn't seem to have the problem either.
Paul: this is spiraling into multiple bugs. Please file a new bug with the log from Comment 23, and CC :mak. Extra points if you can reproduce that log with history logging set to Trace. If you're agreed that you're not seeing OOM when syncing tabs, we'll close this one as WFM.
Go for it. And thanks for all the help Richard. I've actually managed to figure this all out BTW. The issue was caused by three extensions not being presented for installation on Nightly. They were re-presented when I checked with RTM. The extensions were Skype and two Java extensions. For some unknown reason they don't appear on Nightly or Aurora, but they were causing the issues. Since they were given the OK on 16, all issues have subsided. I have no idea how to file a bug to flag this issue though.
Thanks Paul.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: