Skip to content

Nil pointer when benchmarking #591

@aadam-nana

Description

@aadam-nana

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions