LookOut-fix-version icon indicating copy to clipboard operation
LookOut-fix-version copied to clipboard

Version 7.0 currentAttachments[index] is undefined

Open dugite-code opened this issue 5 months ago • 4 comments

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

dugite-code avatar Jul 28 '25 10:07 dugite-code

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 :-)

jobisoft avatar Jul 28 '25 10:07 jobisoft

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

dugite-code avatar Jul 28 '25 11:07 dugite-code

Which version of TB are you using?

jobisoft avatar Jul 28 '25 11:07 jobisoft

Can you add this debug logging and see if there is a connection? https://github.com/TB-throwback/LookOut-fix-version/pull/131

jobisoft avatar Jul 28 '25 11:07 jobisoft