MehVahdJukaar / Supplementaries

Other
137 stars 96 forks source link

[🐞]: Can't find id for 'net.minecraft.sounds.SoundEvent@4adfb3d9' in map Registry (Server kicks client) #993

Closed ItsYuriil closed 6 months ago

ItsYuriil commented 6 months ago

Before Continuing:

Version

1.19.2-FORGE

Supplementaries Version

supplementaries-1.19.2-2.4.20

Moonlight Lib Version

moonlight-1.19.2-2.3.6-forge

Issue Detail

Well, I don't know what call for that event sound but it kicks everyone in the server that calls to that. I've been trying some mods in and out from the server and the result doesnt change much.

Mods that I know change sounds that are on my modpack: -Eerie Music: https://www.curseforge.com/minecraft/mc-mods/eerie-music-forge-fabric -Sound Physics Remastered: https://www.curseforge.com/minecraft/mc-mods/sound-physics-remastered

The sound ID changes everytime I see the error pop up on the server log so I'm guessing its a dynamic event, but its always packet 96.

Anyways, I'm pretty sad to disable this mod from the modpack as I like it a lot, but until this is fixed I literally cant run the modpack without people randomly disconecting from the server.

Here is the server log from the error + the client error message:

[07:13:03] [Netty Epoll Server IO #1/ERROR] [minecraft/PacketEncoder]: Error receiving packet 96
java.lang.IllegalArgumentException: Can't find id for 'net.minecraft.sounds.SoundEvent@4adfb3d9' in map Registry[ResourceKey[minecraft:root / minecraft:sound_event] (Experimental)]
    at net.minecraft.network.FriendlyByteBuf.m_236818_(FriendlyByteBuf.java:125) ~[server-1.19.2-20220805.130853-srg.jar%23325!/:?] {re:mixin,re:classloading,pl:mixin:APP:supplementaries.mixins.json:FriendlyByteBufMixin,pl:mixin:A}
    at net.minecraft.network.protocol.game.ClientboundSoundPacket.m_5779_(ClientboundSoundPacket.java:47) ~[server-1.19.2-20220805.130853-srg.jar%23325!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.network.PacketEncoder.encode(PacketEncoder.java:45) ~[server-1.19.2-20220805.130853-srg.jar%23325!/:?] {re:classloading}
    at net.minecraft.network.PacketEncoder.encode(PacketEncoder.java:14) ~[server-1.19.2-20220805.130853-srg.jar%23325!/:?] {re:classloading}
    at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[netty-codec-4.1.77.Final.jar%2380!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:110) ~[netty-codec-4.1.77.Final.jar%2380!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:790) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:758) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:808) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}   
    at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[netty-transport-4.1.77.Final.jar%2384!/:4.1.77.Final] {}
    at net.minecraft.network.Connection.m_243087_(Connection.java:209) ~[server-1.19.2-20220805.130853-srg.jar%23325!/:?] {re:mixin,re:classloading}
    at net.minecraft.network.Connection.lambda$sendPacket$8(Connection.java:198) ~[server-1.19.2-20220805.130853-srg.jar%23325!/:?] {re:mixin,re:classloading}
    at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) [netty-common-4.1.77.Final.jar%2381!/:4.1.77.Final] {}
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) [netty-common-4.1.77.Final.jar%2381!/:4.1.77.Final] {}
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) [netty-common-4.1.77.Final.jar%2381!/:4.1.77.Final] {}
    at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:391) [netty-transport-classes-epoll-4.1.77.Final.jar%2385!/:4.1.77.Final] {}
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) [netty-common-4.1.77.Final.jar%2381!/:4.1.77.Final] {}
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.77.Final.jar%2381!/:4.1.77.Final] {}
    at java.lang.Thread.run(Thread.java:840) [?:?] {re:mixin}

[07:13:03] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: ItssYuri lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.IllegalArgumentException: Can't find id for 'net.minecraft.sounds.SoundEvent@4adfb3d9' in map Registry[ResourceKey[minecraft:root / minecraft:sound_event] (Experimental)]

MehVahdJukaar commented 6 months ago

Check server has same mods as clients. Also are you sure this is a supplementaries issue?

ItsYuriil commented 6 months ago

Check server has same mods as clients. Also are you sure this is a supplementaries issue?

100%, Its the only mod giving me any kind of conflict that makes the client getting kicked, and well, Eerie Music is clientside and I tried both with both Eerie Music and Sound Physics Remastered disabled and the problem still persisted.

I ran the server without that mod and its not giving any errors like that anymore, so I'm pretty sure its something that has to be within this mod

MehVahdJukaar commented 6 months ago

And do you know which of you other mods, when disabled, makes this error go away?

ItsYuriil commented 6 months ago

Since I added Supplementaries fairly late, I have no idea, I'll try to locate what mods does it conflict with, but there are a lot of them who calls to soundevents (the modpack has over 120 mods).

But what mod could it be conflicting with? Is that call common? Do you know what call is supplementaries trying to get based on the error message? Maybe with that info I can filter out some mods there.

ItsYuriil commented 6 months ago

Do you know what call is supplementaries trying to get based on the error message? Maybe with that info I can filter out some mods there.

By this I mean if you know what the game is trying to do there, or what supplementaries is trying to achieve with the whole error message (I have no idea)

MehVahdJukaar commented 6 months ago

Very hard to tell but definitely some mod that has sounds. Do you have no fog? I heard some people having an issue with that

ItsYuriil commented 6 months ago

Nope, found the bug, it was another mod what ran made an invalid sound call, very weird cos the error redirected to the lines of supplementary functions working, my bad.

I'm closing this bug as is not related to this mod. Thanks for the support

valrimmer commented 4 months ago

So what even was the mod lol

Ymmit34 commented 3 months ago

What was the issue? I'm having the same error and would like to know how to proceed

EastRane commented 2 months ago

same problem