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

Panic: close of closed channel #1624

Closed
nicoverali opened this issue Mar 1, 2025 · 1 comment
Closed

Panic: close of closed channel #1624

nicoverali opened this issue Mar 1, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@nicoverali
Copy link

Hey! I've been running 1.9.7 until it suddenly crashed, I'm filling the issue just in case it helps. Delete this one if doesn't provide any value

last logs before crash
19:56:20.257 INF go2rtc platform=linux/arm64 revision=mod.334bbb3 version=1.9.7
19:56:20.257 INF config path=/go2rtc.yaml
19:56:20.259 INF [rtsp] listen addr=:8554
19:56:20.259 INF [api] listen addr=:1984
19:56:20.261 INF [webrtc] listen addr=:8555/tcp
19:56:58.737 INF go2rtc platform=linux/arm64 revision=mod.334bbb3 version=1.9.7
19:56:58.737 INF config path=/go2rtc.yaml
19:56:58.741 INF [rtsp] listen addr=:8554
19:56:58.741 INF [api] listen addr=0.0.0.0:1984
19:56:58.742 INF [webrtc] listen addr=:8555/tcp
20:02:59.332 INF go2rtc platform=linux/arm64 revision=mod.334bbb3 version=1.9.7
20:02:59.332 INF config path=/go2rtc.yaml
20:02:59.335 INF [rtsp] listen addr=:8554
20:02:59.335 INF [api] listen addr=0.0.0.0:1984
20:02:59.337 INF [webrtc] listen addr=:8555/tcp
15:58:19.450 INF go2rtc platform=linux/arm64 revision=mod.334bbb3 version=1.9.7
15:58:19.450 INF config path=/go2rtc.yaml
15:58:19.454 INF [api] listen addr=0.0.0.0:1984
15:58:19.456 INF [rtsp] listen addr=:8554
15:58:19.458 INF [webrtc] listen addr=:8555/tcp
00:13:00.799 INF go2rtc platform=linux/arm64 revision=mod.334bbb3 version=1.9.7
00:13:00.799 INF config path=/go2rtc.yaml
00:13:00.810 INF [rtsp] listen addr=:8554
00:13:00.810 INF [api] listen addr=0.0.0.0:1984
00:13:00.832 INF [webrtc] listen addr=:8555/tcp
14:06:18.678 INF go2rtc platform=linux/arm64 revision=mod.334bbb3 version=1.9.7
14:06:18.679 INF config path=/go2rtc.yaml
14:06:18.688 INF [rtsp] listen addr=:8554
14:06:18.688 INF [api] listen addr=0.0.0.0:1984
14:06:18.711 INF [webrtc] listen addr=:8555/tcp

panic: close of closed channel

goroutine 68065 [running]:

github.com/AlexxIT/go2rtc/pkg/core.(*Sender).Close(0x2?)

	github.com/AlexxIT/go2rtc/pkg/core/track.go:174 +0x94

github.com/AlexxIT/go2rtc/pkg/core.(*Connection).Stop(0x4000102c60)

	github.com/AlexxIT/go2rtc/pkg/core/connection.go:75 +0x88

github.com/AlexxIT/go2rtc/internal/streams.(*Stream).RemoveConsumer(0x400019f540, {0x931378, 0x4000102c60})

	github.com/AlexxIT/go2rtc/internal/streams/stream.go:64 +0x30

github.com/AlexxIT/go2rtc/internal/webrtc.asyncHandler.func1({0x70d960?, 0xdb5a50?})

	github.com/AlexxIT/go2rtc/internal/webrtc/webrtc.go:157 +0x9c

github.com/AlexxIT/go2rtc/pkg/core.(*Listener).Fire(...)

	github.com/AlexxIT/go2rtc/pkg/core/listener.go:16

github.com/AlexxIT/go2rtc/pkg/webrtc.NewConn.func5(0x6)

	github.com/AlexxIT/go2rtc/pkg/webrtc/conn.go:129 +0x68

created by github.com/pion/webrtc/v3.(*PeerConnection).onConnectionStateChange in goroutine 68037

	github.com/pion/webrtc/[email protected]/peerconnection.go:496 +0x16c
@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Mar 1, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 1, 2025

This is fixed in latest master version. A lot of same issues.

@AlexxIT AlexxIT closed this as completed Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants