Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot measure distance between worlds #422

Open
foxya27 opened this issue Oct 12, 2024 · 2 comments
Open

Cannot measure distance between worlds #422

foxya27 opened this issue Oct 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@foxya27
Copy link

foxya27 commented Oct 12, 2024

[20:47:59 WARN]: [PlasmoVoice] Failed to fire an event:
[20:47:59 WARN]: java.lang.reflect.InvocationTargetException
[20:47:59 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
[20:47:59 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.event.VoiceEventBus.lambda$register$1(VoiceEventBus.java:104)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.event.VoiceEventBus.fire(VoiceEventBus.java:49)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.server.connection.PlayerChannelHandler.handle(PlayerChannelHandler.java:122)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.proto.packets.tcp.serverbound.PlayerAudioEndPacket.handle(PlayerAudioEndPacket.java:45)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.proto.packets.tcp.serverbound.PlayerAudioEndPacket.handle(PlayerAudioEndPacket.java:17)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.server.connection.PlayerChannelHandler.handlePacket(PlayerChannelHandler.java:48)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.server.connection.ServerChannelHandler.lambda$receive$1(ServerChannelHandler.java:50)
[20:47:59 WARN]: at java.base/java.util.Optional.ifPresent(Optional.java:178)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.server.connection.ServerChannelHandler.receive(ServerChannelHandler.java:41)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.slib.spigot.channel.SpigotChannelManager.onPluginMessageReceived(SpigotChannelManager.kt:55)
[20:47:59 WARN]: at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455)
[20:47:59 WARN]: at net.minecraft.server.network.ServerCommonPacketListenerImpl.handleCustomPayload(ServerCommonPacketListenerImpl.java:221)
[20:47:59 WARN]: at net.minecraft.network.protocol.common.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:26)
[20:47:59 WARN]: at net.minecraft.network.protocol.common.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:13)
[20:47:59 WARN]: at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56)
[20:47:59 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18)
[20:47:59 WARN]: at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
[20:47:59 WARN]: at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1581)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201)
[20:47:59 WARN]: at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1558)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1551)
[20:47:59 WARN]: at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1510)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1517)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1362)
[20:47:59 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333)
[20:47:59 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
[20:47:59 WARN]: Caused by: java.lang.IllegalArgumentException: Cannot measure distance between worlds
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.slib.api.server.position.ServerPos3d.distanceSquared(ServerPos3d.kt:50)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.server.audio.source.VoiceServerProximitySource.sendPacket(VoiceServerProximitySource.kt:85)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.api.server.audio.capture.ProximityServerActivationHelper.onActivationEnd(ProximityServerActivationHelper.kt:82)
[20:47:59 WARN]: at PlasmoVoice-Paper-2.1.0.jar//su.plo.voice.server.audio.capture.VoiceServerActivationManager.onPlayerSpeakEnd(VoiceServerActivationManager.kt:180)
[20:47:59 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[20:47:59 WARN]: ... 30 more

@Apehum Apehum transferred this issue from plasmoapp/pv-addon-groups Oct 12, 2024
@Apehum Apehum added the bug Something isn't working label Oct 12, 2024
@Apehum Apehum self-assigned this Oct 12, 2024
@Apehum Apehum changed the title Some error Cannot measure distance between worlds Oct 12, 2024
Apehum added a commit that referenced this issue Oct 12, 2024
@KirieshKaT

This comment was marked as off-topic.

@Apehum
Copy link
Member

Apehum commented Oct 16, 2024

The issue should be fixed by commit cfef1645b7247031e40f310540528ff9f18f87f2, but I'm not entirely sure. Since the issue is hard to reproduce, only testing will confirm if it's really fixed.
You can download the latest build with the fix here: https://github.com/plasmoapp/plasmo-voice/releases/tag/2.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants