Bug #671

FileNotFound err when shared with Gmail

Added by n8fr8 almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:02/15/2013
Priority:NormalDue date:
Assignee:harlo% Done:

0%

Category:-
Target version:v1 - "Sailor"
Component:

Description

Similar to #670, when I shared an outputted stegogram, the following exception occured:

W/Gmail (15284): Failed to attach file:///storage/sdcard0/PixelKnot/136090723870_embed.jpg due to a FileNotFoundException. Since the cached file has already been tried, this file cannotbe attached. Notify the user.
W/Gmail (15284): java.io.FileNotFoundException: /storage/sdcard0/PixelKnot/136090723870_embed.jpg: open failed: ENOENT (No such file or directory)
W/Gmail (15284): at libcore.io.IoBridge.open(IoBridge.java:416)
W/Gmail (15284): at java.io.FileInputStream.<init>(FileInputStream.java:78)
W/Gmail (15284): at java.io.FileInputStream.<init>(FileInputStream.java:105)
W/Gmail (15284): at android.content.ContentResolver.openInputStream(ContentResolver.java:445)
W/Gmail (15284): at com.google.android.gm.provider.MailEngine$PublicMailStore.getInputStreamForUploadedAttachment(MailEngine.java:4434)
W/Gmail (15284): at com.google.android.gm.provider.MailSync$AttachmentPartSource.newInputStream(MailSync.java:3817)
W/Gmail (15284): at com.google.android.gm.provider.MailSync$AttachmentPartSource.<init>(MailSync.java:3793)
W/Gmail (15284): at com.google.android.gm.provider.MailSync$ProtoOperationSink.messageSavedOrSent(MailSync.java:3438)
W/Gmail (15284): at com.google.android.gm.provider.Operations.provideNormalOperations(Operations.java:442)
W/Gmail (15284): at com.google.android.gm.provider.MailEngine$PublicMailStore.provideOperations(MailEngine.java:4131)
W/Gmail (15284): at com.google.android.gm.provider.MailSync.nextSyncRequest(MailSync.java:751)
W/Gmail (15284): at com.google.android.gm.provider.MailEngine.runSyncLoop(MailEngine.java:1712)
W/Gmail (15284): at com.google.android.gm.provider.MailEngine.sync(MailEngine.java:1621)
W/Gmail (15284): at com.google.android.gm.provider.MailEngine.performBackgroundSync(MailEngine.java:1558)
W/Gmail (15284): at com.google.android.gm.provider.MailSyncAdapterService$SyncAdapterImpl.onPerformLoggedSync(MailSyncAdapterService.java:62)
W/Gmail (15284): at com.google.android.common.LoggingThreadedSyncAdapter.onPerformSync(LoggingThreadedSyncAdapter.java:33)
W/Gmail (15284): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
W/Gmail (15284): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
W/Gmail (15284): at libcore.io.Posix.open(Native Method)
W/Gmail (15284): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
W/Gmail (15284): at libcore.io.IoBridge.open(IoBridge.java:400)
W/Gmail (15284): ... 16 more
E/Gmail (15284): IO error while reading attachment: 1427014834190286848-1
E/Gmail (15284): java.io.FileNotFoundException: /storage/sdcard0/PixelKnot/136090723870_embed.jpg: open failed: ENOENT (No such file or directory)
E/Gmail (15284): at libcore.io.IoBridge.open(IoBridge.java:416)
E/Gmail (15284): at java.io.FileInputStream.<init>(FileInputStream.java:78)
E/Gmail (15284): at java.io.FileInputStream.<init>(FileInputStream.java:105)
E/Gmail (15284): at android.content.ContentResolver.openInputStream(ContentResolver.java:445)
E/Gmail (15284): at com.google.android.gm.provider.MailEngine$PublicMailStore.getInputStreamForUploadedAttachment(MailEngine.java:4434)
E/Gmail (15284): at com.google.android.gm.provider.MailSync$AttachmentPartSource.newInputStream(MailSync.java:3817)
E/Gmail (15284): at com.google.android.gm.provider.MailSync$AttachmentPartSource.<init>(MailSync.java:3793)
E/Gmail (15284): at com.google.android.gm.provider.MailSync$ProtoOperationSink.messageSavedOrSent(MailSync.java:3438)
E/Gmail (15284): at com.google.android.gm.provider.Operations.provideNormalOperations(Operations.java:442)
E/Gmail (15284): at com.google.android.gm.provider.MailEngine$PublicMailStore.provideOperations(MailEngine.java:4131)
E/Gmail (15284): at com.google.android.gm.provider.MailSync.nextSyncRequest(MailSync.java:751)
E/Gmail (15284): at com.google.android.gm.provider.MailEngine.runSyncLoop(MailEngine.java:1712)
E/Gmail (15284): at com.google.android.gm.provider.MailEngine.sync(MailEngine.java:1621)
E/Gmail (15284): at com.google.android.gm.provider.MailEngine.performBackgroundSync(MailEngine.java:1558)
E/Gmail (15284): at com.google.android.gm.provider.MailSyncAdapterService$SyncAdapterImpl.onPerformLoggedSync(MailSyncAdapterService.java:62)
E/Gmail (15284): at com.google.android.common.LoggingThreadedSyncAdapter.onPerformSync(LoggingThreadedSyncAdapter.java:33)
E/Gmail (15284): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
E/Gmail (15284): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
E/Gmail (15284): at libcore.io.Posix.open(Native Method)
E/Gmail (15284): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
E/Gmail (15284): at libcore.io.IoBridge.open(IoBridge.java:400)
E/Gmail (15284): ... 16 more

History

#1 Updated by n8fr8 almost 5 years ago

  • Assignee set to harlo

looking at the contents of my /sdcard/PixelKnot folder, I see this:

rw-rw-r- root sdcard_rw 1084256 2013-02-15 12:40 1360906841660.jpg
rw-rw-r- root sdcard_rw 0 2013-02-15 12:40 136090684166_embed.jpg
rw-rw-r- root sdcard_rw 868518 2013-02-15 12:44 1360907085767.jpg
rw-rw-r- root sdcard_rw 0 2013-02-15 12:44 136090708576_embed.jpg
rw-rw-r- root sdcard_rw 238455 2013-02-15 12:47 1360907238708.jpg

It looks like you are looking for the "_embed.jpg" in /sdcard and it doesn't exist, but the full ".jpg" is there.

#2 Updated by harlo almost 5 years ago

yeah, same issue. the share function is pointing the wrong file. I thought I fixed this in my last commit, but maybe I didn't push my changes?

#3 Updated by harlo almost 5 years ago

Just pushed latest commit. (Days old-- don't know why I forgot.) Please try with new changes and LMK if problem persists.

#4 Updated by n8fr8 almost 5 years ago

  • Status changed from New to Resolved

#5 Updated by n8fr8 almost 5 years ago

I pulled new code, rebuilt and tested again - all is well!

FYI - I am also testing on my $150 2.3.6 phone bought here in Thailand.

#6 Updated by n8fr8 almost 5 years ago

  • Target version set to v1 - "Sailor"

#7 Updated by n8fr8 almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF