Skip to content

[0.82-pre2] VoiceChat Record Crash #117

@zImSkillz

Description

@zImSkillz

In version 0.8-pre2 the HolyLib:PreProcessVoiceChat hook is causing crashes when talking, I was not able to add the debug log here cause for some reason my server does not generate a debug file although -debug is added to my start script.

In version 0.73 is it working fine except that the "ply" argument is a table without any reference to a player, so I had to get creative and use player.GetByID(voiceData:GetPlayerSlot() + 1)

I know that 0.82-pre2 is not stable but I wanted to report that cause I don't know if its a known bug or not

Code:

voiceTbl = {}
concommand.Add("record_me", function()
	hook.Remove("Think", "VoiceChat_Example") -- Doesn't like to play back while recording :^
	voiceTbl = {}
	voiceStartTick=engine.TickCount()
    print("start tick:", voiceStartTick)
	hook.Add("HolyLib:PreProcessVoiceChat", "VoiceChat_Example", function(ply, voiceData)
        print("Processing Voicedata...", ply, voiceData )
		if !voiceTbl[ply] then
			voiceTbl[ply] = {}
		end

		voiceTbl[ply][engine.TickCount() - voiceStartTick] = voiceData:CreateCopy()
		-- We save the tick delays since the voice data isn't sent every frame and has random delays.
	end)
end)

Console Log:

start tick:     7583
Segmentation fault (core dumped)
Add "-debug" to the /home/gmod/Steam/steamapps/common/GarrysModDS/srcds_run command line to generate a debug.log to help with solving this problem
Sat Nov 22 11:48:40 PM CET 2025: Server restart in 10 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebuggingThe issue is actively being debuggedbugSomething isn't workingcannot confirmThe issue couldn't be reproducedhelp wantedExtra attention is neededrelease build issueAn issue in one of the HolyLib release builds

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions