bfopen; An unexpected network error occurred
Posted: Mon Oct 08, 2018 2:09 pm
Although I don't know how to reproduce this, but while I'm using `bfopen.m` of Bio-Formats MATLAB toolbox, I often (but not always) encounter the error below. This is apparently not due to MATLAB code, because the same code works well usually and only after running the code for some time I encounter this. A workaround for this is to restart MATLAB and it always works so far.
But if you could tell what's causing this, and stop this happening, it would be better.
Thanks in advance.
Best,
Kouichi
But if you could tell what's causing this, and stop this happening, it would be better.
Thanks in advance.
Best,
Kouichi
- Code: Select all
Java exception occurred:
java.io.IOException: An unexpected network error occurred
at sun.nio.ch.FileDispatcherImpl.pread0(Native Method)
at sun.nio.ch.FileDispatcherImpl.pread(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.FileChannelImpl.readInternal(Unknown Source)
at sun.nio.ch.FileChannelImpl.read(Unknown Source)
at loci.common.NIOByteBufferProvider.allocateDirect(NIOByteBufferProvider.java:127)
at loci.common.NIOByteBufferProvider.allocate(NIOByteBufferProvider.java:112)
at loci.common.NIOFileHandle.buffer(NIOFileHandle.java:629)
at loci.common.NIOFileHandle.<init>(NIOFileHandle.java:133)
at loci.common.NIOFileHandle.<init>(NIOFileHandle.java:151)
at loci.common.NIOFileHandle.<init>(NIOFileHandle.java:165)
at loci.common.Location.getHandle(Location.java:416)
at loci.common.Location.getHandle(Location.java:372)
at loci.common.Location.getHandle(Location.java:353)
at loci.common.Location.getHandle(Location.java:336)
at loci.common.Location.checkValidId(Location.java:441)
at loci.formats.ImageReader.getReader(ImageReader.java:177)
at loci.formats.ImageReader.setId(ImageReader.java:839)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)
at loci.formats.ChannelFiller.setId(ChannelFiller.java:223)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)
at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:291)