Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't attach file when sharing log via gmail #1600

Closed
jpmens opened this issue Feb 4, 2024 · 3 comments
Closed

Couldn't attach file when sharing log via gmail #1600

jpmens opened this issue Feb 4, 2024 · 3 comments
Labels
Milestone

Comments

@jpmens
Copy link
Member

jpmens commented Feb 4, 2024

  • App build number: 2.5.0
  • Device: Samsung S8

When submitting logs, I want to attach to an outgoing Gmail message. The app indicates "could not attach file", and an empty email with Subject "OwnTracks Log File" is sent.

@jpmens jpmens added the bug label Feb 4, 2024
@growse growse added this to the v2.5 milestone Feb 4, 2024
@growse
Copy link
Collaborator

growse commented Feb 4, 2024

Hmm. Works for Google Drive etc. Wonder if this is a GMail thing.

@jpmens
Copy link
Member Author

jpmens commented Feb 4, 2024

You are right, it works for Drive, but I found this in the log which was submitted to Drive:

2024-02-04 13:53:08.211 E [AsyncTask #14] ExportedLogContentProvider: Can't write logs to output
java.io.IOException: write failed: EPIPE (Broken pipe)
	at libcore.io.IoBridge.write(IoBridge.java:531)
	at java.io.FileOutputStream.write(FileOutputStream.java:381)
	at java.io.FileOutputStream.write(FileOutputStream.java:359)
	at org.owntracks.android.ui.status.logs.ExportedLogContentProvider.openFile$lambda$2(Unknown Source:27)
	at org.owntracks.android.ui.status.logs.ExportedLogContentProvider.$r8$lambda$0FCHc_1e4Qd4KLhynmTWJo6dC2M(SourceFile:1)
	at org.owntracks.android.ui.status.logs.ExportedLogContentProvider$$ExternalSyntheticLambda0.writeDataToPipe(SourceFile:1)
	at android.content.ContentProvider$1.doInBackground(ContentProvider.java:1863)
	at android.os.AsyncTask$2.call(AsyncTask.java:333)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)
Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
	at libcore.io.Linux.writeBytes(Native Method)
	at libcore.io.Linux.write(Linux.java:288)
	at libcore.io.BlockGuardOs.write(BlockGuardOs.java:348)
	at libcore.io.IoBridge.write(IoBridge.java:526)
	... 11 more

2024-02-04 13:53:08.366 E [AsyncTask #15] ExportedLogContentProvider: Can't write logs to output
java.io.IOException: write failed: EPIPE (Broken pipe)
	at libcore.io.IoBridge.write(IoBridge.java:531)
	at java.io.FileOutputStream.write(FileOutputStream.java:381)
	at java.io.FileOutputStream.write(FileOutputStream.java:359)
	at org.owntracks.android.ui.status.logs.ExportedLogContentProvider.openFile$lambda$2(Unknown Source:27)
	at org.owntracks.android.ui.status.logs.ExportedLogContentProvider.$r8$lambda$0FCHc_1e4Qd4KLhynmTWJo6dC2M(SourceFile:1)
	at org.owntracks.android.ui.status.logs.ExportedLogContentProvider$$ExternalSyntheticLambda0.writeDataToPipe(SourceFile:1)
	at android.content.ContentProvider$1.doInBackground(ContentProvider.java:1863)
	at android.os.AsyncTask$2.call(AsyncTask.java:333)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)
Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
	at libcore.io.Linux.writeBytes(Native Method)
	at libcore.io.Linux.write(Linux.java:288)
	at libcore.io.BlockGuardOs.write(BlockGuardOs.java:348)
	at libcore.io.IoBridge.write(IoBridge.java:526)
	... 11 more

Doesn't look right to me.

@growse growse closed this as completed in 5e66f76 Feb 4, 2024
@growse
Copy link
Collaborator

growse commented Feb 4, 2024

I've a fix that should fix both gmail and drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants