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

Bad file descriptor when moving too fast in the cache #18

Open
bitbrain opened this issue Sep 11, 2013 · 0 comments
Open

Bad file descriptor when moving too fast in the cache #18

bitbrain opened this issue Sep 11, 2013 · 0 comments
Labels
Milestone

Comments

@bitbrain
Copy link
Owner

java.io.IOException: Bad file descriptor is thrown when moving too fast in different directions, because a chunk is saved which is currently loaded and vise versa:

java.io.IOException: Bad file descriptor
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:297)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1870)
    at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1779)
    at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1283)
    at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1228)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1424)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1570)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
    at de.myreality.chunx.io.SimpleChunkSaver.save(SimpleChunkSaver.java:94)
    at de.myreality.chunx.caching.CachedChunkHandler.saveChunk(CachedChunkHandler.java:174)
    at de.myreality.chunx.caching.CachedChunkHandler.unloadChunk(CachedChunkHandler.java:192)
    at de.myreality.chunx.caching.CachedChunkHandler.unloadChunks(CachedChunkHandler.java:203)
    at de.myreality.chunx.caching.CachedChunkHandler.handleChunks(CachedChunkHandler.java:114)
    at de.myreality.chunx.caching.SimpleCachedChunkSystem.update(SimpleCachedChunkSystem.java:97)
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

1 participant