Closed Bug 1852726 Opened 3 years ago Closed 3 years ago

Thunderbird TB115 freezes ("Not Responding" for Windows) at startup and crashes if network connected

Categories

(MailNews Core :: Networking: IMAP, defect)

Thunderbird 115
defect

Tracking

(thunderbird120 unaffected)

RESOLVED DUPLICATE of bug 1850732
Tracking Status
thunderbird120 --- unaffected

People

(Reporter: Robert_Hartmann, Unassigned)

References

Details

Attachments

(8 files)

Steps to reproduce:

Just start TB115 having Internet connected .
Reproducible on Windows 8.1 and Windows 10

Actual results:

TB GUI freezes becomes inresponsible for Windows direct after showing TB main window, but only if there is an internect connection before TB starts.

If TB starts without having an internet connection, than you can use TB for some time after activating internect connection. Using SMTP and IMAP works. And at some point TB Gui freezes again.

If TB GUI is frozen, than any other click let Windows catch a crash like situation.

Expected results:

The GU should not freeze.

Some more Information:
concete it is Thunderbird 32bit in Version 115.2.0 with a user profile which was used for years and sequentially updated by many TB versions.
The latest update was from Version 102.15.0 to 115.2.0.
The problem occures on two differend machines running different Windows versions.

The realy interesting part is: If I start on both machines TB115 before there is an Internet (LAN/WLAN) connection,
than I can use on both machines TB for a while. At some time it freeze. Also TB freezes, if there is no human interaction for a while.

First I thought, that there is a problem with the Index. But having no internet connection the indexer seems to work.

Than I thought about an IMAP login or fetching problem, which could depend on using master passwort and changed server passwords,
but logging IMAP acctions via [ MOZ_LOG=IMAP:4,POP3:4,SMTP:4,LDAP:4 and MOZ_LOG_FILE ] showed no errors.
(Ovious: I changed password information in TB befor the update to 115.2 happend.)

I tried to do a startup performance analyse, like mentioned in https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance ,
because in a blocked GUI no mouse click take an normal action: But sadly I do not know which MOZ_PROFILER_STARTUP_FEATURES I should use.

I'll post some screenshots. And if you can tell me the values for MOZ_PROFILER_STARTUP_FEATURES , I can create a startup analysis for you.

Indexer seems not to be the reason for my Problem. It is working if no internet connection is available.

The "Folder" bcc-sent, which seems to be handled by the non-responsible child (see attachement),
has 7902 mails and takes more than >1GB on harddisk.
You can see, that the memory usage of forth child is more than 1GB RAM. But why?

if TB starts before internet connection, than TB works for sometime after connecting to internet.
I think the "forth child" gets closed if there is no internet connection at start time, and therefor TB can work after stablishing internet connection.

This isn't a duplicate of another bug?

Flags: needinfo?(Robert_Hartmann)

(In reply to Wayne Mery (:wsmwk) from comment #5)

This isn't a duplicate of another bug?

Mhm, from my point of view it is not a duplicate for:

Just to mentione: The behavior I can reproduce with TB 115.2.0 in 32bit and 64bit.

Flags: needinfo?(Robert_Hartmann)

And I think it is not a duplicate for:

  • Bug 1847137, because there was said, that TB 115 "hangs randomly"
    On my side hangs a reproducible on the first mouse click, if TB has started while there is an internet and server connection possible.

I am not sure how similar Thunderbird and Firefox are regarding the WebExtension architecture, and if WebExtensions are used at all in my situation.
But maybe the observed behavior of Thunderbird 115.2.0 is due to a similar problem with WebExtensions as with Firefox 117, compare Bug 1851373 : ("Firefox terminates the background script of WebExtensions after 30 seconds") which was fixed about a week ago at 2023-09-07.

But maybe the observed behavior of Thunderbird 115.2.0 is due to a similar problem with WebExtensions as with Firefox 117, compare Bug 1851373 : ("Firefox terminates the background script of WebExtensions after 30 seconds") which was fixed about a week ago at 2023-09-07.

I'm sure this is unrelated, because bug 1851373 has a flag that indicates that esr115 is unaffected.

Bug 1849540, because the inresponsible TB child handles not the calendar information (shown in screenshot in comment 3)

I dont think that detail is relevant.

Let's assume imap.

Can you clarify please, that what you are seeing in Windows is "Not Responding", correct?

Component: Untriaged → Networking: IMAP
Flags: needinfo?(Robert_Hartmann)
Product: Thunderbird → MailNews Core
Summary: Thunderbird TB115 freezes (inresponsible for Windows) at startup and crashes → Thunderbird TB115 freezes ("Not Responding" for Windows) at startup and crashes if network connected
See Also: → 1665146

(In reply to Wayne Mery (:wsmwk) from comment #10)

Let's assume imap.

Can you clarify please, that what you are seeing in Windows is "Not Responding", correct?

The Windows TB 155.2.2 GUI is not responding to mouse clicks.
At first mouse click the TB window freeze.

But I cannot say which event triggers a freeze first

Beste regards,
and thanks for helping

Flags: needinfo?(Robert_Hartmann)

(In reply to Robert Hartmann from comment #1)

Some more Information:
concete it is Thunderbird 32bit in Version 115.2.0 with a user profile which was used for years and sequentially updated by many TB versions.
The latest update was from Version 102.15.0 to 115.2.0.

concete? Not sure what that means, probably not important.
I switch a lot old->new and new->old version with same profile with no problem. So don't think that's the issue. (I run with option --allow-downgrade to allow new->old.)
But you might try making a new profile with just single small account and see if it runs OK with 115. You can always go back to your original profile if that doesn't help.

The problem occures on two differend machines running different Windows versions.

The realy interesting part is: If I start on both machines TB115 before there is an Internet (LAN/WLAN) connection,
than I can use on both machines TB for a while. At some time it freeze. Also TB freezes, if there is no human interaction for a while.

So it freezes and runs a while w/o a network connection but still eventually freezes while using it and also if it is idle (no interaction)?
How long will it typically run without locking up without a network connection?

If you do have a network connection at startup, how long does it go without freezing/locking up?

First I thought, that there is a problem with the Index. But having no internet connection the indexer seems to work.

Than I thought about an IMAP login or fetching problem, which could depend on using master passwort and changed server passwords,
but logging IMAP acctions via [ MOZ_LOG=IMAP:4,POP3:4,SMTP:4,LDAP:4 and MOZ_LOG_FILE ] showed no errors.
(Ovious: I changed password information in TB befor the update to 115.2 happend.)

Not sure what "Ovious" means. Maybe "Obviously"?
Sounds like you are using a master/primary password. Otherwise are you letting TB store your account passwords or do you enter them at TB startup?
Are your account(s) using oauth2 or just plain password with TLS?
Can you record and attach or provide just an IMAP:4 log recorded up until you see the freeze? Don't need all the other items (POP3 etc.) at this time.

One more question: If you set TB to offline, with and without a network, does it lock up?

(In reply to gene smith from comment #12)

(In reply to Robert Hartmann from comment #1)

Some more Information:
concete it is Thunderbird 32bit in Version 115.2.0 with a user profile which was used for years and sequentially updated by many TB versions.
The latest update was from Version 102.15.0 to 115.2.0.

concete? Not sure what that means, probably not important.

It's not important. "concete" is a wrong vocabulary with spelling mistake best replacement seems to be the word "exactly". :-)

I switch a lot old->new and new->old version with same profile with no problem. So don't think that's the issue. (I run with option --allow-downgrade to allow new->old.)

:-)

But you might try making a new profile with just single small account and see if it runs OK with 115. You can always go back to your original profile if that doesn't help.

:-)

The problem occures on two differend machines running different Windows versions.

The realy interesting part is: If I start on both machines TB115 before there is an Internet (LAN/WLAN) connection,
than I can use on both machines TB for a while. At some time it freeze. Also TB freezes, if there is no human interaction for a while.

So it freezes and runs a while w/o a network connection but still eventually freezes while using it and also if it is idle (no interaction)?
How long will it typically run without locking up without a network connection?

If I start TB w/o network connection and than activate network connection TB window freezes in foreground after 10 to 45 minutes with interaction.
If I start TB w/o network connection and than activate network connection and TB window is running behind other application windows, for some hours or so, switching to TB (via ALT + Tab) it freezes at first interaction.

Sometimes this happen, too:
If TB window is running in foreground and I lock the MS Windows Session for leaving PC for a moment and comming back to unlock Windows Session, TB freezes with first mouse click.

If you do have a network connection at startup, how long does it go without freezing/locking up?

For my default profile (currently) TB window freezes at the first mouse click.

First I thought, that there is a problem with the Index. But having no internet connection the indexer seems to work.

Than I thought about an IMAP login or fetching problem, which could depend on using master passwort and changed server passwords,
but logging IMAP acctions via [ MOZ_LOG=IMAP:4,POP3:4,SMTP:4,LDAP:4 and MOZ_LOG_FILE ] showed no errors.
(Ovious: I changed password information in TB befor the update to 115.2 happend.)

Not sure what "Ovious" means. Maybe "Obviously"?

yes

Sounds like you are using a master/primary password. Otherwise are you letting TB store your account passwords or do you enter them at TB startup?

I tried to connect TB to KeypassXC but result (frozen TB window) is the same if I use master/primary password, or don't save the password for manuell typing.

Are your account(s) using oauth2 or just plain password with TLS?

My server-admins told me to use TB Options: STARTTLS + Password normal.

Can you record and attach or provide just an IMAP:4 log recorded up until you see the freeze? Don't need all the other items (POP3 etc.) at this time.

I will create such logs in the next days:

  • IMAP log with default profile
  • IMAP log with fresh minimal profile

(RE comment #13)

One more question: If you set TB to offline, with and without a network, does it lock up?

As long as TB is offline either by software (= start TB in offline mode) or because there is no LAN / WLAN connection, TB window do not freeze;
or I hadn't wait long enough.

I have a few more question about the lock up you are seeing.

With it locked up, can you scroll windows with the mouse?
When it locks up, how do you shutdown TB?
With it locked up, can you shutdown by clicking the shutdown button (the "X" along the top)?
Does alt-f4 shutdown TB? (On my laptop I have to do fn-alt-f4

Until today, I haven't seen a lock up like you describe. However I did see one while working on another bug:
https://phabricator.services.mozilla.com/D188151
See comments by gds (that's me) in there. Specifically, when an attempt to subscribe occurs it would lock up the UI. However it was caused by a patch that was being tested and is not in the release code. Possibly what you are see is something similar.

(In reply to gene smith from comment #15)

I have a few more question about the lock up you are seeing.

With it locked up, can you scroll windows with the mouse?

After mouse click the window elements does not react on anything but before mouse click.
you can scroll the window using the mouse if there is a scrollbar, but only if GUI is not locked up.
I cannot scroll with the mouse wheel - but perhaps the focus gets lost, and on clicking window freezes.

When it locks up, how do you shutdown TB?
With it locked up, can you shutdown by clicking the shutdown button (the "X" along the top)?

I can click on "send Window to Taskbar" , "maximize Window", or "close Window".

  • "send Window to Taskbar" : works
  • "maximize Window" : do nothing
  • "close Window" with the "x on red background": opens a dialog window, where I can choose between "wait for application" or "force closing"
    After lock up I can use force close.

Does alt-f4 shutdown TB? (On my laptop I have to do fn-alt-f4)

Nice remark: I can create three catched TB crashes using Alt-F4 and a resulting Windows blue sreen "ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY":

The first two where created more or less simultan, using this steps:

  1. Start TB 115.2.2 in offline mode.
  2. Activate online mode using click in the symbol in the bottom infoline of TB window
  3. Deactivate online mode using click in the symbol in the bottom infoline of TB window just 30 seconds after going online
  4. Dialog window opens with the question, if messages shout become downloaded before going offline
  5. My answer was "yes, download messages".
  6. TB freeze => crash 1 and 2 occure

The third crash was created using at a "locked up", "frozzen" TB Window via Alt-F4, in a situation where TB starts in online mode .
After that crash report was send to server Windows itself crashed and gave me a blue sreen "ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY"

Until today, I haven't seen a lock up like you describe. However I did see one while working on another bug:
https://phabricator.services.mozilla.com/D188151
See comments by gds (that's me) in there. Specifically, when an attempt to subscribe occurs it would lock up the UI. However it was caused by a patch that was being tested and is not in the release code. Possibly what you are see is something similar.

(In reply to gene smith from comment #15)

Until today, I haven't seen a lock up like you describe. However I did see one while working on another bug:
https://phabricator.services.mozilla.com/D188151
See comments by gds (that's me) in there. Specifically, when an attempt to subscribe occurs it would lock up the UI. However it was caused by a patch that was being tested and is not in the release code. Possibly what you are see is something similar.

Your discription in https://phabricator.services.mozilla.com/D188151#6230855 match to my observation, exapt that in a locked up Window I couldn't scroll with mouse wheel.

As requested in Bug 1852726 comment 12 here is a Logfile created with (MOZ_LOG=IMAP:1,MsgDB:1).

(In reply to Robert Hartmann from comment #18)

Created attachment 9353666 [details]
logfile with MOZ_LOG=IMAP:1,MsgDB:1

As requested in Bug 1852726 comment 12 here is a Logfile created with (MOZ_LOG=IMAP:1,MsgDB:1).

This logfile ( attachment 9353666 [details] ) belongs to crashreport bp-2326ddb4-4ae5-42a9-a535-2e5d90230918 "Thunderbird 115.2.2 Crash Report [@ AllocInfo::GetInChunk ]" .

Flags: needinfo?(gds)

(In reply to Robert Hartmann from comment #19)

(In reply to Robert Hartmann from comment #18)

Created attachment 9353666 [details]
logfile with MOZ_LOG=IMAP:1,MsgDB:1

As requested in Bug 1852726 comment 12 here is a Logfile created with (MOZ_LOG=IMAP:1,MsgDB:1).

This logfile ( attachment 9353666 [details] ) belongs to crashreport bp-2326ddb4-4ae5-42a9-a535-2e5d90230918 "Thunderbird 115.2.2 Crash Report [@ AllocInfo::GetInChunk ]" .

In the same run I created a "Thunderbird startup and shutdown profiling" JSON
(https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance):
I uploaded the JSON file to https://profiler.firefox.com/.
There I could see, that until crash 80% of time was taken by

 nsAppShell::ProcessNextNativeEvent::Wait

For me it is unclear how to generate a permanent link for sharing this startup profile with you.
And I want to know what kind of screenshots or interprocess-comminication-data the profiling mechanism includes in the json.

I'll let Wayne describe the procedure for sharing a performance profile since it's not something I have done a lot.

I'm not really sure what alt-F4 is supposed to do in windows. I haven't used windows in years and I thought it just shuts down the current window, but, reading about it, it sounds like it brings up a prompt to shutdown your computer. Anyhow, on linux (KDE) alt-F4 does shutdown the current window, just like clicking the X icon.

If you are seeing a crash (blue screen) when doing alt-F4 maybe your RAM memory is having problems. Maybe you could run a test program like memtest86 to test your memory.

I followed your 5 steps in comment 16, starting TB with -offline parameter, and don't see step 6 (freeze and crash). All of your crash reports appear to be in the Javascript area in the mozilla code.

Wayne sees all the bug and crash reports and he hasn't mentioned to me other bugs with symptoms that you describe. So, I might be wrong, but it's sounding like maybe your computer hardware is failing. But then again, in comment 0 you say you see this on win 8.1 and 10 so unless both versions are running on the same hardware, a hardware problem is unlikely.

(In reply to Robert Hartmann from comment #19)

(In reply to Robert Hartmann from comment #18)

Created attachment 9353666 [details]
logfile with MOZ_LOG=IMAP:1,MsgDB:1

As requested in Bug 1852726 comment 12 here is a Logfile created with (MOZ_LOG=IMAP:1,MsgDB:1).

This logfile ( attachment 9353666 [details] ) belongs to crashreport bp-2326ddb4-4ae5-42a9-a535-2e5d90230918 "Thunderbird 115.2.2 Crash Report [@ AllocInfo::GetInChunk ]" .

Looking at the attached log, it only goes as far as logging on to the IMAP server, which happens first and quickly when thunderbird starts. Then it looks like it must have crashed. The crash report appears to indicate a failure in the javascript interpreter and doesn't appear to be IMAP or even Thunderbird application related, as far as I can tell. But maybe something is left out of the IMAP log since you say you recorded a level 1 log (IMAP:1) when I asked you to record a level 4 log (IMAP:4). But maybe IMAP:1 is a typo?
If you attach another IMAP log, probably don't need the MsgDB item and seeing timestamps might be helpful: MOZ_LOG=IMAP:4,timestamp

Flags: needinfo?(gds) → needinfo?(vseerror)

(In reply to gene smith from comment #21)

I'll let Wayne describe the procedure for sharing a performance profile since it's not something I have done a lot.

:-) I am looking forward to an explanation and a hint on additional values for environment variables besides

MOZ_PROFILER_STARTUP_FEATURES=fileioall,ipcmessages 

I'm not really sure what alt-F4 is supposed to do in windows. I haven't used windows in years and I thought it just shuts down the current window, but, reading about it, it sounds like it brings up a prompt to shutdown your computer. Anyhow, on linux (KDE) alt-F4 does shutdown the current window, just like clicking the X icon.

ALT+F4 => "Aktives Element schließen oder aktive App beenden." == "close active element or close active application"
( https://support.microsoft.com/de-de/windows/tastenkombinationen-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec )
Yes, if you do not habe any application window in focus but Windows Desktop, than you can shutdown or restart Windows etc. :-)

If you are seeing a crash (blue screen) when doing alt-F4 maybe your RAM memory is having problems. Maybe you could run a test program like memtest86 to test your memory.

I followed your 5 steps in comment 16, starting TB with -offline parameter, and don't see step 6 (freeze and crash). All of your crash reports appear to be in the Javascript area in the mozilla code.

Wayne sees all the bug and crash reports and he hasn't mentioned to me other bugs with symptoms that you describe. So, I might be wrong, but it's sounding like maybe your computer hardware is failing. But then again, in comment 0 you say you see this on win 8.1 and 10 so unless both versions are running on the same hardware, a hardware problem is unlikely.

Win 8.1 is running on a "traditional" PC where Win 10 is running on a Laptop.
(perhaps I should run memtest on both :-) )

[...]
But maybe something is left out of the IMAP log since you say you recorded a level 1 log (IMAP:1) when I asked you to record a level 4 log (IMAP:4). But maybe IMAP:1 is a typo?

Perhaps it was a typo.

If you attach another IMAP log, probably don't need the MsgDB item and seeing timestamps might be helpful: MOZ_LOG=IMAP:4,timestamp

Okay :-)

I wrote in comment 21:

I haven't used windows in years ...

Actually not true. Every now and then when TB users have issue specific to windows I run win 10. So I ran it and tested TB 115.2.2. I don't see any problems like you describe. Not using much CPU and no lockup or crashes. While I was in win 10 it offered to upgrade to win 11 and that works fine with TB 115.2.2 also. (Writing this from firefox in Win 11 right now.)

(In reply to Robert Hartmann from comment #22)

(In reply to gene smith from comment #21)

I'll let Wayne describe the procedure for sharing a performance profile since it's not something I have done a lot.

:-) I am looking forward to an explanation and a hint on additional values for environment variables besides

MOZ_PROFILER_STARTUP_FEATURES=fileioall,ipcmessages 

Wayne, it would be very nice of you, to give me some additional pointers for creating and sharing a startup profiling json.

I'm not really sure what alt-F4 is supposed to do in windows. I haven't used windows in years and I thought it just shuts down the current window, but, reading about it, it sounds like it brings up a prompt to shutdown your computer. Anyhow, on linux (KDE) alt-F4 does shutdown the current window, just like clicking the X icon.

[...]

If you are seeing a crash (blue screen) when doing alt-F4 maybe your RAM memory is having problems. Maybe you could run a test program like memtest86 to test your memory.

Gene, thanks for pointer to memtest86+. It has found memory problems on the PC where the these crash reports are generated:
I think, that these crashreports are because of hardware defect not trustable.

If you attach another IMAP log, probably don't need the MsgDB item and seeing timestamps might be helpful: MOZ_LOG=IMAP:4,timestamp

Okay :-)

But before creating a new log file I have to replace hardware....

But before creating a new log file I have to replace hardware....

Agree. Also, having multiple crash signatures is further indication of memory issues, either caused by software or hardware.

For startup, see https://profiler.firefox.com/docs/#/./guide-startup-shutdown
For the rest see https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

Flags: needinfo?(vseerror)

(In reply to gene smith from comment #21)

If you attach another IMAP log, probably don't need the MsgDB item and seeing timestamps might be helpful: MOZ_LOG=IMAP:4,timestamp

and

(In reply to Wayne Mery (:wsmwk) from comment #25)

But before creating a new log file I have to replace hardware....

Agree. Also, having multiple crash signatures is further indication of memory issues, either caused by software or hardware.

For startup, see https://profiler.firefox.com/docs/#/./guide-startup-shutdown
For the rest see https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

Sadly it is not clear to me, which STARTUP_FEATURES should be covered.

Putting together, what I understand, it results in a cmd batch script, like that:

 set mydate=%date:~-4,4%%date:~-7,2%%date:~-10,2%
 set mytime=%time:~0,2%%time:~+3,2%
 set myPROFILE=TB-Bug1852726  
 set MOZ_LOG=IMAP:4,timestamp  
 set MOZ_LOG_FILE=%~dp0\thunderbird_%myPROFILE%_%mydate%_%mytime%.log 
 set MOZ_PROFILER_STARTUP=1
 set MOZ_PROFILER_SYMBOLICATE=1
 set MOZ_PROFILER_STARTUP_FEATURES=fileioall,ipcmessages
 set MOZ_PROFILER_SHUTDOWN=%~dp0\thunderbird_%myPROFILE%_%mydate%_%mytime%-profiler.json
 start "TB with Logging" "%ProgramFiles%\Mozilla Thunderbird Release\thunderbird.exe" -p "%myPROFILE%"

... but currently waiting for hardware.

Flags: needinfo?(vseerror)
Flags: needinfo?(gds)

(In reply to Wayne Mery (:wsmwk) from comment #25)

Agree. Also, having multiple crash signatures is further indication of memory issues, either caused by software or hardware.

For startup, see https://profiler.firefox.com/docs/#/./guide-startup-shutdown
For the rest see https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

(In reply to me from comment #26)

Sadly it is not clear to me, which STARTUP_FEATURES should be covered.
[...] but currently waiting for hardware.

After I had replaces RAM with no defects ( tested via memtest86+ ) , I downgraded TB to version 102.15.1.
With that I started my batch file written in Comment 26 .
That creates a moz_log containing IMAP-logging and a JSON from profiling.

The next step will be: Upgrade a gain to TB 115.2.3, doing the same.

But for sharing the profilers json: which options should I activate, see attached screenshot?

content of Error-Console TB 102.15.1, if I start TB online:

15:25:37.097 services.settings: Failed to load last_modified.json: TypeError: NetworkError when attempting to fetch resource. Utils.jsm:330
15:25:45.117 Uncaught 
      Exception { name: "NS_ERROR_FAILURE", message: "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)     [imIAccountsService.getAccounts]", result: 2147500037, filename: "chrome://messenger/content/about-support/chat.js", lineNumber: 52, columnNumber: 0, data: null, stack: "populateChatSection@chrome://messenger/content/about-support/chat.js:52:42\nonload@chrome://messenger/content/about-support/aboutSupport.js:93:3\n", location: XPCWrappedNative_NoHelper }
      chat.js:52
15:25:52.748 NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIInterfaceRequestor.getInterface] network-response-listener.js:83
15:25:52.813 NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIInterfaceRequestor.getInterface] network-response-listener.js:83
15:26:25.524 NS_ERROR_NOT_AVAILABLE: PreferDisplayName: undefined - not a boolean 4 AddrBookCard.jsm:364

content of Error-Console TB 102.15.1, if I start TB in offline mode and than switch to online:

15:59:33.588 tb.account.size_on_disk - Attempted to set the scalar to an incompatible value.
15:59:34.000 PAC file installed from http://proxypac/proxy.pac 
16:00:00.018 Calendar: [CalMetronome] Starting repeating events CalMetronome.jsm:108
16:01:55.744 Calendar: [calICSCalendar] Refreshing LEA CalICSCalendar.jsm:626
16:01:55.797 Calendar: [calCachedCalendar] Performing playback operation add on 0 items to Telearbeit calCachedCalendar.js:553
16:01:55.800 Calendar: [calCachedCalendar] Performing playback operation add on 0 items to (horde) calCachedCalendar.js:553
16:01:55.801 Calendar: [calCachedCalendar] Performing playback operation add on 0 items to NextCloud-FB02 calCachedCalendar.js:553
16:01:55.803 Calendar: [calCachedCalendar] Performing playback operation add on 0 items to Mitarbeiterbesprechung calCachedCalendar.js:553
16:01:55.807 Calendar: [calCachedCalendar] Performing playback operation modify on 0 items to Telearbeit calCachedCalendar.js:553
16:01:55.807 Calendar: [calCachedCalendar] Performing playback operation modify on 0 items to (horde) calCachedCalendar.js:553
16:01:55.808 Calendar: [calCachedCalendar] Performing playback operation modify on 0 items to NextCloud-FB02 calCachedCalendar.js:553
16:01:55.809 Calendar: [calCachedCalendar] Performing playback operation modify on 0 items to Mitarbeiterbesprechung  calCachedCalendar.js:553
16:01:55.813 Calendar: [calCachedCalendar] Performing playback operation delete on 0 items to Telearbeit calCachedCalendar.js:553
16:01:55.816 Calendar: [calCachedCalendar] Performing playback operation delete on 0 items to (horde) calCachedCalendar.js:553
16:01:55.823 Calendar: [calCachedCalendar] Performing playback operation delete on 0 items to NextCloud-FB02 calCachedCalendar.js:553
16:01:55.835 Calendar: [calCachedCalendar] Performing playback operation delete on 0 items to Mitarbeiterbesprechung calCachedCalendar.js:553
16:01:57.082 Calendar: [calICSCalendar] Loading ICS succeeded, needs further processing: true CalICSCalendar.jsm:203
16:01:57.277 Calendar: [calICSCalendar] Parsing ICS succeeded for https://DOMAIN.de/calendar.php?client_id=db_040811&token= DELETED CalICSCalendar.jsm:263

​There are some exceptions in Error-Console but there is no crash or GUI freeze with TB 102.15.1 using online mode or offline mode while starting...

In the Error-Console of TB 115.2.3 at its first start using same profile and online mode, I get information:

16:13:36.486 Calendar: CalDAV: Found principal url from DAV:current-user-principal /horde/rpc.php/principals/ACCOUNT/ CalDavCalendar.jsm:1617
16:13:36.549 Calendar: CalDAV: DAV features: 3, extended-mkcol, calendar-access, calendar-proxy, addressbook, 2, access-control, calendarserver-principal-property-search CalDavCalendar.jsm:1697
16:13:36.549 Calendar: CalDAV: Server does not support CalDAV scheduling. CalDavCalendar.jsm:1725
16:13:36.556 Calendar: CalDAV: send (PROPFIND https://horde.DOMAIN.de/horde/rpc.php/calendars/ACCOUNT/calendar~ACCOUNT/): <?xml version="1.0" encoding="UTF-8"?><D:propfind xmlns:D="DAV:"><D:prop><D:getcontenttype/><D:resourcetype/><D:getetag/></D:prop></D:propfind> CalDavRequest.jsm:126
16:13:36.559 Calendar: CalDAV: DAV features: 3, extended-mkcol, calendar-access, calendar-proxy, addressbook, 2, access-control, calendarserver-principal-property-search CalDavCalendar.jsm:1697
16:13:36.559 Calendar: CalDAV: Server does not support CalDAV scheduling.
16:15:12.049 tb.account.size_on_disk - Attempted to set the scalar to an incompatible value.

TB 115.2.3 freezes all its window without updating error log after creating a new calendar entry for my horde calendar. Last entries are, which cannot be copy&pasted ...

 16:32:48.791 Calendar: CalDav: Item added to (horde) successfully  CalDavCalendar.jsm:612
 16:32:48.791 Calendar: CalDav: send (REPORT https://horde.DOMAIN.de/horde/rpc.php/calendars/ACCOUNT/calendar~ACCOUNT/): .... CalDavRequestHandlers.jsm:849
 16:32:48.798 Calendar: CalDav: send (REPORT https://horde.DOMAIN.de/horde/rpc.php/calendars/ACCOUNT/calendar~ACCOUNT/): .... CalDavRequest.jsm:126
Attached file Test via TB115.2.3.ics —

( In reply to my Comment 29 ) :
I had a look in the horde web calendar, and could see, that TB 115.2.3 has created the entry.
I downloaded the entry from horde as ics file, see attachmend.
TB could not import it to a TB local calendar.

So I think the freezing or looked TB Window-GUI has nothing to do with IMAP but with calendar actions.
Or there is a blocking/hanging (infty looping) function which could be entered from IMAP and CalDAV ...

Or there is a blocking/hanging (infty [infinite] looping) function which could be entered from IMAP and CalDAV ...

There shouldn't be any connection between IMAP and calendar functionality that I know of.
I never use the calendar in TB but I just imported your Test via TB115.2.3.ics file and it doesn't cause a lockup or freeze.
After importing the .ics file, I shutdown TB and restarted with -offline option then went online and TB keeps working OK, no lock-up/freeze.
I'm running TB daily 119.0a1.

Flags: needinfo?(gds)

Lets attach Thunderbird to windows console:

TB 102.15.1:
"C:\Program Files (x86)\Mozilla Thunderbird Old Release\thunderbird.exe" --allow-downgrade --attach-console -p

 [GFX1-]: shader-cache: Shader disk cache is not supported
 [GFX1-]: shader-cache: Timed out before finishing loads
 Missing chrome or resource URL: chrome://mboximport/locale/extensions.importexporttoolsng.properties

TB 115.2.3:
"C:\Program Files (x86)\Mozilla Thunderbird Release\thunderbird.exe" --allow-downgrade --attach-console -p

 [Parent 8736, IPC I/O Parent] WARNING: DuplicateHandle failed for handle 0 in TransferHandles: file /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/ipc_channel_win.cc:793

TB 118.0b6 , TB 119.0a1 Build-ID 20230922095103
Did not write anything to Windows Console. It can create an event and save it into horde calendar via CalDav. And did not freeze.

Magnus Melin wrote in Bug 1776218 comment 17 , Bug 1789999 comment 2, that one could test

  "setting the calendar.icaljs pref to false"

Just for testing, I did that in TB 115.2.3.
Started offline; TB Error Console contains :

   00:36:06.491 carddav.sync: Sync with server failed. CardDAVDirectory.jsm:652:11
   00:36:06.622 uncaught exception: 2147500036 

After switching to online I saw, that some Calendar entries get synchronized. But after some seconds TB 115.2.3 freezes again.

Again I did a testrun (starting TB 102.15.1 using the profile from TB 115.2.3 with commandline parameter '--allow-downgrade' to resync calendar entries) . Looking to the Error Console I see:

  09:09:52.576 Calendar: aChangeLogListener=[xpconnect wrapped calIGenericOperationListener]
  calendarURI=https://horde.DOMAIN.de/horde/rpc.php/calendars/ACCOUNT/calendar~ACCOUNT/ 
  iscached=true
  this.mQueuedQueries.length=0 CalDavCalendar.jsm:1061
  09:09:52.579 Calendar: [calCachedCalendar] replayChangesOn finished. calCachedCalendar.js:320
  09:11:28.898 Diese Seite befindet sich im Fast-Standards-Modus ("almost standards mode"). Das Seitenlayout kann beeinflusst werden.     Verwenden Sie für den Standardmodus "<!DOCTYPE html>".
  blank
  09:11:49.035 Uncaught (in promise) 
  Exception { name: "NS_ERROR_OBJECT_IS_IMMUTABLE", message: "Component returned failure code: 0x80460002 (NS_ERROR_OBJECT_IS_IMMUTABLE) [calIDateTime.isDate]", result: 2152071170, filename: "chrome://calendar/content/today-pane-agenda.js", lineNumber: 160, columnNumber: 0, data: null, stack: "update@chrome://calendar/content/today-pane-agenda.js:160:7\nupdatePeriod@chrome://calendar/content/today-pane.js:449:17\nsetDay@chrome://calendar/content/today-pane.js:420:10\nadvance@chrome://calendar/content/today-pane.js:433:12\nstopSwitching@chrome://calendar/content/today-pane.js:318:19\n", location: XPCWrappedNative_NoHelper }
  today-pane-agenda.js:160

restarting TB 102.15.1 again using same (downgraded) TB 115.2.3 profil I saw:

 09:49:08.181 Calendar: Timezone property lookup failed! Falling back to America/Ciudad_Juarez
 [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///components/calTimezone.js :: get displayName :: line 101"  data: no] calTimezone.js:106
 09:49:08.218 Calendar: Timezone property lookup failed! Falling back to Europe/Kyiv
 [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///components/calTimezone.js :: get displayName :: line 101"  data: no] calTimezone.js:106

The calendar tab in TB 102.15.1 contains all entries;
unlike before in TB 102.15.1 the today-sidepane in TB main window is shown empty like there where no appointments or tasks.

Good point is: The freezing GUI of TB 115.2.3 on my side I can reproduce on three machines (memtest86+ : tests passed)

  • two Laptops having different hardware running different Windows 10 configurations
  • one PC running Windows 8.1

(In reply to Robert Hartmann from comment #34)

Again I did a testrun (starting TB 102.15.1 using the profile from TB 115.2.3 with commandline parameter '--allow-downgrade' to resync calendar entries) . Looking to the Error Console I see:

[... Calendar Exceptions ... ]

The calendar tab in TB 102.15.1 contains all entries;
unlike before in TB 102.15.1 the today-sidepane in TB main window is shown empty like there where no appointments or tasks.

with resetting

 calendar.icaljs pref to true

today-sidepane in TB 102.15.1 can show appointments again.

TB 115.2.3 locks / freezes its GUI reproducible, independent of boolean value calendar.icaljs .

a) actively import a ics file which was extracted from a horde groupware server.
b) creating a new calendar entry and save it to horde
c) actively choose "synchronize" entry from contextmenue in calendar tab
d) start TB in offline mode, wait some time before switch to online mode. Some time after switch to online mode TB window locks. (IMAP or CalDAV problem)
e) start TB in online, it freezes sometimes directly: I think here again a synchronisation problem is cause. (IMAP or CalDAV problem)

For logging the Calendar and IMAP behavior it would be nice, if there is a commandline parameter forcing TB Error Console outputs
to become written to the same file where IMAP logging ( MOZ_LOG_FILE ) is stored or alternatively if both logging information could be send out to MS Windows as OutputDebugString so one can catch these debug information using Sysinternals DebugView ( https://learn.microsoft.com/de-de/sysinternals/downloads/debugview ).

If there is such a command line parameter that causes both IMAP and Calendar debugging/logging information to be passed sequentially in time to a common file or to the OutputDebugString reciever, then I have not found that command line parameter.

( In reply to my Comment 29 )
TB115.2.3 freezed reproduzible on other maschine, too. Here e screenshot from frozen Error Console.

FYI, the calendar.icaljs false option has been removed in 115. You now always user icaljs, and the pref does absolutely nothing if you set it.

I tried to have look into the communication between TB and the server via wireshark running on clients side.
I saw - using environment variable SSLKEYLOGFILE - that the communication flow between TB and horde is very similar, regardless of whether TB version 115.2.3 or version 102.15.1 is used.

Creating a new event/appointment via TB results in this communication flow:

Client=>Server :  PROPFIND
Client=>Server :  PROPFIND
Client=>Server :  OPTIONS
Client=>Server :  OPTIONS
Client=>Server :  PROPFIND
Server=>Client :  Created 
Server=>Client :  Multi-Status 

If helpful, I'll try to copy the Multi-Status message, after which TB115.2.3 freeze its GUI with first human interaktion (mouse click or key press).
I saw, that most of response-strings in Multi-Status content are like

 <d:response><d:href>/horde/rpc.php/calendars/ACCOUNT/calendar~ACCOUNT/2d589c67-2bf2-49bd-844d-c91b730e595a.ics  ...

but some are like

<d:response><d:href>/horde/rpc.php/calendars/ACCOUNT/calendar~ACCOUNT/040000008200E00074C5B7101A82E00800000000F0BB74930AA8D801000000000000000010000000B77FEBCE7939B345B191BD97CEB78CDD.ics ...

perhaps there is a parsing difference between TB 115 and before?

I wonder if bug 1850732 may have fixed it for you.

(In reply to Magnus Melin [:mkmelin] from comment #39)

I wonder if bug 1850732 may have fixed it for you.

Should the fix of bug 1850732 be included in TB 115.2.3 allready, than it does not help in TB115.2.3.
But as I wrote im my comment 32 :

TB 118.0b6 , TB 119.0a1 Build-ID 20230922095103
Did not write anything to Windows Console. It can create an event and save it into horde calendar via CalDav. And did not freeze.

(In reply to Magnus Melin [:mkmelin] from comment #39)

I wonder if bug 1850732 may have fixed it for you.

For the record:
TB version 115.3.0 shows a slightly different behavior.
If I start TB version 115.3.0 in offline mode, than switch to online mode, and now create a new caldav event, than
the main window freezes, but the error console can still be scrolled. Errors are not recorded, but there are many logging information.

TB version 115.3.0 freezes its main window and its error console, if I start TB in online mode.

Starting TB 119.0b1 (64-Bit) and TB 120.0a1 (2023-09-26) (64-bit) in online mode using the same profile, they do not freeze, but in error console I can see the message :

   Calendar: CalDAV: Still need to fetch 2445 elements. CalDavRequestHandlers.jsm:940

TB 119.0b1 and TB 120.0a1 continues fetching the messages like TB 102.15.1 .

Having a look into network communication via Wireshark, I mentioned, that at time of freezing TB main window, no network packages
where send from / to CalDAV server but IMAP server and TB exchanges keep-alive-messages via TCP.
Wireshark shows, that the last TLSv1.3 message from CalDAV server to TB 115.3.0 (started in online mode) was

   Alert Message
          Level: Warning (1)
          Description: Close Notify (0)

Hope that helps ...

Because I am unable to create a logfile from TB 115.3.0 which contain IMAP and CalDAV actions, I used wireshark for logging the network communication between my local computer running TB and the remote IMAP and CalDAV (horde) servers.
The attached LibreOfficeCalc ODS-file contains one table with the logging information of a TB 115.3.0 start in online mode until TB main window and Error console freese.
The logging information in that ODS-file is of scheme

 No. Time Protocol Source Destination Length Info

Before copying the logging data into the ODS-file , I filtered in wireshark using protocols 'IMAP', 'HTTP', 'TLS'.
After copying the logging data into the ODS-file, I replace personal userdata with the anonymising string "DELETED FOR BUGREPORT" and I replaced the IP-addresses with semantical placeholders.

TB version 115.3.0 freezes its main window and its error console, if I start TB in online mode.
TB 119.0b1 and TB 120.0a1 continues fetching the messages like TB 102.15.1 and do not freeze.

Gene, Magnus, Wayne, i hope that logfile is helpful for you. Is it?

Best regards
Robert

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(gds)

Gene, Magnus, Wayne, i hope that logfile is helpful for you. Is it?

I can't speak for others, but I can't tell much from the file opened in LOffice.
Also, since I know nothing about TB calendars but a lot about IMAP, can you explain a step-by-step way for me to duplicate the problem if you think it is caused by IMAP implementation in TB?
Also, not sure if you are saying it is "fixed" with 119.0b1 and 120.0a1 since you say:

TB 119.0b1 and TB 120.0a1 continues fetching the messages like TB 102.15.1 and do not freeze

Flags: needinfo?(gds)

(In reply to gene smith from comment #43)
[...]

Also, not sure if you are saying it is "fixed" with 119.0b1 and 120.0a1 since you say:

TB 119.0b1 and TB 120.0a1 continues fetching the messages like TB 102.15.1 and do not freeze

Yes, Gene, the strange GUI behavior is "fixed" with 119.0b1 and 120.0a1.
(And it is "fixed" in versions 119.0a1 and beta version mentioned in Bug 1850732 comment 17 from 16.09.2023, too.)

Gene, in Bug 1373940 comment 29, you wrote, that you are or was working "on another bug regarding autosync (bug 1776823) ".
Does "autosync" handle CalDAV, too? Or is it IMAP only? Could autosync have an influence on the freezing of the TB windows?

Flags: needinfo?(gds)

Robert, No, autosync is purely IMAP related with no connection to CalDAV. Autosync just tries to fetch new messages to offline store before you open them.
But you can mostly disable autosync here if you want to verify that it has no influence:
mail.server.default.autosync_offline_stores set to false in Config Editor
I always recommend restarting TB when you make a change with Config Editor.

Flags: needinfo?(gds)

(In reply to Robert Hartmann from comment #44)

Yes, Gene, the strange GUI behavior is "fixed" with 119.0b1 and 120.0a1.

I suspect you're just seeing bug 1850732 (which will be fixed in 115.3.1). That is, you got bad calendar data into your system and when Thunderbird tries to handle it, it goes into an infinite loop.

Flags: needinfo?(vseerror)
Flags: needinfo?(mkmelin+mozilla)

Re: comment 46:

mail.server.default.autosync_offline_stores set to false in Config Editor

Robert, if you try this, be sure to set it back again to true. Just a reminder since I recently made a "temporary" change with Config Editor and forgot to put it back which caused me some confusion.

After updating to TB 115.3.1 the TB window does not freeze any more.

I tested:

  • starting TB in online mode, where Horde had new former unknown events in its calendar.
  • starting TB in offline mode and then switch to online.
  • synchronisation with some IMAP content, which was not known to TB before: IMAP did not freeze the TB window.
  • deleting calendar event entries in TB and verify that they become deleted in Horde calendar website
  • deleting calendar event entries in Horde Calendar and verify that they become deleted in TB calendar view.
  • creating calendar events in TB which where synchronized with Horde Calendar correctly.

I did not test "counter problem" ( Bug 1665146 ) and I did not test "wrongly organizer exchange" ( Bug 1853535 ) with TB 115.3.1.

From my point of view Bug 1852726 can be closed as fixed, since behavior is not observable with TB 115.3.1 any more.
Thanks for fixing.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1850732
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: