question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when saving "noname" file from email

See original GitHub issue

I subscribe to a lot of mailing lists, and K-9 doesn’t seem to like them.

I’ve been able to reproduce a crash by opening what should be an ordinary email, and instead of seeing the text, there is a “noname” attachment. Trying to open it with an application, as far as I can tell, sends no data to the application in question. Attempting to save the file causes K-9 to crash. I’ve included a GIF to show this (the email I’m opening is here), and I’ve also included some output I got from my first time using adb.

crash

04-05 18:27:54.853 16062 17459 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #5
04-05 18:27:54.853 16062 17459 E AndroidRuntime: Process: com.fsck.k9, PID: 16062
04-05 18:27:54.853 16062 17459 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at android.os.AsyncTask$3.done(AsyncTask.java:318)
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:3$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.util.concurrent.FutureTask.run(FutureTask.java:242)
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecut$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecu$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:761)
04-05 18:27:54.853 16062 17459 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: mimeType can't be null
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at android.app.DownloadManager.validateArgumentIsNonEmpty(DownloadMan$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at android.app.DownloadManager.addCompletedDownload(DownloadManager.j$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at android.app.DownloadManager.addCompletedDownload(DownloadManager.j$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at com.fsck.k9.ui.messageview.AttachmentController.addSavedAttachment$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at com.fsck.k9.ui.messageview.AttachmentController.saveAttachmentWith$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at com.fsck.k9.ui.messageview.AttachmentController.access$900(Attachm$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at com.fsck.k9.ui.messageview.AttachmentController$SaveAttachmentAsyn$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at com.fsck.k9.ui.messageview.AttachmentController$SaveAttachmentAsyn$
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at android.os.AsyncTask$2.call(AsyncTask.java:304)
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
04-05 18:27:54.853 16062 17459 E AndroidRuntime:        ... 3 more

I’ve been having this issue for a while now, probably with several different versions, but right now, I’m on K-9 Mail 5.503 and Android 7.0.

And by the way, even though this is on a mailing list, I have OpenPGP encryption enabled with my email provider (they’ll use my public key to encrypt emails that aren’t encrypted already), so it is encrypted with PGP/MIME. I don’t think that has anything to do with it, but that’s just a disclaimer. The email decrypts and displays fine in Thunderbird + Enigmail.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Valodimcommented, Apr 11, 2018

@JohnScott623 could you forward such a message to me as attachment? -> look@my.amazin.horse

0reactions
cketticommented, Oct 6, 2020

Please create a new issue if this is still a problem with K-9 Mail 5.7xx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash when saving "noname" file from email #3308 - GitHub
I've been able to reproduce a crash by opening what should be an ordinary email, and instead of seeing the text, there is...
Read more >
Trouble shooting: Gmail “noname” attachment - DynamicLTA
Client's can't open “noname” attachments in Gmail but in Outlook they open fine. Dynamic integrates with Microsoft Outlook.
Read more >
Outlook crashes everytime I try to save email or attachment to ...
my email crashes everytime I try to save email or attachment to desktop * Original title: outlook.
Read more >
PDF attachment in email is called 'Noname' - Stack Overflow
When I send an email with a attached pdf file the email only shows a file called 'Noname'. The file itself is the...
Read more >
MAIL CRASHES ON SAVING ATTACHMENTS
Open another file in the app. There may be a problem with the original file. Check for updates to your software.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found