Resource Backpack's

Resource Backpack's

74.3k Downloads

[Fabric] Network error / weird Container behaviour

Snaterman opened this issue ยท 10 comments

commented

Mod loader

Fabric

Mod version

Fabric 0.16.9

Minecraft version

1.21.4

Issue description

Hi,

I am running a local home server, with other mods. and a client on the same PC (fabric, through curseforge) when I installed this mod, I experienced the following problem:
I crafted a leather backpack, placed it down and rightclicked om it. I saw my inventory, with above it the backpack, but the backpack was not sized 1x9, but more something like 13x6 or 15x9 (not exactly sure). From space 10 onward, I saw my own inventory, I could move that around, seeming like I could dupe, but the items weren't staying. I then proceeded to 'give' myself a diamond backpack to see what it would do, but when, after placing it, tried to open it, I got a 'Network error'.

In a single player world with the same client: no issues.

I created a fresh instance with just the 3 resource mods and fabric, in single player everything worked.
Then I copied my server and ran it with just fabric and the 3 resource mods, and then it also worked.

So the problem seems to be in the co-operations with another mod. when in client/server mode.
And it seems to be the determination of the size, I'd say the error is just another symptom of the problem that the size was not correctly determined.
But hey, what do I know... I don't program with minecraft or mods...

See what you do with the info. Hope this helps you.
And Thanks for sharing your work!
If you need more info or need me to do some testing just let me know.

-- Snaterman.

Server mods:
29-12-2024 18:23 589.737 architectury-15.0.1-fabric.jar
29-12-2024 18:12 418.122 balm-fabric-1.21.4-21.4.5.jar
29-12-2024 18:23 1.152.857 cloth-config-17.0.144-fabric.jar
15-12-2024 12:08 927.994 collective-1.21.4-7.89.jar
29-12-2024 18:15 250.198 craftingtweaks-fabric-1.21.4-21.4.2.jar
03-01-2025 18:21 80.793 cwb-fabric-3.0.0+mc1.21.3.jar
03-01-2025 18:38 91.500 easy_homes-21.4.0-fabric.jar
29-12-2024 18:10 2.087.179 fabric-api-0.113.0+1.21.4.jar
29-12-2024 22:11 7.089.756 fabric-language-kotlin-1.13.0+kotlin.2.1.0.jar
15-12-2024 12:08 1.730.588 graves-3.6.0+1.21.4.jar
15-12-2024 12:08 141.358 inventoryessentials-fabric-1.21.4-21.4.1.jar
15-12-2024 12:08 24.977 inventorytotem-1.21.4-3.3.jar
03-01-2025 18:20 264.746 resourceconfigapi-fabric-1.21.4-3.4.3.jar
03-01-2025 18:20 194.029 resourcelibrary-fabric-1.21.4-2.4.6.jar
29-12-2024 18:23 2.493.638 RoughlyEnoughItems-18.0.796-fabric.jar
03-01-2025 18:14 37.902 simple_ender_backpack-1.0.0+1.21.4.jar
15-12-2024 12:07 860.859 waystones-fabric-1.21.4-21.4.1.jar
29-12-2024 18:22 6.622.059 worldedit-mod-7.3.10-beta-01.jar
29-12-2024 22:05 12.147.645 x-backup-0.3.7+1.21.4.jar

Client mods:
17-12-2024 15:06 153.004 advanced-xray-fabric-21.4.0.jar
29-12-2024 18:23 52.331 AmbientEnvironment-fabric-1.21.4-21.0.0.1.jar
29-12-2024 18:13 83.888.885 AmbientSounds_FABRIC_v6.1.3_mc1.21.4.jar
15-12-2024 12:07 1.095.505 appleskin-fabric-mc1.21.3-3.0.6.jar
29-12-2024 18:23 589.737 architectury-15.0.1-fabric.jar
29-12-2024 18:12 418.122 balm-fabric-1.21.4-21.4.5.jar
29-12-2024 18:21 867.333 bobby-5.2.6+mc1.21.4.jar
29-12-2024 18:15 139.419 clienttweaks-fabric-1.21.4-21.4.1.jar
29-12-2024 18:23 1.152.857 cloth-config-17.0.144-fabric.jar
15-12-2024 12:08 927.994 collective-1.21.4-7.89.jar
02-07-2024 12:36 126.513 cool_elytra-1.5.1-mc1.21.jar
29-12-2024 18:15 250.198 craftingtweaks-fabric-1.21.4-21.4.2.jar
29-12-2024 18:26 1.181.335 CreativeCore_FABRIC_v2.12.22_mc1.21.4.jar
03-01-2025 18:21 80.793 cwb-fabric-3.0.0+mc1.21.3.jar
03-01-2025 18:38 91.500 easy_homes-21.4.0-fabric.jar
31-12-2024 00:58 2.090.217 fabric-api-0.114.0+1.21.4.jar
29-12-2024 18:22 1.148.478 freecam-fabric-1.3.2+mc1.21.4.jar
29-12-2024 18:20 40.059 fullbrightnesstoggle-1.21.4-4.2.jar
15-12-2024 12:08 1.730.588 graves-3.6.0+1.21.4.jar
15-12-2024 12:08 141.358 inventoryessentials-fabric-1.21.4-21.4.1.jar
15-12-2024 12:08 226.612 inventoryhud.fabric.1.21.4-3.4.27.jar
15-12-2024 12:08 24.977 inventorytotem-1.21.4-3.3.jar
29-12-2024 18:12 782.162 Jade-1.21.4-Fabric-17.1.2.jar
15-12-2024 12:07 3.410.428 journeymap-fabric-1.21.4-6.0.0-beta.32.jar
03-01-2025 18:32 739.550 lithium-fabric-0.14.3+mc1.21.4.jar
29-12-2024 18:19 432.122 lootbeams-3.2.1-mc1.21.4.jar
29-12-2024 19:17 992.025 modmenu-13.0.0-beta.1.jar
15-12-2024 12:07 76.225 MouseTweaks-fabric-mc1.21.3-2.27.jar
29-12-2024 19:17 237.295 placeholder-api-2.5.1+1.21.3.jar
29-12-2024 18:22 1.848.374 polymer-bundled-0.11.3+1.21.4.jar
03-01-2025 18:20 264.746 resourceconfigapi-fabric-1.21.4-3.4.3.jar
03-01-2025 18:20 194.029 resourcelibrary-fabric-1.21.4-2.4.6.jar
03-01-2025 18:20 172.697 resource_backpacks-fabric-1.21.4-0.11.0-BETA.jar
29-12-2024 18:23 2.493.638 RoughlyEnoughItems-18.0.796-fabric.jar
29-12-2024 18:13 79.574 Searchables-fabric-1.21.4-1.0.2.jar
03-01-2025 18:14 37.902 simple_ender_backpack-1.0.0+1.21.4.jar
29-12-2024 18:13 1.286.946 sodium-fabric-0.6.6+mc1.21.4.jar
29-12-2024 18:13 196.373 sound-physics-remastered-fabric-1.21.4-1.4.8.jar
15-12-2024 12:07 860.859 waystones-fabric-1.21.4-21.4.1.jar
29-12-2024 18:22 6.622.059 worldedit-mod-7.3.10-beta-01.jar

Exception from diamond backpack (from client, server keeps going)
[20:54:20] [Render thread/ERROR]:Failed to handle packet net.minecraft.class_2649@17aac2a3, disconnectingjava.lang.IndexOutOfBoundsException: Index 84 out of bounds for length 84
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source) ~[?:?]
at java.base/java.util.Objects.checkIndex(Unknown Source) ~[?:?]
at java.base/java.util.ArrayList.get(Unknown Source) ~[?:?]
at knot/net.minecraft.class_2371.get(class_2371.java:47) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_1703.method_7611(class_1703.java:313) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_1703.method_7610(class_1703.java:642) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_634.method_11153(class_634.java:1355) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2649.method_11439(class_2649.java:51) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2649.method_65081(class_2649.java:12) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_2600.method_11072(class_2600.java:27) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_18859(class_1255.java:164) [client-intermediary.jar:?]
at knot/net.minecraft.class_4093.method_18859(class_4093.java:23) [client-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_16075(class_1255.java:138) [client-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_5383(class_1255.java:123) [client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_1523(class_310.java:1296) [client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_1514(class_310.java:922) [client-intermediary.jar:?]
at knot/net.minecraft.client.main.Main.main(Main.java:267) [client-intermediary.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.9.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.9.jar:?]

If Bug

  • I have confirmed this bug is reproducible on a minimal setup, not a modpack with many other mods.

Provide the latest.log file

No response

commented

javaw_2U5VBp7Ytm
javaw_H01fUxttwB

commented

from that Server mod list i can say you didn't installed Resource Backpacks on your server. or did you forgot to mention it?

But i would assume it would likely end up like the issues #27 and #29 where they discribed similar issue that i can't reproduce even with the same mods installed.

But i will have a look tomorrow

commented

Oh, yeah I'm sorry,
I outputted that list when when I had forgotten that file indeed. But that prevented me from crafting the item, so I added the file to solve that problem and the item recipe was present after that. The problems I mentioned are after that, were with the mod present.
Here's a fresh printout:
Directory of D:\Games\Minecraft\Servers\1.21\Modded.1.21\Julianawachters_21_4_Fabric\mods

03-01-2025 20:53

.
03-01-2025 20:53 ..
29-12-2024 18:23 589.737 architectury-15.0.1-fabric.jar
29-12-2024 18:12 418.122 balm-fabric-1.21.4-21.4.5.jar
29-12-2024 18:23 1.152.857 cloth-config-17.0.144-fabric.jar
15-12-2024 12:08 927.994 collective-1.21.4-7.89.jar
29-12-2024 18:15 250.198 craftingtweaks-fabric-1.21.4-21.4.2.jar
03-01-2025 18:21 80.793 cwb-fabric-3.0.0+mc1.21.3.jar
03-01-2025 18:38 91.500 easy_homes-21.4.0-fabric.jar
29-12-2024 18:10 2.087.179 fabric-api-0.113.0+1.21.4.jar
29-12-2024 22:11 7.089.756 fabric-language-kotlin-1.13.0+kotlin.2.1.0.jar
15-12-2024 12:08 1.730.588 graves-3.6.0+1.21.4.jar
03-01-2025 18:30 537.027 inventory-expansion-1.0.0.jar.DISABLED
15-12-2024 12:08 141.358 inventoryessentials-fabric-1.21.4-21.4.1.jar
15-12-2024 12:08 24.977 inventorytotem-1.21.4-3.3.jar
03-01-2025 18:20 264.746 resourceconfigapi-fabric-1.21.4-3.4.3.jar
03-01-2025 18:20 194.029 resourcelibrary-fabric-1.21.4-2.4.6.jar
03-01-2025 18:20 172.697 resource_backpacks-fabric-1.21.4-0.11.0-BETA.jar
29-12-2024 18:23 2.493.638 RoughlyEnoughItems-18.0.796-fabric.jar
03-01-2025 18:14 37.902 simple_ender_backpack-1.0.0+1.21.4.jar
15-12-2024 12:07 860.859 waystones-fabric-1.21.4-21.4.1.jar
29-12-2024 18:22 6.622.059 worldedit-mod-7.3.10-beta-01.jar
29-12-2024 22:05 12.147.645 x-backup-0.3.7+1.21.4.jar
24 File(s) 38.547.133 bytes
2 Dir(s) 97.921.576.960 bytes free

commented

https://mclo.gs/iUSZmI6
1 file, first client log, after that server log.

I saw a lot of warmings on the server, all during startup. but the moment the error occurs, nothing is logged on the server side.

but the warnings did remind me that I also have some datapacks installed. (though when I tested with a copy with all other mods removed, the data packs were still installed and then there was no problems) everything/most is from VanillaTweaks

for completeness the datapacks folder:
17-07-2024 23:38 27.092 armored elytra v2.0.1 (MC 1.21-1.21.1).zip
10-09-2024 10:41 383.298 aws_dungeon_1.19.3.zip
17-07-2024 23:38 18.672 back v1.3.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 9.136 cauldron concrete v3.0.1 (MC 1.21-1.21.1).zip
17-07-2024 23:38 6.110 cauldron mud v1.0.1 (MC 1.21-1.21.1).zip
17-07-2024 23:38 5.012 double shulker shells v1.3.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 102.998 durability ping v1.1.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 4.739 ender chest always drops v1.0.0 (MC 1.21-1.21.1).zip
17-07-2024 23:38 21.568 fast leaf decay v2.0.11 (MC 1.21-1.21.1).zip
17-07-2024 23:38 70.034 graves v3.0.5 (MC 1.21-1.21.1).zip.DISABLED
17-07-2024 23:38 23.693 homes v1.5.10 (MC 1.21-1.21.1).zip
17-07-2024 23:38 6.510 husks drop sand v1.0.1 (MC 1.21-1.21.1).zip
17-07-2024 23:38 202.055 mini blocks v1.0.0 (MC 1.21-1.21.1).zip
17-07-2024 23:38 6.211 more effective tools v1.0.2 (MC 1.21-1.21.1).zip
17-07-2024 23:38 160.883 more mob heads v2.14.0 (MC 1.21-1.21.1).zip
17-07-2024 23:38 6.990 name colors v1.0.6 (MC 1.21-1.21.1).zip
17-07-2024 23:38 5.923 player head drops v1.1.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 6.414 silk touch budding amethyst v1.0.0 (MC 1.21-1.21.1).zip
17-07-2024 23:38 10.192 spawn v2.3.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 30.976 spawning spheres v1.1.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 8.545 storm channeling v1.0.0 (MC 1.21-1.21.1).zip
17-07-2024 23:38 11.675 tpa v2.3.8 (MC 1.21-1.21.1).zip
10-09-2024 10:40 118.466 upgradable_backpack-v9.1.zip
10-09-2024 10:35 72.037 VanillaTweaks_c823603_MC1.21.0.zip
17-07-2024 23:38 8.916 villager workstation highlights v1.1.8 (MC 1.21-1.21.1).zip
17-07-2024 23:38 6.470 wandering trader announcements v1.0.1 (MC 1.21-1.21.1).zip
17-07-2024 23:38 33.584 wandering trades hermit edition v1.9.3 (MC 1.21-1.21.1).zip
17-07-2024 23:38 7.122 xp bottling v1.1.9 (MC 1.21-1.21.1).zip

and inside that the 'VanillaTweaks_c823603_MC1.21.0.zip':
Vanilla Tweaks Crafting Tweaks
Version: 1.21
Packs:
craftable notch apples
craftable name tags
craftable bundles leather
more bark
more bricks
coal to black dye
universal dyeing
straight to shapeless
blackstone cobblestone

commented

ok i eventually found th issue that causes the strange behaviour, when i fix that this can also fix the network issue

commented

ok as fix, until the next update, for the backpack menu issue is to set the client config the same as the server config, the server config gets not correctly applied on client side, so it creates a bigger inventory then the server can provide

commented

Hey would it be possible that you post your last client and Server logs on https://mclo.gs/ please then I can have a better lock, what might happen on your end.

commented

Issue is fixed with the new 0.11.5-BETA version, server configs now get synced and applied correctly on client

commented

Great, that was quick. Only: for me it did not work.
I re-activated your mod in curseforge, and it told me an update was available. so I updated. (only 1 of the 3 resource_... files)
I then copied the new dll to my server folder. -> resource_backpacks-fabric-1.21.4-0.11.5-BETA.jar
I started the server and client, did same test as earlier, but alas: same problem.
Then I tried your workaround in this way:
I opened the backpacks.json in de '[server dir]\config\resource_backpacks\common' map in the server folder, (I set all columns to 9), did crtl-a, ctrl-c to copy it all.
then opened the same file in my client ([cursforge instance dir]config\resource_backpacks\common), and (ctrl-a, ctrl-v, ctrl-s) pasted the contents over the existing contents and saved.
When I check in game in mod menu, I can see all columns set to 9, so the changes are seen in game)
but when connecting to the servre doing same test, still same issue.
I'm pretty sure both client and server backpacks.jon files contained 1x9 for the leather backpack all the time, I did not change anything in the configs)
Maybe the problem persists in my set-up because it was initialized wrong? Do you recommend anything?
I'll try to check in again tomorrow to see if I can do/provide/test something if needed.

--Snaterman

commented

can you upload your logs again to https://mclo.gs/ please, but this time seperately please