makamys / CoreTweaks

A bunch of random bug fixes, optimizations and tweaks (1.7.10)
MIT License
46 stars 5 forks source link

corrupted player data while recovering from crash #38

Open AnAwesomGuy opened 6 months ago

AnAwesomGuy commented 6 months ago

looks like this might be caused by #14? so i joined the singleplayer world, and got this in the logs (twice), which kicked me back to the main menu screen instantly. (no crash screen or anything)

[Netty Client IO #2/ERROR] [FML]: NetworkDispatcher exception
java.lang.RuntimeException: Timeout waiting for client thread to catch up!
    at cpw.mods.fml.client.FMLClientHandler.waitForPlayClient(FMLClientHandler.java:877)
    at cpw.mods.fml.common.FMLCommonHandler.waitForPlayClient(FMLCommonHandler.java:585)
    at cpw.mods.fml.common.network.handshake.NetworkDispatcher.clientListenForServerHandshake(NetworkDispatcher.java:171)
    at cpw.mods.fml.common.network.handshake.FMLHandshakeClientState$1.accept(FMLHandshakeClientState.java:35)
    at cpw.mods.fml.common.network.handshake.FMLHandshakeClientState$1.accept(FMLHandshakeClientState.java:29)
    at cpw.mods.fml.common.network.handshake.HandshakeMessageHandler.userEventTriggered(HandshakeMessageHandler.java:40)
    at io.netty.channel.DefaultChannelHandlerContext.invokeUserEventTriggered(DefaultChannelHandlerContext.java:308)
    at io.netty.channel.DefaultChannelHandlerContext.fireUserEventTriggered(DefaultChannelHandlerContext.java:294)
    at io.netty.channel.ChannelInboundHandlerAdapter.userEventTriggered(ChannelInboundHandlerAdapter.java:108)
    at io.netty.channel.DefaultChannelHandlerContext.invokeUserEventTriggered(DefaultChannelHandlerContext.java:308)
    at io.netty.channel.DefaultChannelHandlerContext.fireUserEventTriggered(DefaultChannelHandlerContext.java:294)
    at io.netty.channel.ChannelInboundHandlerAdapter.userEventTriggered(ChannelInboundHandlerAdapter.java:108)
    at io.netty.channel.DefaultChannelHandlerContext.invokeUserEventTriggered(DefaultChannelHandlerContext.java:308)
    at io.netty.channel.DefaultChannelHandlerContext.fireUserEventTriggered(DefaultChannelHandlerContext.java:294)
    at io.netty.channel.DefaultChannelPipeline.fireUserEventTriggered(DefaultChannelPipeline.java:779)
    at cpw.mods.fml.common.network.handshake.NetworkDispatcher.handlerAdded(NetworkDispatcher.java:137)
    at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:484)
    at io.netty.channel.DefaultChannelPipeline.callHandlerAdded(DefaultChannelPipeline.java:479)
    at io.netty.channel.DefaultChannelPipeline.addBefore0(DefaultChannelPipeline.java:178)
    at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:163)
    at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:153)
    at cpw.mods.fml.common.network.handshake.NetworkDispatcher.insertIntoChannel(NetworkDispatcher.java:124)
    at cpw.mods.fml.common.network.handshake.NetworkDispatcher.clientToServerHandshake(NetworkDispatcher.java:129)
    at cpw.mods.fml.common.network.internal.FMLNetworkHandler.fmlClientHandshake(FMLNetworkHandler.java:66)
    at net.minecraft.client.network.NetHandlerLoginClient.func_147390_a(NetHandlerLoginClient.java:107)
    at net.minecraft.network.login.server.S02PacketLoginSuccess.func_148833_a(SourceFile:39)
    at net.minecraft.network.login.server.S02PacketLoginSuccess.func_148833_a(SourceFile:11)
    at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:113)
    at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:317)
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98)
    at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
    at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785)
    at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:313)
    at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:43)
    at io.netty.channel.local.LocalChannel$6.run(LocalChannel.java:299)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    at java.lang.Thread.run(Thread.java:750)

after that, i rejoined the world, which worked, but my playerdata was cleared (reset to nothing)

note that earlier, i had been kicked to the server screen from a network error by storage drawers. after that, i rejoined the world, played as normal for a while, and quit and suspended the process so i didnt have to restart it.

tested in a modified version of regrowth (with performance mods: falsetweaks, falsepatternlib, unimixins, bugtorch, smoothfont, entity culling, leaf culling, fps reducer, coretweaks, and neodymium) fml-client-latest.log