AE2 and Flux networks causing LAN players to disconnect
xun468 opened this issue · 16 comments
Describe the bug
This might sound a bit ludicrous, but if I have an AE2 ME drive powered by a flux point placed in my world and then open it to LAN, players cannot connect if they're logged out in the chunk with the drive or load the chunk if they approach it. I have a very simple setup with a flux point next to an energy acceptor and ME drive which is connected by fluix ME glass cables to a ME terminal. I am not sure which mod is causing this, I have also started an issue at the AE2 repository.
EDIT: Ok, it may not be due to flux networks. Powering the AE2 network with a Mekanism battery or TE sterling generator also causes crashes. I don't really know what it is now because a powered energy acceptor is now also crashing players trying to join. Apologies for the inconvenience, I am not sure what else I could test.
The error players receive when disconnecting is:
Internal Exception: Java.io.IOException: An existing connection was forcibly closed by the remote host.
and the one I have in my logs is
[01:12:39] [Netty Server IO #5/ERROR] [minecraft/NettyPacketEncoder]: Error encoding packet
io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1417) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1356) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.UnpooledHeapByteBuf.copy(UnpooledHeapByteBuf.java:538) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.copy(AbstractByteBuf.java:1170) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.PacketBuffer.copy(PacketBuffer.java:1009) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:packetsizelimits.PacketBufferMixin,pl:mixin:A}
at net.minecraft.network.play.server.SCustomPayloadPlayPacket.func_148840_b(SCustomPayloadPlayPacket.java:55) ~[?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:38) [?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:12) [?:?] {re:classloading}
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:816) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:723) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1071) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:300) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.NetworkManager.lambda$sendPacket$5(NetworkManager.java:196) [?:?] {re:mixin,re:classloading}
at net.minecraft.network.NetworkManager$$Lambda$25549/0x0000000000000000.run(Unknown Source) [?:?] {}
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at java.lang.Thread.run(Thread.java:826) [?:1.8.0_302] {}
[01:12:39] [Netty Server IO #5/ERROR] [minecraft/NettyPacketEncoder]: Error encoding packet
io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1417) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1356) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.UnpooledHeapByteBuf.copy(UnpooledHeapByteBuf.java:538) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.copy(AbstractByteBuf.java:1170) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.PacketBuffer.copy(PacketBuffer.java:1009) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:packetsizelimits.PacketBufferMixin,pl:mixin:A}
at net.minecraft.network.play.server.SCustomPayloadPlayPacket.func_148840_b(SCustomPayloadPlayPacket.java:55) ~[?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:38) [?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:12) [?:?] {re:classloading}
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:816) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:723) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1071) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:300) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.NetworkManager.lambda$sendPacket$5(NetworkManager.java:196) [?:?] {re:mixin,re:classloading}
at net.minecraft.network.NetworkManager$$Lambda$25549/0x0000000000000000.run(Unknown Source) [?:?] {}
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at java.lang.Thread.run(Thread.java:826) [?:1.8.0_302] {}
[01:12:39] [Netty Server IO #5/ERROR] [minecraft/NettyPacketEncoder]: Error encoding packet
io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1417) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1356) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.UnpooledHeapByteBuf.copy(UnpooledHeapByteBuf.java:538) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.copy(AbstractByteBuf.java:1170) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.PacketBuffer.copy(PacketBuffer.java:1009) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:packetsizelimits.PacketBufferMixin,pl:mixin:A}
at net.minecraft.network.play.server.SCustomPayloadPlayPacket.func_148840_b(SCustomPayloadPlayPacket.java:55) ~[?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:38) [?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:12) [?:?] {re:classloading}
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:816) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:723) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1071) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:300) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.NetworkManager.lambda$sendPacket$5(NetworkManager.java:196) [?:?] {re:mixin,re:classloading}
at net.minecraft.network.NetworkManager$$Lambda$25549/0x0000000000000000.run(Unknown Source) [?:?] {}
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at java.lang.Thread.run(Thread.java:826) [?:1.8.0_302] {}
[01:12:39] [Netty Server IO #5/ERROR] [minecraft/NettyPacketEncoder]: Error encoding packet
io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1417) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1356) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.UnpooledHeapByteBuf.copy(UnpooledHeapByteBuf.java:538) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.buffer.AbstractByteBuf.copy(AbstractByteBuf.java:1170) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.PacketBuffer.copy(PacketBuffer.java:1009) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:packetsizelimits.PacketBufferMixin,pl:mixin:A}
at net.minecraft.network.play.server.SCustomPayloadPlayPacket.func_148840_b(SCustomPayloadPlayPacket.java:55) ~[?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:38) [?:?] {re:classloading}
at net.minecraft.network.NettyPacketEncoder.encode(NettyPacketEncoder.java:12) [?:?] {re:classloading}
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:816) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:723) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1071) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:300) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at net.minecraft.network.NetworkManager.lambda$sendPacket$5(NetworkManager.java:196) [?:?] {re:mixin,re:classloading}
at net.minecraft.network.NetworkManager$$Lambda$25549/0x0000000000000000.run(Unknown Source) [?:?] {}
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-all-4.1.25.Final.jar:4.1.25.Final] {}
at java.lang.Thread.run(Thread.java:826) [?:1.8.0_302] {}
[01:12:39] [Server thread/INFO] [minecraft/ServerPlayNetHandler]: Eitaas lost connection: Internal Exception: io.netty.handler.codec.EncoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0
To Reproduce
Set up a simple network with a flux point, ME drive, energy acceptor, and ME terminal. LAN players disconnect when approaching or loading this setup but do not if the drive is placed while they're connected. When the ME drive is removed, LAN players do not disconnect. When the ME drive is powered by an alternative source, LAN players do not disconnect.
Environment
Minecraft 1.16.5
AppliedEnergistics2 8.4.1
FluxNetworks 1.16.5-6.1.7.12
Forge 36.2.0
Can confirm that this worked for me on ocean block ftb lan game. he removed the flux network blocks and it let me back in. Not sure how to get around it.
Can confirm that this worked for me on ocean block ftb lan game. he removed the flux network blocks and it let me back in. Not sure how to get around it.
Do you have kubejs or architectury installed?
Yes
Can confirm that this worked for me on ocean block ftb lan game. he removed the flux network blocks and it let me back in. Not sure how to get around it.
Do you have kubejs or architectury installed?
I can't reproduce it in my environment.
forge-1.16.5-36.2.0
appliedenergistics2-8.4.7
architectury-1.30.54
FluxNetworks-1.16.5-6.2.1.14
jei-1.16.5-7.7.1.150
kubejs-forge-1605.3.19-build.299
rhino-forge-1605.1.5-build.75
Description
We had the same error on our side and I waited until I can confirm it. We had a few users running LAN servers or using MineTogether Connect to play with their friends, and Flux Networks is indeed causing error on world join/when a joining player triggers load of chunks containing Flux Network blocks (can happen after joining in-game initially it seems, e.g. when a player cross dimension teleports, "joining" the world).
If the hosting player removes either the FluxNetworks mod or changes all Flux Networks blocks with alternatives, removing them from the world, the LAN server recovers and allows players to join again.
See the original issue on FTB Modpack Issues: FTBTeam/FTB-Modpack-Issues#247
Versions
Modpack: FTB OceanBlock 1.11.0
Minecraft: 1.16.5
Forge: 36.2.20
FluxNetworks: FluxNetworks-1.16.5-6.1.7.12.jar
Steps to reproduce
- Make a SP world. Place down a bunch of Flux Network blocks, including Flux Plugs/Points, a Controller etc and start transferring energy from one place to another e.g. from some creative RF cell to an energy trash can.
- Ask a friend to join over LAN or through MineTogether Connect. They need to be joining inside those chunks containing Flux Network blocks, so perhaps have your setup on world spawn for example.
- They can't join at all.
Logs
First case we had:
Host client: https://paste.feed-the-beast.com/view/853d416f
Joining client: https://paste.feed-the-beast.com/view/1195a199
Second case we had at [26Dec2021 19:09:15.171]
:
Host client: https://paste.feed-the-beast.com/view/6c5ea462
Host logs always show this:
[Netty Server IO #10/ERROR] [net.minecraft.network.NettyPacketEncoder/]: Error encoding packet io.netty.util.IllegalReferenceCountException: refCnt: 0
I don't know the exact cause, but my perception of it is that a packet is exceeding a specific size. Read some stuff online stating it might be a "codec" issue with things related to "maxInMemorySize". That's all I know. Thanks in advance.
After a lot of testing, I don't think this is a bug on Flux Network. I'll release 6.2.0. If this issue still exists on the new version but does not exist after removing Flux Network, please comment here.
Alright thanks! I'll make sure to check out if the new version works, I'll ask some of our users to try it out as well. I'll reply here once it's been tested on our side!
Hey, I got some feedback from two of our users playing together. They play on LAN (only happens on LAN it seems) on OceanBlock, which currently has FluxNetworks-1.16.5-6.1.7.12.jar
. They updated both their mods to FluxNetworks-1.16.5-6.2.1.14.jar
(https://www.curseforge.com/minecraft/mc-mods/flux-networks/files/3603093), however, the problem persisted. Here are some of the communications with the person in the FTB Discord's support channel and them doing some tests as requested and giving feedback:
Feel free at anytime if you need to test more builds or need more information somehow, and thank you for both recent updates and your time.
I've asked the user, although as you see from the previous message they removed all Flux Networks things from the previous test, so they would have to rebuild their network again.
I understand they might not feel like replying and that's understandable, so if they don't I'll have to wait for another user willing to help or boot up a LAN server with a colleague later.
Edit: one of my coworkers will be free soon. Give me a few days to give it a thorough testing. Please let me know if there's specific stuff you'd like to have tested other than the above. Thanks!
I am the user in the screenshot above, chunk loading is disabled by default in the modpack and the general section of the config file looks like this
[general] #Allows flux tiles to work as chunk loaders enableChunkLoading = false #Enables redstone being compressed with the bedrock and obsidian to get flux enableFluxRecipe = false
I'm also having this error, and just updated to the latest version (using Ocean Block 1.11.0). My setup is having a flux point on the bottom of a draconic evolution grinder. In testing, seems to mostly happen with Drowned, though (I've had it happen with creepers, though).
I do wonder if a good work-around is to attach the flux point to an energy cube, or some energy storage block... Haven't had problems using this work-around setup yet.
I guess it's a bug of architectury, and kubejs
requires it.
I haven't reproduce it yet. For the code, there is no explicit release of the packet data to be sent, so it is impossible to cause EncoderException with refCnt reached 0 on the host client.
I may keep this issue open, but it is never a bug of Flux Networks. It only happens when some mods use Mixin to modify Forge or Minecraft code and break compatibility.
A note for developers:
Flux Networks uses Forge's EventNetworkChannel
rather than SimpleChannel
. As far as I know, only a few mods use it.
@shedaniel How do you think that happened?
We will need a more concrete test on this, to prove that architectury is causing this issue. Architectury does not modify networking, we only use an EventChannel.
(Ping on response)