birdtray
birdtray copied to clipboard
No new emails signaled after some period of time
OS: openSUSE Tumbleweed / 20191119 Birdtray version: 1.6.0 - latest git pull as of 2019-11-23 Thunderbird version: 68.2.1 (64-bit) Birdtray origin: From source. Qt version: Qt 5.13.1 Description I have a couple of issues with birdtray. One is over time, birdtray loses count between what's unread vs what it believes is unread. The second issue is it stops signaling new emails after certain situations. I don't know what those situations are though.
For this bug, I think we should focus on the second issue. Perhaps the data gathering techniques that I learn to resolve issue two will help me put together a cleaner bug report for issue one.
I ran birdtray with debug on in a shell (-d). I started it yesterday afternoon and this morning sometime, I noticed the counts were not being updated. I checked the debug output and nothing was being written when a new email was received.
I strace'd the process with the hopes that the strace might provide a clue. Here's how I gathered the strace. I ran strace, sent myself an email, confirmed receipt and terminated strace
I ran strace as root: # strace -o loop.strace -r -tt -p 4303
Expected behavior birdtray should always catch new mail messages.
To Reproduce
- Compile the latest version
- In a shell, run
birdtray -d - After an indeterminate period of time,
birdtraywill stop updating on new emails. Debug will stop being produced.
Additional context
Please let me know if a version of birdtray with more debug options can be used to gather debug.
A new Tumbleweed and birdtray update yesterday. It seems, of course!, things are working well. We will see: Thunderbird version: 68.2.2 (64-bit).
At 3:22pm UTC today I did another git pull and I'm running those bits now:
From https://github.com/gyunaev/birdtray
5f19eb2..ffb9d17 master -> origin/master
Updating 5f19eb2..ffb9d17
It's now 9:29 pm UTC and sometime between my last post and now, birdtray has stopped working.
- If I read a new mail message, the count does not change.
- If I receive a new mail, the count does not change nor does -d produce any output.
Please advise on the best way to debug.
One suggestion is to increase debug verbosity by providing supporting -d arguments:
- -d = current debug
- -d -d = current debug + extra debug
- -d -d -d = (2 x -d debug) + even more debug
You get the idea ...
strace (no need to run under root) output would help to debug. Please run strace attached to birdtray, make an email unread, then make it read, and attach the strace output.
As requested, strace -o plugh.strace -r -tt -p XXXX
At roughly :35 I unread a message and at :36 I marked it read.
If it helps any, the output of ./birdtray -d is stalled.
This should be fixed in the current master.
i believe the issue i'm having is the same - i've been using bt for a couple years across many versions of TB and across 2 flavors of Linux (mint and now manjaro) and, for whatever reason, it always stops updating the new mail count after a random period of time - let's say after a several hours or so
every time bt stops updating the count, i can open settings -> monitoring and click ok without changing or clicking anything else and it works fine again... for several more hours
in my case i have 3 imap's that get delivered to an inbox on local folders, which is the only folder that bt monitors ( Locak Folders [Inbox] )
bt v1.9.0, AUR
Have you checked the latest release?
is 1.9 not the latest release?
It is, but you have posted the issue within hours of the official release, so I wonder whether you really had time to run it for a few hours. So I think what you're using in AUR is possibly an older snapshot (could be a few weeks or a few months).
So could you please build with the release source code and provide the log entries (Settings -> Advanced -> Show log window) once Birdtray stops updating the new email count?
It is, but you have posted the issue within hours of the official release, so I wonder whether you really had time to run it for a few hours.
i'm guessing the package maintainer updated the package right after you published because i do indeed have 1.9.0
So could you please build with the release source code ...
sorry but i'm not that familiar with Linux and so i'm not really comfortable doing that
in this case, i had one new mail and BT correctly indicated this, however after i marked it as read, BT didn't update the count - here's the log...
click me
2020-10-28 07:31:25 Birdtray version 1.9.0 started
2020-10-28 07:31:26 Triggering the unread counter update
2020-10-28 07:31:26 Window ID found: 0
2020-10-28 07:31:26 Starting Thunderbird as '/usr/bin/thunderbird '
2020-10-28 07:31:26 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:31:27 Window ID found: 0
2020-10-28 07:31:28 Window ID found: 0
2020-10-28 07:31:29 Window ID found: 0
2020-10-28 07:31:30 Window ID found: 0
2020-10-28 07:31:31 Window ID found: 0
2020-10-28 07:31:32 Triggering the unread counter update
2020-10-28 07:31:32 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:31:32 Window ID found: 3400010
2020-10-28 07:31:32 Window removed from taskbar
2020-10-28 07:31:33 Triggering the unread counter update
2020-10-28 07:31:33 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:31:33 Triggering the unread counter update
2020-10-28 07:31:33 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 2
2020-10-28 07:31:33 unreadCounterUpdate 2
2020-10-28 07:31:45 Triggering the unread counter update
2020-10-28 07:31:45 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 1
2020-10-28 07:31:45 unreadCounterUpdate 1
2020-10-28 07:31:46 Triggering the unread counter update
2020-10-28 07:31:46 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:31:46 unreadCounterUpdate 0
2020-10-28 07:32:01 Triggering the unread counter update
2020-10-28 07:32:01 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:32:14 Window removed from taskbar
2020-10-28 07:33:10 Triggering the unread counter update
2020-10-28 07:33:10 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 2
2020-10-28 07:33:10 unreadCounterUpdate 2
2020-10-28 07:33:30 Triggering the unread counter update
2020-10-28 07:33:30 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 3
2020-10-28 07:33:30 unreadCounterUpdate 3
2020-10-28 07:33:35 Triggering the unread counter update
2020-10-28 07:33:35 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 4
2020-10-28 07:33:35 unreadCounterUpdate 4
2020-10-28 07:44:39 Triggering the unread counter update
2020-10-28 07:44:39 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 3
2020-10-28 07:44:39 unreadCounterUpdate 3
2020-10-28 07:44:43 Triggering the unread counter update
2020-10-28 07:44:43 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 2
2020-10-28 07:44:43 unreadCounterUpdate 2
2020-10-28 07:44:44 Triggering the unread counter update
2020-10-28 07:44:44 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 1
2020-10-28 07:44:44 unreadCounterUpdate 1
2020-10-28 07:44:44 Triggering the unread counter update
2020-10-28 07:44:44 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:44:44 unreadCounterUpdate 0
2020-10-28 07:44:45 Triggering the unread counter update
2020-10-28 07:44:45 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 07:44:46 Window removed from taskbar
2020-10-28 08:35:28 Triggering the unread counter update
2020-10-28 08:35:28 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 1
2020-10-28 08:35:28 unreadCounterUpdate 1
2020-10-28 08:37:45 Triggering the unread counter update
2020-10-28 08:37:45 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 08:37:45 unreadCounterUpdate 0
2020-10-28 08:37:46 Triggering the unread counter update
2020-10-28 08:37:46 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 08:37:54 Triggering the unread counter update
2020-10-28 08:37:54 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 08:37:55 Window removed from taskbar
2020-10-28 08:38:27 Triggering the unread counter update
2020-10-28 08:38:27 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 08:38:28 Window removed from taskbar
2020-10-28 08:38:33 Triggering the unread counter update
2020-10-28 08:38:33 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 08:38:34 Window removed from taskbar
2020-10-28 10:28:11 Window removed from taskbar
2020-10-28 11:11:10 Triggering the unread counter update
2020-10-28 11:11:10 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 0
2020-10-28 11:11:10 Triggering the unread counter update
2020-10-28 11:11:10 Unread counter for /home/user/.thunderbird/se4gbx7d.default/Mail/Local Folders/Inbox.msf: 1
2020-10-28 11:11:10 unreadCounterUpdate 1
2020-10-28 11:16:19 Window removed from taskbar
as usual, clicking settings -> monitoring -> ok corrected the count
Thank you. No idea what's going on. Would you be able to do some tests which require recompiling the code?
sure, as long as you can walk me through it