Bug #4402

Something seems to close the stream to early in the IOCipher example

Added by Anonymous about 3 years ago. Updated almost 3 years ago.

Status:In ProgressStart date:01/15/2015
Priority:NormalDue date:
Assignee:n8fr8% Done:


Target version:0.3.1


Running the IOCipher example I seem to be getting the following message when attempting to view some files from the VFS. Not completely sure but I think it's files larger than 64kb files smaller than this don't produce this message.

01-15 22:48:45.180 25232-25578/info.guardianproject.iocipherexample E/IOCipherContentProvider? File transfer failed:
java.io.IOException: write failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.write(IoBridge.java:502)
at java.io.FileOutputStream.write(FileOutputStream.java:186)
at info.guardianproject.iocipherexample.IOCipherContentProvider$PipeFeederThread.run(IOCipherContentProvider.java:102)
Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
at libcore.io.Posix.writeBytes(Native Method)
at libcore.io.Posix.write(Posix.java:223)
at libcore.io.BlockGuardOs.write(BlockGuardOs.java:313)
at libcore.io.IoBridge.write(IoBridge.java:497)
            at java.io.FileOutputStream.write(FileOutputStream.java:186)
            at info.guardianproject.iocipherexample.IOCipherContentProvider$PipeFeederThread.run(IOCipherContentProvider.java:102)


#1 Updated by n8fr8 about 3 years ago

  • Status changed from New to In Progress
  • Assignee set to n8fr8

Yes, this is related to the pipe feeding. I believe we have fixed it in other code with the work we are doing with the encrypted video capture. Will try to update the sample soon.

#2 Updated by hans almost 3 years ago

@n8fr8, does your camera example have this working?

Or maybe the secure camera:

#3 Updated by n8fr8 almost 3 years ago

The latest/best code is actually here:

I am going to pull this back out into a better example project this week.

It doesn't have the bug of closing the cipher stream.

#4 Updated by hans almost 3 years ago

  • Target version set to 0.3.1

Also available in: Atom PDF