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

Failed to get candidate pair stats: the agent is closed (Forever) #4158

Open
GimpMaster opened this issue Jan 16, 2025 · 2 comments
Open

Failed to get candidate pair stats: the agent is closed (Forever) #4158

GimpMaster opened this issue Jan 16, 2025 · 2 comments

Comments

@GimpMaster
Copy link

Which version are you using?

1.11.1

Which operating system are you using?

Linux amd64 standard

Describe how to replicate the issue

In 1.11.1 I noticed that I get an error message I don't remember ever seeing with 1.10.0. Essentially if you have a WebRTC connection from a single client to a stream and then you change the WebRTC url to another stream. You will forever get this error message

0|mediamtx | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed

This will continue forever even after the WebRTC client has long disconnected.

I tried to enable log: debug but nothing else relevant as added to the logs that I could see.

Thanks!

Server logs

0|mediamtx  | 2025/01/15 21:32:32 INF [WebRTC] [session c67f2124] created by 38.78.242.228:60792
0|mediamtx  | 2025/01/15 21:32:32 WAR [WebRTC] [session c67f2124] skipping track 3 (Generic)
0|mediamtx  | 2025/01/15 21:32:33 INF [WebRTC] [session c67f2124] peer connection established, local candidate: host/udp/65.76.29.166/8189, remote candidate: prflx/udp/38.78.242.228/60455
0|mediamtx  | 2025/01/15 21:32:33 INF [WebRTC] [session c67f2124] is reading from path '313/static/low', 2 tracks (H264, G711)
0|mediamtx  | 2025/01/15 21:34:34 INF [WebRTC] [session 91d14c9b] created by 38.78.242.228:60792
0|mediamtx  | 2025/01/15 21:34:34 WAR [WebRTC] [session 91d14c9b] skipping track 3 (Generic)
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | 2025/01/15 21:34:35 INF [WebRTC] [session 91d14c9b] peer connection established, local candidate: host/udp/192.168.1.50/8189, remote candidate: prflx/udp/38.78.242.228/56845
0|mediamtx  | 2025/01/15 21:34:35 INF [WebRTC] [session 91d14c9b] is reading from path '312/static/low', 2 tracks (H264, G711)
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:45 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:50 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:34:55 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:00 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:05 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:10 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:15 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:20 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:25 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:30 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:35 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | 2025/01/15 21:35:39 INF [WebRTC] [session 91d14c9b] closed: peer connection closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:40 Failed to get candidate pair stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:45 Failed to get candidate pairs stats: the agent is closed
0|mediamtx  | ice ERROR: 2025/01/15 21:35:45 Failed to get candidate pair stats: the agent is closed

Network dump

No response

@GimpMaster
Copy link
Author

Just to double check I went back to version 1.10.0 and the issue is Not present.

@GimpMaster
Copy link
Author

possibly related to #4161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant