Version 7.0 currentAttachments[index] is undefined
Some email messages will occasionally return the following error. This appears to be a race condition of some kind as it is not consistent
can't access property "size", currentAttachments[index] is undefined msgHdrView.js:2077:5
Uncaught (in promise) TypeError: can't access property "size", currentAttachments[index] is undefined
updateAttachmentsDisplay chrome://messenger/content/msgHdrView.js:2077
isEmpty resource:///modules/AttachmentInfo.sys.mjs:717
2 msgHdrView.js:2077:5
Error: An unexpected error occurred undefined
Can you provide some hints how to trigger it? I only have one TNEF message for testing and do not see it. Could you send me samples?
Please also state your enabled options, which might be important to reproduce the issue.
It is also a good idea to have some samples in the repo. With each year, it is getting more difficult to find the one example I have been using for years :-)
I'm trying to figure out if there is any method of triggering the issue. Unfortunately it's proving to be frustratingly inconsistent.
- Fresh deployment of Thunderbird + lookout. All optioned tested including default options.
- Issue is intermittent, click once it occurs, second time no issue.
- Appears more consistently on emails with a larger number of attachments.
- Only a subset of attachments are missing their file sizes
My sample set generally speaking contains mostly private communications. I'll put together a .eml dataset using https://github.com/koodaamo/tnefparse/tree/master/tests/examples
Which version of TB are you using?
Can you add this debug logging and see if there is a connection? https://github.com/TB-throwback/LookOut-fix-version/pull/131