[Bug]: Vanishing Chains/ Rope
Checklist
- [x] I am having issues with the Fabric version.
- [x] I am using the latest version of Connectible Chains.
- [x] I have looked for similar issues.
MC Version
1.21.4
What is the problem?
A bug happened!
Description:
Chains and ropes vanish, likely when chunks are unloaded and reloaded. I have never seen them disappear in real time. This occurs in both Singleplayer and Multiplayer. I have been using the ConnectibleChains mod since version 2.5.0, initially in my Singleplayer world. We're currently using the latest version (2.5.2) on our Fabric 1.21.4 server.
Reproduction Steps:
- Run a Fabric 1.21.4 server with the latest version of ConnectibleChains.
- Place a few chains and ropes.
- Unload the chunks (e.g., by moving far away) or restart the server.
- Reload the chunks by returning to the area or logging back in.
Expected Behavior:
- Chains and ropes should persist after chunks unload or after a server restart.
Actual Behavior:
- Chains and ropes vanish when the chunks unload and reload, or after a server restart.
Relevant log output
There are no errors related to this mod. However, I will share our mod-list to ensure no incompatibilities:
https://pastebin.com/jMXpJkGK
There are no errors shown in the logs when chunks load where chains/ rope have vanished. Nothing client-side either.
Similar to #68?
@legoatoom Yes, it seems so.
- Chains/ Rope seem to disappear when going from one chunk to the next (I used F3+G to confirm).
- I checked #68 and saw some people post errors from logs that might help. I'll be on the lookout for these.
Playing 1.21.1 using version [2.5.2] on a server with a friend, it happens all the time. https://imgur.com/a/xkX5TaE
EDIT: A few times I came back and the lead item was on the ground.
I have been trying to reproduce the error. But I have not been able to. I might release an update with more logging to be able to find what is the reason chains are destroyed. As items do appear on the ground.
Meanwhile, can you check. For the chains that are missing connections, are there perchance two knots on the same fence/wall?
@legoatoom
If I understand correctly. Yes, I have 2 chains connected on the same fence.
To my knowledge. It still only seems to happen for chains going from one chunk to the next, and It's a possibility that it occurs when there's 2+ chains/rope on the same fence too.
More logging may help, I'll be able to send some logs over the moment I catch a chain that's vanished. I'll send our server & client logs. If its some particular error when a chunk is loaded, then it should catch when that chunk is loaded(?).
Not two chains connected to one fence. The knot on a fence, there might be duplicate entity on it? Two on the same fence, you might see it if you break it as you have to attack it twice with a shear. I might send a jar this weekend with more logging if I have time.
@Calais0001 Thank you for your patience. Here is a custom version of the mod with more logging in a zip file. If you wish to see what is different in the code, see the commit reference below this comment. Hope it shows why it might be vanishing.
@Calais0001 I have not received any update, can I presume you are not having any issues?
Legoatoom, it still not working. Some ropes are still disappeared even I’m on 1.21.4
@Unfee1ng, to continue #92 here. I would like to know a bit more.
I don't really know when do they disappear
Yep, that is the problem I am having, I cannot seem to reproduce it. Is this a multi-player or single-player? How long does it usually take for chains to disappear?
@legoatoom Sorry, I was away from home this week. It's on my server, and to be honest I have no idea how often do they disappear... I don't go there often, but it's around my base so the chunks are loaded most of the time.
I have also seen ropes come off fences seemingly randomly and it seems they don't disappear, as I was just able to pick one up on my server, but another one must've despawned, because that was missing now. It seems to happen a lot though.
Ok so by accident I just saw that one of the ropes just started stuttering and vibrating, no idea why, nothing is happening. I kinda suspect this might be the reason that they sometimes fly off the fences? It is hard to see in a screenshot, but you can see that the connection is wrong, I think. It just "spasms out" and vibrates now
I have spend many hours trying to reproduce this bug. Spending more time on it does not seem productive. Without knowing why it happens, I cannot fix it. I understand this is annoying, I hoped I would be able to find a fix.
Until there are steps to reproduce it, I will not be spending more time on this. Will keep this issue open in the meantime.
If anyone would want to give it a shot, feel free to create a PR.
Yeah I've noticed the same issue in 1.20.1 (mod version: 1.1.0). I'll come back to my base and I found 14 chains missing, I replaced all of them, and when wondering around, I found a few of them broke, this time leaving behind a chain on the ground (so I presume the previous drops despawned)...
I honestly have no idea how to reproduce this, the only major visual changing mod I'm using is distant horizons 2 but I don't think that should be breaking it.
If I happen to be able to reproduce it, I'll comment back here, but no promises.