livekit-cli icon indicating copy to clipboard operation
livekit-cli copied to clipboard

Nil pointer when benchmarking

Open aadam-nana opened this issue 8 months ago • 1 comments

When I setup one streamer and run this command to do benchmarking:

lk load-test --url wss://someurl.com --api-key devkey --api-secret secret --room poc-room --video-publishers 0 --video-resolution medium --num-per-second 20 --subscribers 1000

Note: there is 0 video publisher in command as I already setup it in another program.

My problem is this error appears intermittently in client:

caught panic in consumeTrack runtime error: invalid memory address or nil pointer dereference

And the server error log is:

2025-06-04T08:14:28.446Z	ERROR	livekit	service/signal.go:183	could not handle new participant	{"room": "poc-room", "participant": "mdvzl_1031", "connID": "CO_HPY3gXE6vTF8", "error": "could not restart participant", "errorVerbose": "could not restart participant\ngithub.com/livekit/livekit-server/pkg/service.(*RoomManager).StartSession\n\t/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/service/roommanager.go:374\ngithub.com/livekit/livekit-server/pkg/service.(*defaultSessionHandler).HandleSession\n\t/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/service/signal.go:114\ngithub.com/livekit/livekit-server/pkg/service.(*signalService).RelaySignal\n\t/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/service/signal.go:180\ngithub.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleOpenRequest\n\t/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/server/stream.go:202\ngithub.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleRequest.func1\n\t/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/server/stream.go:141\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.23.6/x64/src/runtime/asm_amd64.s:1700"}
github.com/livekit/livekit-server/pkg/service.(*signalService).RelaySignal
	/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/service/signal.go:183
github.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleOpenRequest
	/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/server/stream.go:202
github.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleRequest.func1
	/home/runner/go/pkg/mod/github.com/livekit/[email protected]/pkg/server/stream.go:141

Could you help me this? I am using lk-cli version 2.4.10

aadam-nana avatar Jun 04 '25 08:06 aadam-nana

please attach the full logs. there isn't sufficient context to understand what's going on

davidzhao avatar Aug 18 '25 06:08 davidzhao