Closed Bug 767780 Opened 9 years ago Closed 3 years ago

Thunderbird not starting (CPU 100%, no main window) after event entry & hangs

Categories

(Calendar :: Lightning Only, defect)

Lightning 1.5
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 680620

People

(Reporter: jens-bugzilla.mozilla.org, Unassigned, Mentored)

Details

(Keywords: hang, perf, testcase, Whiteboard: [notacrash][testcase needs analysis])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5

Steps to reproduce:

I edited the event that is attached as a SQlite dump to add an end date (before, it did not have one) (specifically, June 26th, 2012).


Actual results:

Thunderbird (12.0.1) with Lightning 1.4 on Windows XP SP3 (current updates) crashed. Upon restart, the main Thunderbird window did not appear again, however, "thunderbird.exe"'s CPU load was at 50% (dualcore machine) for about a minute, then dropped to almost zero. The main window did not appear.

Disabling Lightning in safe mode let Thunderbird work fine.
Updating from Thunderbird 12 to 13 and Lightning 1.4 to 1.5.2 (current version as of yesterday) did not help.

After editing the "local.sqlite" file by hand and _removing_ the rows that are attached to this bug, Thunderbird was able to start again. However, the first start was incredibly slow (minutes to appear, then long delays when entering text in a new event dialog).



Expected results:

No crash, no corruption (if that's the bug) of local.sqlite, no slowness. :)
Unfortunately, no (crash reports were disabled). What I can do, however, is to restore the database (local.sqlite) to its broken state (I have a backup) and then perform any actions you describe, e.g. somehow analyze the 'thunderbird.exe' process that won't start. I am fairly confident with command line utilities, however I don't have much experience with debugging Windows apps.
I cannot reproduce the crash. My bug report was also not about the crash, but about the inability of Thunderbird / Lightning to start at all when the database contains the entries I attached.

IMHO, Thunderbird / Lightning should be so robust that even a corrupted SQlite database (which wasn't the case here, as far as I can see) should not prevent it from starting up to delete the broken entries from the calendar.
Severity: normal → critical
Keywords: crash, testcase
anything you want Jens to do for us?
Flags: needinfo?(ssitter)
Keywords: crash
Whiteboard: [notacrash]
Flags: needinfo?(ssitter)
Jens, 
Is this a recurring event?
Can you reduce the testcase to only the event that causes difficulty?
Severity: critical → normal
Flags: needinfo?(jens-bugzilla.mozilla.org)
Keywords: perf
I seem to recall someone in the past warning against editing the database
Flags: needinfo?(philipp)
While editing rows in the sql database is certainly not a supported action, it surely won't hurt to make Lightning more robust in case something goes wrong with the database. It would be nice if someone could test if this is still an issue with the latest Lightning, aside from that I am happy to mentor someone into figuring out exactly where Lightning is hanging.

Without having looked at the database, one thing I found recently when fixing another bug, when we have events that span a long time (e.g. 50 years), they hang the calendar views.
Mentor: philipp
Flags: needinfo?(philipp)
Flags: needinfo?(jens-bugzilla.mozilla.org)
Keywords: perfhang
Whiteboard: [notacrash] → [notacrash][testcase needs analysis]
Keywords: perf
(In reply to Philipp Kewisch [:Fallen]  from comment #8)
> ...
> Without having looked at the database, one thing I found recently when
> fixing another bug, when we have events that span a long time (e.g. 50
> years), they hang the calendar views.

this would be bug 680620
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Summary: Thunderbird not starting (CPU 100%, no main window) after event entry & crash → Thunderbird not starting (CPU 100%, no main window) after event entry & hangs
Duplicate of bug: 680620
You need to log in before you can comment on or make changes to this bug.