Simple Voice Chat

Simple Voice Chat

31M Downloads

Client Crashes When Other Player Talks

IAmSneak opened this issue · 36 comments

commented

Client crashes when player around them starts talking with the player that is muted or not talking. This doesn't happen every time. According to the other players on my server, it usually happens after talking for a few mins and its in pauses.

Steps to reproduce the issue

  1. Talk to someone to a little while while they have the mod active (either muted, not talking, or talking).
  2. Have a brief break from talking to them (15 seconds maybe).
  3. Sometimes crashes (inconsistently)

Expected behavior
Talks without crashing

Log files
2021-04-22-7.log.gz

Versions

  • 1.16.4
  • Fabric loader 0.11.3
  • Fabric Api 0.32.5
  • Voicechat 1.1.5

Other mods
Many mods are being used but here are ones that have a chance of causing the issue:
carpet mod
krypton
lithium
sodium
starlight

**Config**

port=24454
bind_address=0.0.0.0
sample_rate=16000
voice_fade_distance=24.0
voice_distance=64.0
codec=VOIP
keep_alive=1000
mtu_size=900

commented

@henkelmax
Okay, sorry didn't got back to you earlier. We've been playing with the version 1.3.10 since it was released, and didn't have any crashes! Thanks again for fixing an issue

commented

No problem :)

commented

Does this also happen without any other mods?
There are a lot of OpenGL errors in your logs. I'm assuming, that they are not caused by the voice chat.
Also please update to the latest mod version.

commented

Please try if it happens without these mods.

commented

Having the same issue as a random crash. Also running Carpet, Krypton, and Lithium, but not Sodium/starlight.
Crash seems to be relating to this particular part of the log:
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: java.lang.Error: Invalid memory access
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at com.sun.jna.Native.invokeInt(Native Method)
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at com.sun.jna.Function.invoke(Function.java:426)
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at com.sun.jna.Function.invoke(Function.java:361)
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at com.sun.jna.Library$Handler.invoke(Library.java:265)
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at com.sun.proxy.$Proxy88.opus_decode(Unknown Source)
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at de.maxhenkel.voicechat.voice.common.OpusDecoder.decode(OpusDecoder.java:36)
[04:09:40] [AudioChannelThread-ba361218-7dd8-4bc0-9bfb-576c6aece479/INFO]: [STDERR]: at de.maxhenkel.voicechat.voice.client.AudioChannel.run(AudioChannel.java:142)

commented

It is quite hard to consistently reproduce. I am able to confirm it can crash with just carpet, lithium, and krypton on the server.

commented

Can you narrow down the mod to a single mod?

commented

Krypton's optimisations focus on the net stack. It might be worth checking to see if any of the optimisations krypton makes would effect the voice chat mod?

commented

It should not affect it, since the voicechat mod does not use minecrafts networking.

commented

Actually, come to think of it, the crash is a clientside crash, so it would be weird if these serverside mods are causing it, since I don't have them installed clientside...

commented

IAmSneak, What clientside mods do you have installed?
Maybe we can compare and look at the similarities?

commented

@IAmSneak @Alkiasan Please try the latest version of the mod. I fixed another bug and it might be related to this.

commented

Installed the latest version on server and client, sadly, issue still persists.

commented

Alright, thank you for testing it.
Can you send me the logs of the crash with the latest version?
It would also be great to narrow down the problem to a single mod.

commented

no error this time. Final line was
[03:20:49] [VoiceChatClientThread/INFO]: Initializing Opus decoder with sample rate 48000 Hz, frame size 1920 bytes and max payload size 1024 bytes
Log cuts off there.
No crash log generated.

commented

Great, does this mean it works now?

commented
commented

From the logs folder.
A crash log isn't generated.
This isn't edited. Scroll down and you'll see it just stops.

commented

Yes, but I can assume what causes it, with the last log entry.

What OS are you using?

commented
commented

If it crashes, it has to be in the logs, please send me the logs.

commented

It would be nice if you could narrow down the mods you are using. If I know which mod is causing it I can reproduce it.

commented

Windows 10

commented

It's already been narrowed down to three by IAmSneak, and judging from what you said, it can't be Krypton, So it's either Lithium or Carpet causing it.

commented

Ok, then just test it which mod exactly causes it.

commented

Any update on this?

commented

Can confirm the issue, experiencing random crashes when talking to another person in a group.
Experienced a crash just few minutes ago, latest.log sadly doesn't have information about that crash.
There are few last lines:

[20:18:06] [VoiceChatClientThread/INFO]: Initializing Opus decoder with sample rate 48000 Hz, frame size 1920 bytes and max payload size 1024 bytes
[20:20:03] [main/INFO]: [CHAT] [Debug]: Hitboxes: hidden
[20:24:00] [main/WARN]: Block entity invalid: minecraft:chest @ class_2338{x=712, y=137, z=-1199}
[20:24:08] [main/WARN]: Block entity invalid: minecraft:chest @ class_2338{x=714, y=137, z=-1201}
[20:26:53] [main/WARN]: Block entity invalid: minecraft:chest @ class_2338{x=706, y=93, z=-1204}
[20:26:58] [main/WARN]: Block entity invalid: minecraft:ender_chest @ class_2338{x=706, y=93, z=-1205}
[20:29:40] [VoiceChatClientThread/INFO]: Initializing Opus decoder with sample rate 48000 Hz, frame size 1920 bytes and max payload size 1024 bytes
[20:30:01] [main/INFO]: [CHAT] [Server: Saved the game]
[20:30:38] [main/INFO]: [CHAT] [Debug]: Hitboxes: shown

Crash happened at ~20:31

P. S. Game exited with code 0, so there's nothing in crash-reports either.

image

commented

Does this happen with the latest version of the mod?
Which modloader are you using?

commented

Does this happen with the latest version of the mod?
Which modloader are you using?

Version 1.3.7 both on the server and client, Fabric.

commented

Do you use any of the aforementioned mods?

It will be hard to reproduce this issue, since the crash happens randomly and produces no logs...
Please let me know if you find out when exactly the crash happens.

commented

Do you use any of the aforementioned mods?

It will be hard to reproduce this issue, since the crash happens randomly and produces no logs...

Server uses carpet, lithium, hydrogen.

On client from mentioned mods are sodium and carpet as well.

If there's a way to talk to you privately, like in Discord dms, I could give you full list of mods both on server and client.

Please let me know if you find out when exactly the crash happens.

They kinda happen randomly, but I only noticed them happening in groups. My friend got crashes too, he's got sodium, but doesn't have carpet on his client.

commented

Yeah, it's fine, a friend of me got the crashes as well on Forge with completely different mods...

commented

It should be fixed with the latest version (1.3.10 with Fabric and 1.3.8 with Forge)

commented

@henkelmax thank you very much for fixing this bug this fast! We really like this mod with my friends and appreciate how fast you resolved the issue, even though it wasn't an obvious one!

commented

@henkelmax thank you very much for fixing this bug this fast! We really like this mod with my friends and appreciate how fast you resolved the issue, even though it wasn't an obvious one!

No problem :)
Let me know if it works for you.

commented

We will give it a test today!