Thunderbird freezes on startup when many message tabs are restored from previous session
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
People
(Reporter: alfanoalfonso2011, Assigned: maxe, NeedInfo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36
Steps to reproduce
Description:
Thunderbird 153.4.0 ESR x64 on Windows 11 becomes completely unresponsive on startup.
The problem occurs when Thunderbird was previously closed with many email/message tabs still open.
On the next startup, Thunderbird attempts to restore all the tabs and the application freezes with “Not responding” in Windows Task Manager.
Troubleshoot Mode does not solve the problem.
I found that closing Thunderbird and renaming:
session.json
inside the Thunderbird profile folder immediately solves the problem. Thunderbird then starts normally without restoring the old message tabs.
This strongly suggests that the freeze is related to session/tab restoration.
Steps to reproduce:
- Open many email messages in separate Thunderbird tabs.
- Close Thunderbird without closing those tabs.
- Start Thunderbird again.
- Thunderbird becomes unresponsive while restoring the previous session.
Workaround:
Close Thunderbird and rename/delete session.json in the profile folder.
Environment:
- Windows 11 x64
- Thunderbird 153.4.0 ESR x64
Actual results
Description:
Thunderbird 153.4.0 ESR x64 on Windows 11 becomes completely unresponsive on startup.
The problem occurs when Thunderbird was previously closed with many email/message tabs still open.
On the next startup, Thunderbird attempts to restore all the tabs and the application freezes with “Not responding” in Windows Task Manager.
Troubleshoot Mode does not solve the problem.
I found that closing Thunderbird and renaming:
session.json
inside the Thunderbird profile folder immediately solves the problem. Thunderbird then starts normally without restoring the old message tabs.
This strongly suggests that the freeze is related to session/tab restoration.
Steps to reproduce:
- Open many email messages in separate Thunderbird tabs.
- Close Thunderbird without closing those tabs.
- Start Thunderbird again.
- Thunderbird becomes unresponsive while restoring the previous session.
Workaround:
Close Thunderbird and rename/delete session.json in the profile folder.
Environment:
- Windows 11 x64
- Thunderbird 153.4.0 ESR x64
Expected results
Description:
Thunderbird 153.4.0 ESR x64 on Windows 11 becomes completely unresponsive on startup.
The problem occurs when Thunderbird was previously closed with many email/message tabs still open.
On the next startup, Thunderbird attempts to restore all the tabs and the application freezes with “Not responding” in Windows Task Manager.
Troubleshoot Mode does not solve the problem.
I found that closing Thunderbird and renaming:
session.json
inside the Thunderbird profile folder immediately solves the problem. Thunderbird then starts normally without restoring the old message tabs.
This strongly suggests that the freeze is related to session/tab restoration.
Steps to reproduce:
- Open many email messages in separate Thunderbird tabs.
- Close Thunderbird without closing those tabs.
- Start Thunderbird again.
- Thunderbird becomes unresponsive while restoring the previous session.
Workaround:
Close Thunderbird and rename/delete session.json in the profile folder.
Environment:
- Windows 11 x64
- Thunderbird 153.4.0 ESR x64
I can confirm this problem on a second computer.
Both computers use the same Thunderbird Portable version, 153.4.0 ESR. The problem started after the latest Thunderbird update.
Computer 1: Windows 11
Computer 2: Windows 10, with a different Windows user account
On both computers, Thunderbird freezes on startup when restoring previously opened message tabs.
Renaming session.json in the profile folder immediately fixes the problem.
This strongly suggests a regression in session restoration rather than a Windows-specific or user-profile issue.
Could the developers please investigate and provide a fix in an upcoming ESR update?
One additional detail: Both affected installations are Thunderbird Portable installations, not standard Thunderbird installations. The portable program and profile are stored on drive D:. Renaming session.json in the profile folder resolves the startup hang immediately.
| Assignee | ||
Comment 3•1 month ago
|
||
Account type IMAP and pdf attachments involved by chance? This would make it line up with bug 2071123.
I have only POP3 Accounts cofigured. It was the 32bit Version. After change to 64bit ESR153.4.0 it sometimes also probably when opening PDFs
| Assignee | ||
Comment 5•1 month ago
|
||
(In reply to fred from comment #4)
I have only POP3 Accounts cofigured. It was the 32bit Version. After change to 64bit ESR153.4.0 it sometimes also probably when opening PDFs
Do you still have a broken session.json on hand that you could share redacted, how many of which type of tab?
| Assignee | ||
Comment 6•1 month ago
|
||
Also, I have to note Thunderbird Portable is not an official MZLA release and I was not able to find an up to date reproducible list of their changes.
| Assignee | ||
Comment 7•1 month ago
|
||
Bug 2039990 Part 7 also regressed local message handling, but the failure is a lot harder to reach under normal circumstances.
| Assignee | ||
Comment 8•1 month ago
|
||
Updated•1 month ago
|
Hallo, er Fehler tritt weiterhin SPORADISCH auf. Wie kann ich die "session.json" an sie senden ?
Comment 10•20 days ago
|
||
(In reply to fred from comment #9)
Hello, the error still occurs SPORADICALLY. How can I send you the "session.json" file?
| Assignee | ||
Comment 11•19 days ago
•
|
||
The bug isn't fixed yet for locally stored messages, I can somewhat reliably reproduce that behaviour.
You may email me, just click on my name and Mail or wait until there is a fix I can no longer reproduce it and see if it holds up then.
Keep in mind your session.json may contain information such as subject names and filenames.
You could also count, how many tabs of which type/beginning of the URL are present before the issue occurs.
Comment 12•13 days ago
|
||
I still get this bug on 159.0 (updating to 160.0 now to check, fingers crossed) on Ubuntu 24.04.5 LTS.
I have both POP3 and IMAP accounts, can't reproduce exact steps but many tabs and at least an open PDF attachment seem to be involved. On restart, quickly closing the PDF tab that froze in previous session showing the circular icon animation, allows program to start normally.
Possibly (un)related rant: Thunderbird also seems more singlethreaded than many versions ago (<140?), i.e. it won't show an email while contacting servers, sometimes closing some tabs "unjams", it's weird. I've been using thunderbird since forever, on much more modest hardware (like MB of ram vs dozens of GB now and slow HDDs vs NVme) and it was never like this.
| Assignee | ||
Updated•12 days ago
|
Comment 13•12 days ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bd47d698ec57
Avoid startup hangs when restoring local folder tabs. r=mkmelin
| Assignee | ||
Comment 14•3 days ago
|
||
Comment on attachment 9664471 [details]
Bug 2078622 - Avoid startup hangs when restoring local folder tabs. r=#thunderbird-back-end-reviewers
Uplift Approval Request
- Please state case for uplift consideration and ensure bug severity is set: The other half of bug 2071123, which fixed this issue for IMAP, but not for local folders. Broken restore functionality leaving an empty app on startup gives a bad look.
- User impact if declined: More hangs when restoring a full session needing manual intervention after startup.
- Is this code covered by automated tests?: No
- Has the fix been verified in Daily?: Yes
- Has the fix been verified in Beta?: No
- Needs manual test from QA?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Test coverage of intended functionality, zero complaints about it in Daily testing, including some manual tests.
- Does the fix cause any migrations to be skipped?: No
- String changes made/needed:
Description
•