Ошибка майнкрафт internal exception java nio channels closedchannelexception
You have closed the channel and are still trying to use it.
There are several issues with your code.
First, your test for EOS is faulty. Remove the limit() == 0 test. That doesn't indicate EOS, it just indicates a zero length read, which can happen in non-blocking mode at any time. It doesn't mean the peer has closed his end of the connection, and it doesn't mean you should close your end.
Second, closing a channel closes the socket as well. You should close the channel only, not the socket.
Third, closing a channel cancels the key. You don't need to follow every close with a cancel.
You may also have failed to check whether a ready key is valid in the select loop before using it, e.g. for reading.
I continue to be amazed, and amused, and bemused, by the claim elsewhere in this thread that 'source code is untrue' under some circumstances.
I have scrolled through some bug reports and they are resolved stating that it would be resolved in 3.0.7, but im already on 3.0.8
Also it may not be a problem with the world save, as I have tried like 5 backup worlds, even ones that was able to load before.
Context
An annoyance really. Loads save fine after failing the first time.
World Information
- Modpack Version world created in: 3.0.6
- Additional Content Installed: Just optifine
The text was updated successfully, but these errors were encountered:
mklprudence commented Jun 25, 2018
Stifling-Bossness commented Jun 25, 2018
A few things that may or may not solve your issue.
Your Java is horribly out of date. You're using 1.8_025, which came out 4 years ago. You even get a warning message in chat about this every time you log in. After installing the latest Java (171/172 at the time of this post), open your Twitch app, then go to the upper right corner, click the dropdown arrow, click Settings, then go to the Minecraft tab in the new window.
In the Minecraft settings then change the Launcher to Jar Launcher instead of Native. Ensure the Latest Java Version dropdown box shows Java 8 u171/172 as the version.
You're not allocating nearly enough RAM. 3GB is absolutely not enough for this pack, 4GB is seen as the absolute minimum for this pack, with 6GB being recommended and 8GB max.
Also, do not install Java 9 or 10, they're unsupported by Forge and you will crash
Once you've done these, try again.
mklprudence commented Jun 25, 2018
I allocated 6GB and java 8 u172, but it's still not working
FYI, I paused the game before the world closes, and it said "There is no advancement here" when I click into the advancement tab.
artdude543 commented Jun 25, 2018
Re-install your pack it's really broken and your missing content. Also, this can be moved to Discord.
so I'm making a modded survival on 1.12.2 and everything works fine, except 80% of the time I run the world, I get the error "java.nio.channels.closedchannelexception", and for some reason, no one has talked about this error. So, how do I fix this?
- Enderdragon Slayer
- Join Date: 11/20/2012
- Posts: 14,164
- Member Details
- Tree Puncher
- Join Date: 7/16/2019
- Posts: 23
- Member Details
there is no crash, when you get the error, an option appears that says back to server screen.
Updated from 3.0.4 to 3.0.6 and now have issue loading previous 3.0.4 saves. Initial loads of the single player save return "Internal Exception: java.nio.channels.ClosedChannelException" then send me to server select screen. Further attempts to load function properly
Expected Behaviour
Steps to Reproduce (for bugs)
- Start save in 3.0.4
- update straight to 3.0.6
- Try loading previous save.
Client Information
- Modpack Version: 3.0.6 (Disabled Mo' Bends and Better Foliage due to performance issues)
- Java Version: 1.8.0.71 (64-bit)
- Launcher Used: Twitch
The text was updated successfully, but these errors were encountered:
NerdySpider commented Apr 21, 2018
@justinrusso this dose not seem to be the case though. I have just heard about this pack and decided to try it out. after making a world and receiving this issue I tried to rejoin it. but only for it to kick me back out with the same issue again.
Delaterius commented Apr 24, 2018
@DragonmasterDJ I had the same problem. I created a second new world, and was then able to load into either.
justinrusso commented Apr 28, 2018
This appears to be fine. No one has been finding issues since this change.
Logins555 commented Jun 8, 2018
I been having the same error mesage almost every time I attempt traveling between dimensions:
Then got kick out to the server select screen, and then sometimes when opening the save find my character teleported a bit more than 1100 blooks away and often inside of a moutain.
KS-HTK commented Jul 5, 2018
This Bug is not fixed. I have been having this Issue since 3.0.2(when I started playing) and I still get it. Currently on 3.0.8
I am on 3.0.8 and I am still experiencing this problem. When initially loading up the pack, I am able to join my world just fine, but if I left the world and tried to rejoin after playing for a while, it would close the world, reading: Shutting down internal server, and then give the ClosedChannel Exception. I would try again and again to rejoin, but the same issue repeated. This would be fixed by closing the whole pack and then reopening it, so if it were just that it would be a minor inconvenience. However, the issue also occurs on some occasions when I am going between dimensions. When going to the Betweenlands, the issue would occur and when I finally managed to get back into the world, I would find myself hundreds of blocks away from my portal and in a cave. So far, this issue has occurred going to and from the Betweenlands, Nether, and Hunting Dimension, but never the Twilight. I have found myself teleported to locations such as in caves, suffocating in stone in a mountain, and in a lava lake. All of this is very frustrating and wastes a ton of time, because it takes the pack 10 minutes to load for me, even with 8 GB of RAM allocated. I've had tons of fun playing this pack, but this issue is messing up the experience a bit. I would very much appreciate a solution to this issue. Thanks
Client Information
- Modpack Version: 3.0.8
- Java Version: Java 8? I think
- Launcher Used: Curse / Twitch
- Memory Allocated: 3078 MB
- Server/LAN/Single Player: Single Player
- Optifine Installed: 1.12.2_HD_U_D3
- Shaders Enabled: Nope
Steps to Reproduce (for bugs)
- I just close the minecraft or close the world
- and randomly sometimes it will happen once i try reloading the world in
Client/Server Log:
latest.log
The world closes at the end of this log
Crash Log: no crash log cuz the world closes without crashing the game
Читайте также: