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

WriteRTP - fatal error: concurrent map iteration and map write (v1.8.2) #767

Closed
adamsteinbok opened this issue Nov 20, 2023 · 6 comments
Closed
Assignees
Labels
bug Something isn't working panic
Milestone

Comments

@adamsteinbok
Copy link

Similar to #213, seen on v1.8.2

2023-11-20 15:29:54.234424310  fatal error: concurrent map iteration and map write
2023-11-20 15:29:54.236160559  
2023-11-20 15:29:54.236168359  goroutine 4756 [running]:
2023-11-20 15:29:54.369197530  github.com/AlexxIT/go2rtc/pkg/core.(*Receiver).WriteRTP(0xc0017ca200, 0xc00519ad80)
2023-11-20 15:29:54.369207183  	github.com/AlexxIT/go2rtc/pkg/core/track.go:43 +0x86
2023-11-20 15:29:54.565018192  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00020a6e0)
2023-11-20 15:29:54.565030517  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:247 +0x689
2023-11-20 15:29:54.565034530  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc00020a6e0)
2023-11-20 15:29:54.565090345  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:54.751874812  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2a20, {0xd28040?, 0xc00020a6e0?}, 0x3)
2023-11-20 15:29:54.751887976  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:54.751892439  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).reconnect in goroutine 46
2023-11-20 15:29:54.751896373  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:239 +0x4fd
2023-11-20 15:29:54.751950900  
2023-11-20 15:29:54.752023553  goroutine 1 [chan receive, 667 minutes]:
2023-11-20 15:29:55.345999822  github.com/AlexxIT/go2rtc/pkg/shell.RunUntilSignal()
2023-11-20 15:29:55.346011912  	github.com/AlexxIT/go2rtc/pkg/shell/shell.go:71 +0x86
2023-11-20 15:29:55.500655406  main.main()
2023-11-20 15:29:55.500667015  	github.com/AlexxIT/go2rtc/main.go:90 +0x438
2023-11-20 15:29:55.500670380  
2023-11-20 15:29:55.500673896  goroutine 6 [IO wait]:
2023-11-20 15:29:55.539308334  internal/poll.runtime_pollWait(0x7f9f717e4918, 0x72)
2023-11-20 15:29:55.539319991  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:55.539324024  internal/poll.(*pollDesc).wait(0xc000044880?, 0x43a459?, 0x0)
2023-11-20 15:29:55.539327841  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:55.548309555  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:55.548317855  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:55.548321575  internal/poll.(*FD).Accept(0xc000044880)
2023-11-20 15:29:55.548325135  	internal/poll/fd_unix.go:611 +0x2ac
2023-11-20 15:29:55.690598356  net.(*netFD).accept(0xc000044880)
2023-11-20 15:29:55.690609780  	net/fd_unix.go:172 +0x29
2023-11-20 15:29:55.690613476  net.(*TCPListener).accept(0xc000034ae0)
2023-11-20 15:29:55.690617027  	net/tcpsock_posix.go:152 +0x1e
2023-11-20 15:29:55.690620570  net.(*TCPListener).Accept(0xc000034ae0)
2023-11-20 15:29:55.690623983  	net/tcpsock.go:315 +0x30
2023-11-20 15:29:55.690715663  github.com/AlexxIT/go2rtc/internal/api.Init.func1()
2023-11-20 15:29:55.690719036  	github.com/AlexxIT/go2rtc/internal/api/api.go:81 +0x65
2023-11-20 15:29:55.690722783  created by github.com/AlexxIT/go2rtc/internal/api.Init in goroutine 1
2023-11-20 15:29:55.690726286  	github.com/AlexxIT/go2rtc/internal/api/api.go:78 +0x5e5
2023-11-20 15:29:55.690746960  
2023-11-20 15:29:55.690750417  goroutine 7 [IO wait]:
2023-11-20 15:29:55.690768153  internal/poll.runtime_pollWait(0x7f9f717e4820, 0x72)
2023-11-20 15:29:55.690771513  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:55.690795391  internal/poll.(*pollDesc).wait(0xc000044c80?, 0x4?, 0x0)
2023-11-20 15:29:55.690813128  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:55.690829862  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:55.690847249  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:55.690864742  internal/poll.(*FD).Accept(0xc000044c80)
2023-11-20 15:29:55.690883396  	internal/poll/fd_unix.go:611 +0x2ac
2023-11-20 15:29:55.690901380  net.(*netFD).accept(0xc000044c80)
2023-11-20 15:29:55.690904623  	net/fd_unix.go:172 +0x29
2023-11-20 15:29:55.690922288  net.(*TCPListener).accept(0xc000034c20)
2023-11-20 15:29:55.690958875  	net/tcpsock_posix.go:152 +0x1e
2023-11-20 15:29:55.690962498  net.(*TCPListener).Accept(0xc000034c20)
2023-11-20 15:29:55.690965549  	net/tcpsock.go:315 +0x30
2023-11-20 15:29:55.690969025  github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1()
2023-11-20 15:29:55.690996970  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:64 +0x55
2023-11-20 15:29:55.691000983  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init in goroutine 1
2023-11-20 15:29:55.691004519  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:62 +0x475
2023-11-20 15:29:55.799835389  
2023-11-20 15:29:55.799847149  goroutine 8 [IO wait, 21 minutes]:
2023-11-20 15:29:55.799851325  internal/poll.runtime_pollWait(0x7f9f717e4728, 0x72)
2023-11-20 15:29:55.799855085  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:55.799858835  internal/poll.(*pollDesc).wait(0xc000044f00?, 0x4?, 0x0)
2023-11-20 15:29:55.799862565  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:55.799923307  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:55.799927431  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:55.799930720  internal/poll.(*FD).Accept(0xc000044f00)
2023-11-20 15:29:55.799933907  	internal/poll/fd_unix.go:611 +0x2ac
2023-11-20 15:29:55.799937104  net.(*netFD).accept(0xc000044f00)
2023-11-20 15:29:55.799956305  	net/fd_unix.go:172 +0x29
2023-11-20 15:29:55.799959921  net.(*TCPListener).accept(0xc000034d80)
2023-11-20 15:29:55.799963168  	net/tcpsock_posix.go:152 +0x1e
2023-11-20 15:29:55.799980588  net.(*TCPListener).Accept(0xc000034d80)
2023-11-20 15:29:55.799983905  	net/tcpsock.go:315 +0x30
2023-11-20 15:29:56.190478930  github.com/pion/ice/v2.(*TCPMuxDefault).start(0xc0002003c0)
2023-11-20 15:29:56.190490876  	github.com/pion/ice/v2@v2.3.11/tcp_mux.go:82 +0xd3
2023-11-20 15:29:56.190570372  github.com/pion/ice/v2.NewTCPMuxDefault.func1()
2023-11-20 15:29:56.190574974  	github.com/pion/ice/v2@v2.3.11/tcp_mux.go:73 +0x4f
2023-11-20 15:29:56.190578766  created by github.com/pion/ice/v2.NewTCPMuxDefault in goroutine 1
2023-11-20 15:29:56.190600566  	github.com/pion/ice/v2@v2.3.11/tcp_mux.go:71 +0x19b
2023-11-20 15:29:56.190603712  
2023-11-20 15:29:56.190662854  goroutine 9 [IO wait, 667 minutes]:
2023-11-20 15:29:56.190709782  internal/poll.runtime_pollWait(0x7f9f717e4630, 0x72)
2023-11-20 15:29:56.190728952  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.190817788  internal/poll.(*pollDesc).wait(0xc000044f80?, 0xc00011a000?, 0x0)
2023-11-20 15:29:56.190852968  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.303996912  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.304008249  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.304061046  internal/poll.(*FD).ReadFromInet6(0xc000044f80, {0xc00011a000, 0x2000, 0x2000}, 0x4197e8?)
2023-11-20 15:29:56.304065283  	internal/poll/fd_unix.go:274 +0x22b
2023-11-20 15:29:56.304253764  net.(*netFD).readFromInet6(0xc000044f80, {0xc00011a000?, 0x4193f3?, 0x0?}, 0x0?)
2023-11-20 15:29:56.304261558  	net/fd_posix.go:72 +0x25
2023-11-20 15:29:56.304265675  net.(*UDPConn).readFrom(0x30?, {0xc00011a000?, 0xc000110120?, 0x0?}, 0xc000110120)
2023-11-20 15:29:56.304269188  	net/udpsock_posix.go:59 +0x79
2023-11-20 15:29:56.304323066  net.(*UDPConn).readFromUDP(0xc000078c08, {0xc00011a000?, 0x4505a9?, 0x2000?}, 0xafadc0?)
2023-11-20 15:29:56.304327137  	net/udpsock.go:149 +0x30
2023-11-20 15:29:56.304330646  net.(*UDPConn).ReadFrom(0x0?, {0xc00011a000, 0x2000, 0x2000})
2023-11-20 15:29:56.304349724  	net/udpsock.go:158 +0x4a
2023-11-20 15:29:56.304368084  github.com/pion/ice/v2.(*UDPMuxDefault).connWorker(0xc000205360)
2023-11-20 15:29:56.304385864  	github.com/pion/ice/v2@v2.3.11/udp_mux.go:286 +0xc7
2023-11-20 15:29:56.304404572  created by github.com/pion/ice/v2.NewUDPMuxDefault in goroutine 1
2023-11-20 15:29:56.304422312  	github.com/pion/ice/v2@v2.3.11/udp_mux.go:122 +0x3db
2023-11-20 15:29:56.317992964  
2023-11-20 15:29:56.318001194  goroutine 17 [syscall, 667 minutes]:
2023-11-20 15:29:56.318004721  os/signal.signal_recv()
2023-11-20 15:29:56.318008247  	runtime/sigqueue.go:152 +0x29
2023-11-20 15:29:56.318011497  os/signal.loop()
2023-11-20 15:29:56.318014914  	os/signal/signal_unix.go:23 +0x13
2023-11-20 15:29:56.318018230  created by os/signal.Notify.func1.1 in goroutine 1
2023-11-20 15:29:56.322509899  	os/signal/signal.go:151 +0x1f
2023-11-20 15:29:56.322550584  
2023-11-20 15:29:56.322554281  goroutine 60 [IO wait]:
2023-11-20 15:29:56.322613735  internal/poll.runtime_pollWait(0x7f9f717e4250, 0x72)
2023-11-20 15:29:56.322619455  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.322624649  internal/poll.(*pollDesc).wait(0xc000044280?, 0xc0001fd000?, 0x0)
2023-11-20 15:29:56.322629666  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.338165611  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.338173529  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.338177712  internal/poll.(*FD).Read(0xc000044280, {0xc0001fd000, 0x1000, 0x1000})
2023-11-20 15:29:56.338181209  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.338247207  net.(*netFD).Read(0xc000044280, {0xc0001fd000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.338253234  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.341354828  net.(*conn).Read(0xc000078690, {0xc0001fd000?, 0xc000044280?, 0xc00226e004?})
2023-11-20 15:29:56.341362295  	net/net.go:179 +0x45
2023-11-20 15:29:56.344452460  bufio.(*Reader).fill(0xc00012c5a0)
2023-11-20 15:29:56.344461843  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.344467673  bufio.(*Reader).Peek(0xc00012c5a0, 0x4)
2023-11-20 15:29:56.344472101  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.344545429  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000133340)
2023-11-20 15:29:56.344551990  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.344557096  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc000133340)
2023-11-20 15:29:56.344562226  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.344567530  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.344572436  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.344583319  
2023-11-20 15:29:56.344587866  goroutine 68 [IO wait]:
2023-11-20 15:29:56.344658555  internal/poll.runtime_pollWait(0x7f9f717e4158, 0x72)
2023-11-20 15:29:56.344664861  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.344669702  internal/poll.(*pollDesc).wait(0xc0002ae180?, 0xc000150000?, 0x0)
2023-11-20 15:29:56.344741130  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.344747363  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.344751818  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.344837766  internal/poll.(*FD).Read(0xc0002ae180, {0xc000150000, 0x1000, 0x1000})
2023-11-20 15:29:56.344844846  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.344952433  net.(*netFD).Read(0xc0002ae180, {0xc000150000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.344959429  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.344994797  net.(*conn).Read(0xc0002b21d8, {0xc000150000?, 0xc0002ae180?, 0xc003204014?})
2023-11-20 15:29:56.345000183  	net/net.go:179 +0x45
2023-11-20 15:29:56.345032341  bufio.(*Reader).fill(0xc000296120)
2023-11-20 15:29:56.345036931  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.345109002  bufio.(*Reader).Peek(0xc000296120, 0x4)
2023-11-20 15:29:56.345115030  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.345120143  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00020a9a0)
2023-11-20 15:29:56.345124423  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.345179874  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc00020a9a0)
2023-11-20 15:29:56.345186081  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.345191225  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.345195915  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.348074190  
2023-11-20 15:29:56.348082418  goroutine 61 [syscall, 667 minutes]:
2023-11-20 15:29:56.348166560  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.348284730  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.348322161  os.(*Process).blockUntilWaitable(0xc0001561b0)
2023-11-20 15:29:56.348326044  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.348343508  os.(*Process).wait(0xc0001561b0)
2023-11-20 15:29:56.348367375  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.360500995  os.(*Process).Wait(...)
2023-11-20 15:29:56.360511619  	os/exec.go:134
2023-11-20 15:29:56.360515459  os/exec.(*Cmd).Wait(0xc0001338c0)
2023-11-20 15:29:56.360567460  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.412699114  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.412710885  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.412715475  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 60
2023-11-20 15:29:56.412719501  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.412722688  
2023-11-20 15:29:56.412831984  goroutine 58 [IO wait]:
2023-11-20 15:29:56.412839254  internal/poll.runtime_pollWait(0x7f9f717e4440, 0x72)
2023-11-20 15:29:56.412843908  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.412848924  internal/poll.(*pollDesc).wait(0xc000044100?, 0xc0001fc000?, 0x0)
2023-11-20 15:29:56.412889925  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.412895022  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.412918239  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.412956697  internal/poll.(*FD).Read(0xc000044100, {0xc0001fc000, 0x1000, 0x1000})
2023-11-20 15:29:56.413008155  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.413110775  net.(*netFD).Read(0xc000044100, {0xc0001fc000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.413137184  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.413268915  net.(*conn).Read(0xc000078618, {0xc0001fc000?, 0xc000044100?, 0xc000a94004?})
2023-11-20 15:29:56.413306966  	net/net.go:179 +0x45
2023-11-20 15:29:56.413310653  bufio.(*Reader).fill(0xc00012c180)
2023-11-20 15:29:56.413328302  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.413345919  bufio.(*Reader).Peek(0xc00012c180, 0x4)
2023-11-20 15:29:56.413368263  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.413445745  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000132b00)
2023-11-20 15:29:56.413471330  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.413488913  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc000132b00)
2023-11-20 15:29:56.413506390  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.413529647  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.413619083  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.413623203  
2023-11-20 15:29:56.413655961  goroutine 59 [syscall, 667 minutes]:
2023-11-20 15:29:56.413756877  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.413865628  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.413870523  os.(*Process).blockUntilWaitable(0xc000156150)
2023-11-20 15:29:56.413903953  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.413907626  os.(*Process).wait(0xc000156150)
2023-11-20 15:29:56.413910757  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.413927657  os.(*Process).Wait(...)
2023-11-20 15:29:56.413944454  	os/exec.go:134
2023-11-20 15:29:56.413961908  os/exec.(*Cmd).Wait(0xc0001331e0)
2023-11-20 15:29:56.413983768  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.414067493  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.414102088  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.414106254  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 58
2023-11-20 15:29:56.414123675  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.414140022  
2023-11-20 15:29:56.414156913  goroutine 29 [IO wait]:
2023-11-20 15:29:56.414184620  internal/poll.runtime_pollWait(0x7f9f717e4538, 0x72)
2023-11-20 15:29:56.414268468  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.414303656  internal/poll.(*pollDesc).wait(0xc000130300?, 0xc000202000?, 0x0)
2023-11-20 15:29:56.414321190  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.414343530  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.414365771  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.414463633  internal/poll.(*FD).Read(0xc000130300, {0xc000202000, 0x1000, 0x1000})
2023-11-20 15:29:56.414498081  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.414543495  net.(*netFD).Read(0xc000130300, {0xc000202000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.414599540  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.414679926  net.(*conn).Read(0xc0001120c0, {0xc000202000?, 0xc000130300?, 0xc000a94034?})
2023-11-20 15:29:56.414709306  	net/net.go:179 +0x45
2023-11-20 15:29:56.414733503  bufio.(*Reader).fill(0xc00007eb40)
2023-11-20 15:29:56.414755641  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.414783554  bufio.(*Reader).Peek(0xc00007eb40, 0x4)
2023-11-20 15:29:56.414842763  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.414865790  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc0002b5760)
2023-11-20 15:29:56.414889080  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.414912592  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc0002b5760)
2023-11-20 15:29:56.414942221  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.414965619  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.415021290  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.415024890  
2023-11-20 15:29:56.415069088  goroutine 69 [syscall, 667 minutes]:
2023-11-20 15:29:56.415159157  syscall.Syscall6(0x1168d40?, 0xc000076640?, 0xc000076640?, 0x460585?, 0x50d865?, 0xc0000766b8?, 0x40d847?)
2023-11-20 15:29:56.415195381  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.415237473  os.(*Process).blockUntilWaitable(0xc0002dc240)
2023-11-20 15:29:56.415265056  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.415282494  os.(*Process).wait(0xc0002dc240)
2023-11-20 15:29:56.415299577  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.415316791  os.(*Process).Wait(...)
2023-11-20 15:29:56.415333578  	os/exec.go:134
2023-11-20 15:29:56.415351164  os/exec.(*Cmd).Wait(0xc00020b4a0)
2023-11-20 15:29:56.415379562  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.415403800  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.415457324  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.415489228  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 68
2023-11-20 15:29:56.415507292  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.415510299  
2023-11-20 15:29:56.415532799  goroutine 30 [syscall, 667 minutes]:
2023-11-20 15:29:56.415672072  syscall.Syscall6(0x318?, 0xc00030fea4?, 0x0?, 0xc000040120?, 0x0?, 0x318?, 0xc00030fe70?)
2023-11-20 15:29:56.415707123  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.415710863  os.(*Process).blockUntilWaitable(0xc00003e4b0)
2023-11-20 15:29:56.415713990  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.415731311  os.(*Process).wait(0xc00003e4b0)
2023-11-20 15:29:56.415753978  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.415771019  os.(*Process).Wait(...)
2023-11-20 15:29:56.415787425  	os/exec.go:134
2023-11-20 15:29:56.415850394  os/exec.(*Cmd).Wait(0xc0002b5ce0)
2023-11-20 15:29:56.415873857  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.415891762  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.415916512  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.415941809  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 29
2023-11-20 15:29:56.415971060  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.415988006  
2023-11-20 15:29:56.416072428  goroutine 31 [IO wait]:
2023-11-20 15:29:56.416106496  internal/poll.runtime_pollWait(0x7f9f717e4348, 0x72)
2023-11-20 15:29:56.416110046  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.416133474  internal/poll.(*pollDesc).wait(0xc000130480?, 0xc000203000?, 0x0)
2023-11-20 15:29:56.416189182  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.416209729  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.416232983  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.416299121  internal/poll.(*FD).Read(0xc000130480, {0xc000203000, 0x1000, 0x1000})
2023-11-20 15:29:56.416329492  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.416390843  net.(*netFD).Read(0xc000130480, {0xc000203000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.416468405  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.416513479  net.(*conn).Read(0xc000112100, {0xc000203000?, 0xc000130480?, 0xc000a94004?})
2023-11-20 15:29:56.416542884  	net/net.go:179 +0x45
2023-11-20 15:29:56.416569721  bufio.(*Reader).fill(0xc00007f020)
2023-11-20 15:29:56.416588238  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.416678040  bufio.(*Reader).Peek(0xc00007f020, 0x4)
2023-11-20 15:29:56.416711934  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.416715828  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc0002b5e40)
2023-11-20 15:29:56.416733298  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.416750525  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc0002b5e40)
2023-11-20 15:29:56.416773426  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.416879912  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.417002765  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.417007072  
2023-11-20 15:29:56.417042796  goroutine 32 [syscall, 667 minutes]:
2023-11-20 15:29:56.417168679  syscall.Syscall6(0x37e11d600?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.417196216  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.417249984  os.(*Process).blockUntilWaitable(0xc00003e510)
2023-11-20 15:29:56.417272675  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.417297285  os.(*Process).wait(0xc00003e510)
2023-11-20 15:29:56.417322439  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.417339619  os.(*Process).Wait(...)
2023-11-20 15:29:56.417357010  	os/exec.go:134
2023-11-20 15:29:56.417380091  os/exec.(*Cmd).Wait(0xc00021a420)
2023-11-20 15:29:56.417471319  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.417476056  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.417509507  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.417513623  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 31
2023-11-20 15:29:56.417531044  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.417533998  
2023-11-20 15:29:56.417550361  goroutine 70 [IO wait]:
2023-11-20 15:29:56.417607897  internal/poll.runtime_pollWait(0x7f9f717e4060, 0x72)
2023-11-20 15:29:56.417660491  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.417700782  internal/poll.(*pollDesc).wait(0xc0002ae300?, 0xc000151000?, 0x0)
2023-11-20 15:29:56.417729402  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.417752436  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.417770010  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.417858445  internal/poll.(*FD).Read(0xc0002ae300, {0xc000151000, 0x1000, 0x1000})
2023-11-20 15:29:56.417889530  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.417931427  net.(*netFD).Read(0xc0002ae300, {0xc000151000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.417959491  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.418067374  net.(*conn).Read(0xc0002b2220, {0xc000151000?, 0xc0002ae300?, 0xc00069c024?})
2023-11-20 15:29:56.418097475  	net/net.go:179 +0x45
2023-11-20 15:29:56.418115075  bufio.(*Reader).fill(0xc0002965a0)
2023-11-20 15:29:56.418131786  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.418185506  bufio.(*Reader).Peek(0xc0002965a0, 0x4)
2023-11-20 15:29:56.418205671  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.418251262  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00020b600)
2023-11-20 15:29:56.418273765  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.418291276  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc00020b600)
2023-11-20 15:29:56.418315593  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.418338237  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.418366475  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.418385148  
2023-11-20 15:29:56.418402805  goroutine 71 [syscall, 667 minutes]:
2023-11-20 15:29:56.418520471  syscall.Syscall6(0x11ad540?, 0x11ad540?, 0x7f9fb83a65b8?, 0x60?, 0x10000?, 0x14000?, 0x1da?)
2023-11-20 15:29:56.418554315  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.418558069  os.(*Process).blockUntilWaitable(0xc0002dc2a0)
2023-11-20 15:29:56.418580693  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.418610284  os.(*Process).wait(0xc0002dc2a0)
2023-11-20 15:29:56.418654118  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.418691183  os.(*Process).Wait(...)
2023-11-20 15:29:56.418696486  	os/exec.go:134
2023-11-20 15:29:56.418743210  os/exec.(*Cmd).Wait(0xc00020bb80)
2023-11-20 15:29:56.418747337  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.418750844  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.418770158  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.418787871  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 70
2023-11-20 15:29:56.418863203  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.418866847  
2023-11-20 15:29:56.418900931  goroutine 62 [IO wait]:
2023-11-20 15:29:56.418918894  internal/poll.runtime_pollWait(0x7f9f717e3f68, 0x72)
2023-11-20 15:29:56.418935795  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.418975676  internal/poll.(*pollDesc).wait(0xc000044400?, 0xc0002ca000?, 0x0)
2023-11-20 15:29:56.419004499  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.419056018  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.419060038  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.419179331  internal/poll.(*FD).Read(0xc000044400, {0xc0002ca000, 0x1000, 0x1000})
2023-11-20 15:29:56.419205584  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.419256646  net.(*netFD).Read(0xc000044400, {0xc0002ca000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.419286023  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.419365241  net.(*conn).Read(0xc0000786d0, {0xc0002ca000?, 0xc000044400?, 0xc000d1e014?})
2023-11-20 15:29:56.419422737  	net/net.go:179 +0x45
2023-11-20 15:29:56.419428934  bufio.(*Reader).fill(0xc00012c7e0)
2023-11-20 15:29:56.419460808  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.419466128  bufio.(*Reader).Peek(0xc00012c7e0, 0x4)
2023-11-20 15:29:56.419497169  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.419529366  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000133a20)
2023-11-20 15:29:56.419534866  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.419586231  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc000133a20)
2023-11-20 15:29:56.419592791  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.419626055  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.419659202  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.419663876  
2023-11-20 15:29:56.419707557  goroutine 63 [IO wait]:
2023-11-20 15:29:56.419713094  internal/poll.runtime_pollWait(0x7f9f717e3e70, 0x72)
2023-11-20 15:29:56.419744964  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.419799319  internal/poll.(*pollDesc).wait(0xc000044480?, 0xc0002cb000?, 0x0)
2023-11-20 15:29:56.419804819  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.419842050  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.419847717  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.419891928  internal/poll.(*FD).Read(0xc000044480, {0xc0002cb000, 0x1000, 0x1000})
2023-11-20 15:29:56.419930020  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.419972274  net.(*netFD).Read(0xc000044480, {0xc0002cb000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.420027771  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.420094763  net.(*conn).Read(0xc0000786d8, {0xc0002cb000?, 0xc000044480?, 0xc002112044?})
2023-11-20 15:29:56.420117083  	net/net.go:179 +0x45
2023-11-20 15:29:56.420134364  bufio.(*Reader).fill(0xc00012c840)
2023-11-20 15:29:56.420167404  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.420200955  bufio.(*Reader).Peek(0xc00012c840, 0x4)
2023-11-20 15:29:56.420249409  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.420254050  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000133b80)
2023-11-20 15:29:56.420290121  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.420308305  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc000133b80)
2023-11-20 15:29:56.420377293  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.420381917  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.420415705  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.420418854  
2023-11-20 15:29:56.420435991  goroutine 81 [syscall, 667 minutes]:
2023-11-20 15:29:56.420583438  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.420621296  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.420625059  os.(*Process).blockUntilWaitable(0xc00003e5a0)
2023-11-20 15:29:56.420656164  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.420659700  os.(*Process).wait(0xc00003e5a0)
2023-11-20 15:29:56.420678650  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.420695938  os.(*Process).Wait(...)
2023-11-20 15:29:56.420712498  	os/exec.go:134
2023-11-20 15:29:56.420753342  os/exec.(*Cmd).Wait(0xc00021ab00)
2023-11-20 15:29:56.420830571  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.420869702  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.420875691  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.420910266  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 62
2023-11-20 15:29:56.420916812  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.420942727  
2023-11-20 15:29:56.420965277  goroutine 42 [syscall, 667 minutes]:
2023-11-20 15:29:56.421099824  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.421136458  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.421140205  os.(*Process).blockUntilWaitable(0xc000308060)
2023-11-20 15:29:56.421196066  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.421216264  os.(*Process).wait(0xc000308060)
2023-11-20 15:29:56.421244291  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.421299822  os.(*Process).Wait(...)
2023-11-20 15:29:56.421305382  	os/exec.go:134
2023-11-20 15:29:56.421309602  os/exec.(*Cmd).Wait(0xc000316160)
2023-11-20 15:29:56.421345016  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.421350460  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.421381968  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.421388571  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 63
2023-11-20 15:29:56.421431775  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.421436032  
2023-11-20 15:29:56.421465966  goroutine 43 [IO wait]:
2023-11-20 15:29:56.421496054  internal/poll.runtime_pollWait(0x7f9f717e3d78, 0x72)
2023-11-20 15:29:56.421549941  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.421568915  internal/poll.(*pollDesc).wait(0xc00031a100?, 0xc000340000?, 0x0)
2023-11-20 15:29:56.421586276  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.421603236  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.421620203  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.421707662  internal/poll.(*FD).Read(0xc00031a100, {0xc000340000, 0x1000, 0x1000})
2023-11-20 15:29:56.421741266  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.421792074  net.(*netFD).Read(0xc00031a100, {0xc000340000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.421814937  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.421953521  net.(*conn).Read(0xc000318028, {0xc000340000?, 0xc00031a100?, 0xc001b6e004?})
2023-11-20 15:29:56.421957964  	net/net.go:179 +0x45
2023-11-20 15:29:56.421961088  bufio.(*Reader).fill(0xc0003321e0)
2023-11-20 15:29:56.421994692  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.421998322  bufio.(*Reader).Peek(0xc0003321e0, 0x4)
2023-11-20 15:29:56.422015179  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.422032146  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc0003162c0)
2023-11-20 15:29:56.422055060  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.422080411  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc0003162c0)
2023-11-20 15:29:56.422104685  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.422128362  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.422163289  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.422211001  
2023-11-20 15:29:56.422232068  goroutine 44 [syscall, 667 minutes]:
2023-11-20 15:29:56.422348581  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.422380405  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.422384082  os.(*Process).blockUntilWaitable(0xc000308120)
2023-11-20 15:29:56.422416855  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.422420516  os.(*Process).wait(0xc000308120)
2023-11-20 15:29:56.422439266  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.422456416  os.(*Process).Wait(...)
2023-11-20 15:29:56.422504388  	os/exec.go:134
2023-11-20 15:29:56.422527128  os/exec.(*Cmd).Wait(0xc000316840)
2023-11-20 15:29:56.422544156  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.422561823  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.422585013  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.422608290  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 43
2023-11-20 15:29:56.422642894  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.422668742  
2023-11-20 15:29:56.422672062  goroutine 84 [IO wait]:
2023-11-20 15:29:56.422695666  internal/poll.runtime_pollWait(0x7f9f717e3b88, 0x72)
2023-11-20 15:29:56.422750450  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.422791022  internal/poll.(*pollDesc).wait(0xc000130900?, 0xc000227000?, 0x0)
2023-11-20 15:29:56.422819131  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.422836349  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:56.422859112  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:56.422911058  internal/poll.(*FD).Read(0xc000130900, {0xc000227000, 0x1000, 0x1000})
2023-11-20 15:29:56.422935661  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:56.423053948  net.(*netFD).Read(0xc000130900, {0xc000227000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:56.423123970  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:56.423131110  net.(*conn).Read(0xc0001121b8, {0xc000227000?, 0xc000130900?, 0xc000d1e004?})
2023-11-20 15:29:56.423170640  	net/net.go:179 +0x45
2023-11-20 15:29:56.423176593  bufio.(*Reader).fill(0xc00007fbc0)
2023-11-20 15:29:56.423212834  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:56.423285723  bufio.(*Reader).Peek(0xc00007fbc0, 0x4)
2023-11-20 15:29:56.423292400  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:56.423296843  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00021b340)
2023-11-20 15:29:56.423342962  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:56.423349752  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc00021b340)
2023-11-20 15:29:56.423413263  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:56.423419946  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.423424654  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
TRUNCATED
@adamsteinbok
Copy link
Author

2023-11-20 15:29:56.423468798  goroutine 85 [syscall, 667 minutes]:
2023-11-20 15:29:56.423536499  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2023-11-20 15:29:56.423607964  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:56.423614191  os.(*Process).blockUntilWaitable(0xc00003e6c0)
2023-11-20 15:29:56.423650978  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:56.423656889  os.(*Process).wait(0xc00003e6c0)
2023-11-20 15:29:56.423692610  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:56.423697906  os.(*Process).Wait(...)
2023-11-20 15:29:56.423756848  	os/exec.go:134
2023-11-20 15:29:56.423762998  os/exec.(*Cmd).Wait(0xc00021b8c0)
2023-11-20 15:29:56.423767595  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:56.423808779  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:56.423814722  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:56.423894911  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 84
2023-11-20 15:29:56.423902108  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:56.423905745  
2023-11-20 15:29:56.423909679  goroutine 88 [semacquire]:
2023-11-20 15:29:56.467351653  internal/poll.runtime_Semacquire(0x7f9f71818ea0?)
2023-11-20 15:29:56.467359316  	runtime/sema.go:67 +0x25
2023-11-20 15:29:56.512843840  internal/poll.(*FD).Close(0xc000130c00)
2023-11-20 15:29:56.512857847  	internal/poll/fd_unix.go:113 +0x65
2023-11-20 15:29:56.592353186  net.(*netFD).Close(0xc000130c00)
2023-11-20 15:29:56.592364446  	net/fd_posix.go:37 +0x32
2023-11-20 15:29:56.592368096  net.(*conn).Close(0xc000112238)
2023-11-20 15:29:56.592371603  	net/net.go:203 +0x36
2023-11-20 15:29:56.592439308  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Close(0xc00022e000?)
2023-11-20 15:29:56.592443868  	github.com/AlexxIT/go2rtc/pkg/rtsp/client.go:304 +0x84
2023-11-20 15:29:56.633551389  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Stop(0xc00022c160)
2023-11-20 15:29:56.633563516  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:94 +0x105
2023-11-20 15:29:56.633568360  github.com/AlexxIT/go2rtc/internal/streams.(*Stream).RemoveConsumer(0xc0000c7dc0, {0xd269e8, 0xc00022c160})
2023-11-20 15:29:56.633572423  	github.com/AlexxIT/go2rtc/internal/streams/stream.go:52 +0x30
2023-11-20 15:29:56.633576546  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler.func1.1()
2023-11-20 15:29:56.633580326  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:197 +0x25
2023-11-20 15:29:56.633640285  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc00022c160)
2023-11-20 15:29:56.633644745  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:245 +0x328
2023-11-20 15:29:56.633648382  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:56.633652035  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:56.633654991  
2023-11-20 15:29:56.633658042  goroutine 93 [runnable]:
2023-11-20 15:29:56.633661442  internal/poll.runtime_pollWait(0x7f9f717e3f68, 0x77)
2023-11-20 15:29:56.633682936  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:56.633700979  internal/poll.(*pollDesc).wait(0xc000044400?, 0xc001505acf?, 0x0)
2023-11-20 15:29:56.633704559  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:56.793598480  internal/poll.(*pollDesc).waitWrite(...)
2023-11-20 15:29:56.793610277  	internal/poll/fd_poll_runtime.go:93
2023-11-20 15:29:56.793614417  internal/poll.(*FD).Write(0xc000044400, {0xc001486000, 0xac49e, 0x136000})
2023-11-20 15:29:56.793618320  	internal/poll/fd_unix.go:388 +0x2d6
2023-11-20 15:29:56.793705563  net.(*netFD).Write(0xc000044400, {0xc001486000?, 0xc?, 0x11ad540?})
2023-11-20 15:29:56.793709913  	net/fd_posix.go:96 +0x25
2023-11-20 15:29:56.793713803  net.(*conn).Write(0xc0000786d0, {0xc001486000?, 0xc001010dc0?, 0x11ad540?})
2023-11-20 15:29:56.793716936  	net/net.go:191 +0x45
2023-11-20 15:29:56.793720656  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).packetWriter.func1(0xc003ec1dd0)
2023-11-20 15:29:56.793724209  	github.com/AlexxIT/go2rtc/pkg/rtsp/consumer.go:147 +0x38e
2023-11-20 15:29:56.793728006  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:56.793751821  	github.com/AlexxIT/go2rtc/pkg/core/track.go:144 +0x62
2023-11-20 15:29:56.793755977  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 62
2023-11-20 15:29:56.793759410  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:56.793762194  
2023-11-20 15:29:56.793765334  goroutine 72 [chan receive]:
2023-11-20 15:29:56.793810505  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:56.793841219  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:56.793845385  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 58
2023-11-20 15:29:56.793848792  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:56.793867284  
2023-11-20 15:29:56.793870717  goroutine 95 [chan receive]:
2023-11-20 15:29:56.793874197  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:56.793910994  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:56.793915224  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 68
2023-11-20 15:29:56.793918587  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:56.793921254  
2023-11-20 15:29:56.793958645  goroutine 94 [runnable]:
2023-11-20 15:29:56.827479372  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00022c840)
2023-11-20 15:29:56.827490730  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:232 +0x426
2023-11-20 15:29:56.827494866  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc00022c840)
2023-11-20 15:29:56.827498826  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:56.827503237  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d25a0, {0xd28040?, 0xc00022c840?}, 0x1)
2023-11-20 15:29:56.827562228  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:56.827567099  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 62
2023-11-20 15:29:56.869781536  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:56.869792922  
2023-11-20 15:29:56.869796613  goroutine 73 [chan receive]:
2023-11-20 15:29:56.869800582  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:56.869804429  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:56.869808623  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 58
2023-11-20 15:29:56.869870868  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:56.869874737  
2023-11-20 15:29:56.869877844  goroutine 74 [runnable]:
2023-11-20 15:29:56.869881408  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00022cdc0)
2023-11-20 15:29:56.869884797  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:240 +0x61b
2023-11-20 15:29:56.869888316  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc00022cdc0)
2023-11-20 15:29:56.869891705  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:56.869913089  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d27e0, {0xd28040?, 0xc00022cdc0?}, 0x1)
2023-11-20 15:29:56.869916965  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:56.869920765  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 58
2023-11-20 15:29:56.869939616  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:56.869942633  
2023-11-20 15:29:56.869945643  goroutine 96 [runnable]:
2023-11-20 15:29:56.869963246  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00022d340)
2023-11-20 15:29:56.869981367  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:240 +0x61b
2023-11-20 15:29:56.869985191  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc00022d340)
2023-11-20 15:29:56.870008305  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:56.870043172  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d23f0, {0xd28040?, 0xc00022d340?}, 0x1)
2023-11-20 15:29:56.870062126  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:56.870081526  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 68
2023-11-20 15:29:56.870085379  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:56.870088100  
2023-11-20 15:29:56.870108034  goroutine 45 [runnable]:
2023-11-20 15:29:56.870131698  syscall.Syscall(0xc000070be8?, 0x465ffd?, 0x11dda50?, 0x7f9f71818ea0?)
2023-11-20 15:29:56.870148984  	syscall/syscall_linux.go:69 +0x25
2023-11-20 15:29:56.870166848  syscall.Close(0x7f9f71818ea0?)
2023-11-20 15:29:56.870184516  	syscall/zsyscall_linux_amd64.go:320 +0x25
2023-11-20 15:29:57.158683310  internal/poll.(*SysFile).destroy(...)
2023-11-20 15:29:57.158694683  	internal/poll/fd_unixjs.go:24
2023-11-20 15:29:57.158698246  internal/poll.(*FD).destroy(0xc000130c00)
2023-11-20 15:29:57.158753989  	internal/poll/fd_unix.go:81 +0x51
2023-11-20 15:29:57.158757992  internal/poll.(*FD).writeUnlock(0xc000130c00)
2023-11-20 15:29:57.158761269  	internal/poll/fd_mutex.go:250 +0x2e
2023-11-20 15:29:57.158764824  internal/poll.(*FD).Write(0xc000130c00, {0xc001f30000, 0x75, 0x50000})
2023-11-20 15:29:57.158783559  	internal/poll/fd_unix.go:385 +0x449
2023-11-20 15:29:57.159026430  net.(*netFD).Write(0xc000130c00, {0xc001f30000?, 0xc?, 0x11ad540?})
2023-11-20 15:29:57.159033808  	net/fd_posix.go:96 +0x25
2023-11-20 15:29:57.159092618  net.(*conn).Write(0xc000112238, {0xc001f30000?, 0xc000070dc0?, 0x11ad540?})
2023-11-20 15:29:57.159099444  	net/net.go:191 +0x45
2023-11-20 15:29:57.159104987  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).packetWriter.func1(0xc000314870)
2023-11-20 15:29:57.159146128  	github.com/AlexxIT/go2rtc/pkg/rtsp/consumer.go:147 +0x38e
2023-11-20 15:29:57.159152325  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.159157082  	github.com/AlexxIT/go2rtc/pkg/core/track.go:144 +0x62
2023-11-20 15:29:57.159162279  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 88
2023-11-20 15:29:57.159207052  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.159210672  
2023-11-20 15:29:57.159213810  goroutine 76 [chan receive]:
2023-11-20 15:29:57.159217152  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.159237181  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.159240918  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 84
2023-11-20 15:29:57.159266639  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.159269622  
2023-11-20 15:29:57.159272374  goroutine 77 [runnable]:
2023-11-20 15:29:57.159289597  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000168420)
2023-11-20 15:29:57.159308443  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:232 +0x426
2023-11-20 15:29:57.159326006  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000168420)
2023-11-20 15:29:57.159352466  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.159404790  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2750, {0xd28040?, 0xc000168420?}, 0x3)
2023-11-20 15:29:57.159410141  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.159415117  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 84
2023-11-20 15:29:57.159464167  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.159469029  
2023-11-20 15:29:57.159472072  goroutine 114 [runnable]:
2023-11-20 15:29:57.159496242  syscall.Syscall(0x4666fb?, 0x7f9f717e45d8?, 0x50c2e7?, 0x7ffff80000000000?)
2023-11-20 15:29:57.159499448  	syscall/syscall_linux.go:69 +0x25
2023-11-20 15:29:57.159524993  syscall.write(0xc000130300?, {0xc001110000?, 0x9d3f4e1a9100?, 0x0?})
2023-11-20 15:29:57.159542024  	syscall/zsyscall_linux_amd64.go:949 +0x3b
2023-11-20 15:29:57.159559040  syscall.Write(...)
2023-11-20 15:29:57.159580816  	syscall/syscall_unix.go:209
2023-11-20 15:29:57.159583924  internal/poll.ignoringEINTRIO(...)
2023-11-20 15:29:57.159620793  	internal/poll/fd_unix.go:736
2023-11-20 15:29:57.159624697  internal/poll.(*FD).Write(0xc000130300, {0xc001110000, 0x13d59, 0x28000})
2023-11-20 15:29:57.159641436  	internal/poll/fd_unix.go:380 +0x35f
2023-11-20 15:29:57.159682055  net.(*netFD).Write(0xc000130300, {0xc001110000?, 0xc?, 0x11ad540?})
2023-11-20 15:29:57.159699672  	net/fd_posix.go:96 +0x25
2023-11-20 15:29:57.159732402  net.(*conn).Write(0xc0001120c0, {0xc001110000?, 0xc00100ddc0?, 0x11ad540?})
2023-11-20 15:29:57.159757199  	net/net.go:191 +0x45
2023-11-20 15:29:57.159775012  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).packetWriter.func1(0xc004b698c0)
2023-11-20 15:29:57.159778372  	github.com/AlexxIT/go2rtc/pkg/rtsp/consumer.go:147 +0x38e
2023-11-20 15:29:57.159800701  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.159804144  	github.com/AlexxIT/go2rtc/pkg/core/track.go:144 +0x62
2023-11-20 15:29:57.159822868  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 29
2023-11-20 15:29:57.159857402  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.159861716  
2023-11-20 15:29:57.159865512  goroutine 117 [chan receive]:
2023-11-20 15:29:57.217563283  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.217574675  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.217578755  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 60
2023-11-20 15:29:57.217582198  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.217585145  
2023-11-20 15:29:57.217588219  goroutine 115 [runnable]:
2023-11-20 15:29:57.217591456  internal/poll.runtime_pollWait(0x7f9f718187d8, 0x72)
2023-11-20 15:29:57.217594425  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:57.217597736  internal/poll.(*pollDesc).wait(0xc0002ae000?, 0xc000134000?, 0x0)
2023-11-20 15:29:57.217600785  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:57.217606576  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:57.217609622  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:57.217672769  internal/poll.(*FD).Read(0xc0002ae000, {0xc000134000, 0x1000, 0x1000})
2023-11-20 15:29:57.217676652  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:57.217680523  net.(*netFD).Read(0xc0002ae000, {0xc000134000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:57.217683581  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:57.217716893  net.(*conn).Read(0xc0002b2000, {0xc000134000?, 0xc0002ae000?, 0x0?})
2023-11-20 15:29:57.217720644  	net/net.go:179 +0x45
2023-11-20 15:29:57.217724881  bufio.(*Reader).fill(0xc000296060)
2023-11-20 15:29:57.217729650  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:57.217734177  bufio.(*Reader).Peek(0xc000296060, 0x4)
2023-11-20 15:29:57.217738442  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:57.217743454  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000316420)
2023-11-20 15:29:57.217749836  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:57.217754589  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000316420)
2023-11-20 15:29:57.217758989  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.217823585  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d26c0, {0xd28040?, 0xc000316420?}, 0x1)
2023-11-20 15:29:57.217830718  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.217836918  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 29
2023-11-20 15:29:57.217844914  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.217848721  
2023-11-20 15:29:57.217852839  goroutine 99 [chan receive]:
2023-11-20 15:29:57.217857223  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.217861802  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.217941348  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 70
2023-11-20 15:29:57.217947733  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.217951453  
2023-11-20 15:29:57.217954425  goroutine 118 [runnable]:
2023-11-20 15:29:57.217957671  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000317080)
2023-11-20 15:29:57.217961447  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:232 +0x426
2023-11-20 15:29:57.217964705  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000317080)
2023-11-20 15:29:57.217967908  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.217971657  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2ab0, {0xd28040?, 0xc000317080?}, 0x1)
2023-11-20 15:29:57.218030070  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.218034372  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 60
2023-11-20 15:29:57.218037575  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.218040169  
2023-11-20 15:29:57.218042972  goroutine 100 [runnable]:
2023-11-20 15:29:57.218046181  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000317b80)
2023-11-20 15:29:57.218102869  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:232 +0x426
2023-11-20 15:29:57.218109411  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000317b80)
2023-11-20 15:29:57.218113837  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.218119120  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2510, {0xd28040?, 0xc000317b80?}, 0x1)
2023-11-20 15:29:57.218123820  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.218129171  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 70
2023-11-20 15:29:57.218134926  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.218138578  
2023-11-20 15:29:57.218142676  goroutine 101 [chan receive]:
2023-11-20 15:29:57.218147916  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.218153058  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.218157987  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 43
2023-11-20 15:29:57.218162698  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.218166092  
2023-11-20 15:29:57.218264867  goroutine 102 [runnable]:
2023-11-20 15:29:57.218270924  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc0001691e0)
2023-11-20 15:29:57.218275470  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:240 +0x61b
2023-11-20 15:29:57.218280678  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc0001691e0)
2023-11-20 15:29:57.218285381  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.218292032  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2480, {0xd28040?, 0xc0001691e0?}, 0x1)
2023-11-20 15:29:57.218297130  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.218302262  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 43
2023-11-20 15:29:57.218308311  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.218311730  
2023-11-20 15:29:57.218315519  goroutine 131 [chan receive]:
2023-11-20 15:29:57.218318899  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.218322085  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.218325468  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 31
2023-11-20 15:29:57.218328519  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.218331076  
2023-11-20 15:29:57.218333877  goroutine 120 [chan receive]:
2023-11-20 15:29:57.218337103  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.218340140  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.218343837  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 63
2023-11-20 15:29:57.218346977  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.218349597  
2023-11-20 15:29:57.218352386  goroutine 132 [runnable]:
2023-11-20 15:29:57.218355726  io.ReadAtLeast({0xd223c0, 0xc00022e360}, {0xc005006c00, 0x5c0, 0x5c0}, 0x5c0)
2023-11-20 15:29:57.218358483  	io/io.go:329 +0x190
2023-11-20 15:29:57.218361206  io.ReadFull(...)
2023-11-20 15:29:57.218363891  	io/io.go:354
2023-11-20 15:29:57.218367140  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000132580)
2023-11-20 15:29:57.218370286  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:233 +0x457
2023-11-20 15:29:57.218373469  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000132580)
2023-11-20 15:29:57.218376509  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.218477400  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2900, {0xd28040?, 0xc000132580?}, 0x1)
2023-11-20 15:29:57.218483726  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.218488934  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 31
2023-11-20 15:29:57.218493801  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.218497026  
2023-11-20 15:29:57.218500647  goroutine 121 [runnable]:
2023-11-20 15:29:57.218505975  io.ReadAtLeast({0xd223c0, 0xc00022e3c0}, {0xc00509ec00, 0x5c0, 0x5c0}, 0x5c0)
2023-11-20 15:29:57.218510007  	io/io.go:329 +0x190
2023-11-20 15:29:57.218513749  io.ReadFull(...)
2023-11-20 15:29:57.218517558  	io/io.go:354
2023-11-20 15:29:57.218522378  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000132c60)
2023-11-20 15:29:57.218526666  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:233 +0x457
2023-11-20 15:29:57.218530758  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000132c60)
2023-11-20 15:29:57.218638906  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.218644290  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2990, {0xd28040?, 0xc000132c60?}, 0x1)
2023-11-20 15:29:57.218647481  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.218650973  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 63
2023-11-20 15:29:57.218654171  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.218656694  
2023-11-20 15:29:57.218659556  goroutine 3028 [syscall, 156 minutes]:
2023-11-20 15:29:57.218663291  syscall.Syscall6(0x50c11f?, 0xc0016de610?, 0x50c407?, 0xc0016de610?, 0x50d865?, 0xc0018b2080?, 0xc0016de6a8?)
2023-11-20 15:29:57.218666248  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:57.218669347  os.(*Process).blockUntilWaitable(0xc000f800f0)
2023-11-20 15:29:57.218672153  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:57.218675079  os.(*Process).wait(0xc000f800f0)
2023-11-20 15:29:57.218677931  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:57.218680685  os.(*Process).Wait(...)
2023-11-20 15:29:57.218768081  	os/exec.go:134
2023-11-20 15:29:57.218773887  os/exec.(*Cmd).Wait(0xc00022c9a0)
2023-11-20 15:29:57.218777987  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:57.218782556  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:57.218786817  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:57.218791433  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 3027
2023-11-20 15:29:57.218796482  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:57.218799953  
2023-11-20 15:29:57.218803937  goroutine 4771 [runnable]:
2023-11-20 15:29:57.218809285  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000168160)
2023-11-20 15:29:57.218813941  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:240 +0x61b
2023-11-20 15:29:57.218818908  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000168160)
2023-11-20 15:29:57.218823711  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.218829418  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2360, {0xd28040?, 0xc000168160?}, 0x19)
2023-11-20 15:29:57.218833782  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.218839169  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 4725
2023-11-20 15:29:57.218971511  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.218975475  
2023-11-20 15:29:57.218978373  goroutine 4726 [syscall, 2 minutes]:
2023-11-20 15:29:57.218982022  syscall.Syscall6(0x7f9f71471890?, 0xc000edb6a4?, 0x0?, 0x0?, 0xc000edb618?, 0x41d236?, 0x11dea40?)
2023-11-20 15:29:57.218984878  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:57.218987838  os.(*Process).blockUntilWaitable(0xc002258060)
2023-11-20 15:29:57.218990647  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:57.218993533  os.(*Process).wait(0xc002258060)
2023-11-20 15:29:57.218996336  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:57.218999078  os.(*Process).Wait(...)
2023-11-20 15:29:57.219001706  	os/exec.go:134
2023-11-20 15:29:57.219004632  os/exec.(*Cmd).Wait(0xc00020adc0)
2023-11-20 15:29:57.219007450  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:57.219010644  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:57.219013856  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:57.219017257  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 4725
2023-11-20 15:29:57.219020470  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:57.219022937  
2023-11-20 15:29:57.219025731  goroutine 4276 [runnable]:
2023-11-20 15:29:57.219152885  
2023-11-20 15:29:57.219155651  goroutine 2999 [runnable]:
2023-11-20 15:29:57.219158719  internal/poll.runtime_pollWait(0x7f9f718189c8, 0x72)
2023-11-20 15:29:57.219161620  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:57.219164876  internal/poll.(*pollDesc).wait(0xc0018b2200?, 0xc000135000?, 0x0)
2023-11-20 15:29:57.219167836  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:57.219170753  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:57.219173688  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:57.219177012  internal/poll.(*FD).Read(0xc0018b2200, {0xc000135000, 0x1000, 0x1000})
2023-11-20 15:29:57.219180064  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:57.219183249  net.(*netFD).Read(0xc0018b2200, {0xc000135000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:57.219186086  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:57.219189311  net.(*conn).Read(0xc00165a0a8, {0xc000135000?, 0xc0018b2200?, 0x0?})
2023-11-20 15:29:57.219192018  	net/net.go:179 +0x45
2023-11-20 15:29:57.219195092  bufio.(*Reader).fill(0xc001a03440)
2023-11-20 15:29:57.219197944  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:57.219200812  bufio.(*Reader).Peek(0xc001a03440, 0x4)
2023-11-20 15:29:57.219203603  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:57.219206858  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc000132000)
2023-11-20 15:29:57.219209914  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:57.219213154  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000132000)
2023-11-20 15:29:57.219216290  	github.com/AlexxIT/go2rtc/pkg/rtsp/producer.go:79 +0x4c
2023-11-20 15:29:57.219220035  github.com/AlexxIT/go2rtc/internal/streams.(*Producer).worker(0xc0001d2630, {0xd28040?, 0xc000132000?}, 0x7)
2023-11-20 15:29:57.219223213  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:162 +0x2f
2023-11-20 15:29:57.219226693  created by github.com/AlexxIT/go2rtc/internal/streams.(*Producer).start in goroutine 3027
2023-11-20 15:29:57.219229976  	github.com/AlexxIT/go2rtc/internal/streams/producer.go:158 +0x1ae
2023-11-20 15:29:57.219232462  
2023-11-20 15:29:57.219235287  goroutine 2998 [chan receive]:
2023-11-20 15:29:57.219238524  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.219241604  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.219245059  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 3027
2023-11-20 15:29:57.219248170  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.219250622  
2023-11-20 15:29:57.219253370  goroutine 3027 [IO wait]:
2023-11-20 15:29:57.219256466  internal/poll.runtime_pollWait(0x7f9f717e3a90, 0x72)
2023-11-20 15:29:57.219259374  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:57.219262586  internal/poll.(*pollDesc).wait(0xc0018b2180?, 0xc000228000?, 0x0)
2023-11-20 15:29:57.219265534  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:57.219268442  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:57.219271334  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:57.219274559  internal/poll.(*FD).Read(0xc0018b2180, {0xc000228000, 0x1000, 0x1000})
2023-11-20 15:29:57.219277540  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:57.219280789  net.(*netFD).Read(0xc0018b2180, {0xc000228000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:57.219283522  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:57.219286848  net.(*conn).Read(0xc00165a060, {0xc000228000?, 0xc0018b2180?, 0xc001b6e004?})
2023-11-20 15:29:57.219289614  	net/net.go:179 +0x45
2023-11-20 15:29:57.219292586  bufio.(*Reader).fill(0xc001a03380)
2023-11-20 15:29:57.219295516  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:57.219298449  bufio.(*Reader).Peek(0xc001a03380, 0x4)
2023-11-20 15:29:57.219301227  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:57.219304394  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00022c000)
2023-11-20 15:29:57.219307498  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:57.219310701  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc00022c000)
2023-11-20 15:29:57.219313781  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:57.219317098  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:57.219320270  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2023-11-20 15:29:57.219322760  
2023-11-20 15:29:57.219325489  goroutine 4729 [syscall]:
2023-11-20 15:29:57.219328929  syscall.Syscall6(0x37e11d600?, 0x0?, 0x0?, 0x0?, 0x50d865?, 0xc00068c080?, 0xc0004e9ea8?)
2023-11-20 15:29:57.219331855  	syscall/syscall_linux.go:91 +0x30
2023-11-20 15:29:57.219334954  os.(*Process).blockUntilWaitable(0xc002258120)
2023-11-20 15:29:57.219337773  	os/wait_waitid.go:32 +0x76
2023-11-20 15:29:57.219340671  os.(*Process).wait(0xc002258120)
2023-11-20 15:29:57.219343475  	os/exec_unix.go:22 +0x25
2023-11-20 15:29:57.219346235  os.(*Process).Wait(...)
2023-11-20 15:29:57.219349367  	os/exec.go:134
2023-11-20 15:29:57.219353521  os/exec.(*Cmd).Wait(0xc000132420)
2023-11-20 15:29:57.219357450  	os/exec/exec.go:890 +0x45
2023-11-20 15:29:57.219362121  github.com/AlexxIT/go2rtc/internal/exec.handleRTSP.func2()
2023-11-20 15:29:57.219366853  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:118 +0x36
2023-11-20 15:29:57.219371773  created by github.com/AlexxIT/go2rtc/internal/exec.handleRTSP in goroutine 46
2023-11-20 15:29:57.219376432  	github.com/AlexxIT/go2rtc/internal/exec/exec.go:117 +0x3a6
2023-11-20 15:29:57.219379537  
2023-11-20 15:29:57.219383836  goroutine 4770 [chan receive]:
2023-11-20 15:29:57.219388774  github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
2023-11-20 15:29:57.219392885  	github.com/AlexxIT/go2rtc/pkg/core/track.go:142 +0x71
2023-11-20 15:29:57.219397817  created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 4725
2023-11-20 15:29:57.219401968  	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x359
2023-11-20 15:29:57.219405592  
2023-11-20 15:29:57.219409411  goroutine 4725 [IO wait]:
2023-11-20 15:29:57.219414191  internal/poll.runtime_pollWait(0x7f9f716bd3f0, 0x72)
2023-11-20 15:29:57.219418397  	runtime/netpoll.go:343 +0x85
2023-11-20 15:29:57.219422821  internal/poll.(*pollDesc).wait(0xc000aa4000?, 0xc00187f000?, 0x0)
2023-11-20 15:29:57.219427264  	internal/poll/fd_poll_runtime.go:84 +0x27
2023-11-20 15:29:57.219431600  internal/poll.(*pollDesc).waitRead(...)
2023-11-20 15:29:57.219435744  	internal/poll/fd_poll_runtime.go:89
2023-11-20 15:29:57.219440597  internal/poll.(*FD).Read(0xc000aa4000, {0xc00187f000, 0x1000, 0x1000})
2023-11-20 15:29:57.219445000  	internal/poll/fd_unix.go:164 +0x27a
2023-11-20 15:29:57.219449832  net.(*netFD).Read(0xc000aa4000, {0xc00187f000?, 0x0?, 0x50c8a0?})
2023-11-20 15:29:57.219453872  	net/fd_posix.go:55 +0x25
2023-11-20 15:29:57.219458936  net.(*conn).Read(0xc00165a008, {0xc00187f000?, 0xc000aa4000?, 0x1173b28?})
2023-11-20 15:29:57.219462785  	net/net.go:179 +0x45
2023-11-20 15:29:57.219466982  bufio.(*Reader).fill(0xc000cbc3c0)
2023-11-20 15:29:57.219470964  	bufio/bufio.go:113 +0x103
2023-11-20 15:29:57.219475299  bufio.(*Reader).Peek(0xc000cbc3c0, 0x4)
2023-11-20 15:29:57.219479681  	bufio/bufio.go:151 +0x53
2023-11-20 15:29:57.219485001  github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Handle(0xc00020a580)
2023-11-20 15:29:57.219489970  	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:149 +0x205
2023-11-20 15:29:57.219494822  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc00020a580)
2023-11-20 15:29:57.219499368  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:241 +0x2ac
2023-11-20 15:29:57.219504294  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2023-11-20 15:29:57.219508928  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45

@adamsteinbok
Copy link
Author

adamsteinbok commented Nov 20, 2023

I can't say for sure, but this could be an issue with the senders replacement handling?
To me, it looks like the "target" receiver using a separate mutex to the "initial" receiver (combined with maps always being passed by reference) creates a window where goroutines in both the "target" receiver and the "initial" receiver can take a lock on the same map reference.

@AlexxIT AlexxIT added bug Something isn't working panic labels Nov 21, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 21, 2023

What version go2rtc are you using?

@adamsteinbok
Copy link
Author

V1.8.2

@af7567
Copy link

af7567 commented Apr 8, 2024

I got this error today after a camera was offline for a couple of minutes and go2rtc failed to reconnect. Using version 1.8.4 with Frigate 0.13.2. Trying to look at the stream info while "json locked" gave internal server error, shortly after that I got the fatal error.

2024-04-08 11:24:54.712047300  11:24:54.711 WRN [streams] json locked
2024-04-08 11:25:24.723774880  11:25:24.723 WRN [streams] json locked
2024-04-08 11:25:54.735281460  11:25:54.735 WRN [streams] json locked
2024-04-08 11:26:11.823434275  11:26:11.823 WRN [streams] json locked
2024-04-08 11:26:24.746689036  11:26:24.746 WRN [streams] json locked
2024-04-08 11:26:54.757179897  11:26:54.757 WRN [streams] json locked
2024-04-08 11:27:24.769361221  11:27:24.769 WRN [streams] json locked
2024-04-08 11:27:54.779821296  11:27:54.779 WRN [streams] json locked
2024-04-08 11:28:24.789908045  11:28:24.789 WRN [streams] json locked
2024-04-08 11:28:54.801479299  11:28:54.801 WRN [streams] json locked
2024-04-08 11:29:24.812494314  11:29:24.812 WRN [streams] json locked
2024-04-08 11:29:54.822470704  11:29:54.822 WRN [streams] json locked
2024-04-08 11:30:24.834084967  11:30:24.834 WRN [streams] json locked
2024-04-08 11:30:54.845050664  11:30:54.844 WRN [streams] json locked
2024-04-08 11:31:24.853921817  11:31:24.853 WRN [streams] json locked
2024-04-08 11:31:26.622537435  11:31:26.622 WRN [streams] json locked
2024-04-08 11:31:54.867876079  11:31:54.867 WRN [streams] json locked
2024-04-08 11:32:24.877748762  11:32:24.877 WRN [streams] json locked
2024-04-08 11:32:54.887888699  11:32:54.887 WRN [streams] json locked
2024-04-08 11:33:24.898846654  11:33:24.898 WRN [streams] json locked
2024-04-08 11:33:52.344518331  11:33:52.344 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:56706: write: broken pipe"
2024-04-08 11:33:54.910451376  11:33:54.910 WRN [streams] json locked
2024-04-08 11:34:24.921535621  11:34:24.921 WRN [streams] json locked
2024-04-08 11:34:54.931629082  11:34:54.931 WRN [streams] json locked
2024-04-08 11:35:14.182711589  11:35:14.182 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:52686: write: broken pipe"
2024-04-08 11:35:14.182988297  11:35:14.182 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:42836: write: broken pipe"
2024-04-08 11:35:14.182995910  11:35:14.182 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:42808: write: broken pipe"
2024-04-08 11:35:14.183003453  11:35:14.182 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:42828: write: broken pipe"
2024-04-08 11:35:14.183009599  11:35:14.182 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:40768: write: broken pipe"
2024-04-08 11:35:14.183021472  fatal error: concurrent map iteration and map write
2024-04-08 11:35:14.186208786  
2024-04-08 11:35:14.186216817  goroutine 4264 [running]:
2024-04-08 11:35:14.186251877  github.com/AlexxIT/go2rtc/pkg/core.(*Receiver).Senders(0xc0002485c0)
2024-04-08 11:35:14.186257045  	github.com/AlexxIT/go2rtc/pkg/core/track.go:55 +0xa6
2024-04-08 11:35:14.186262772  github.com/AlexxIT/go2rtc/internal/streams.(*Stream).stopProducers(0xc000117a00)
2024-04-08 11:35:14.186370187  	github.com/AlexxIT/go2rtc/internal/streams/stream.go:89 +0x135
2024-04-08 11:35:14.186374936  github.com/AlexxIT/go2rtc/internal/streams.(*Stream).RemoveConsumer(0xc000117a00, {0xd2bc30, 0xc000da1600})
2024-04-08 11:35:14.186404688  	github.com/AlexxIT/go2rtc/internal/streams/stream.go:63 +0x232
2024-04-08 11:35:14.186409926  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler.func1.1()
2024-04-08 11:35:14.186415095  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:197 +0x25
2024-04-08 11:35:14.186420263  github.com/AlexxIT/go2rtc/internal/rtsp.tcpHandler(0xc000da1600)
2024-04-08 11:35:14.186425571  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:228 +0x21d
2024-04-08 11:35:14.186430669  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1 in goroutine 7
2024-04-08 11:35:14.186448199  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:75 +0x45
2024-04-08 11:35:14.186453437  
2024-04-08 11:35:14.186458675  goroutine 1 [chan receive, 714 minutes]:
2024-04-08 11:35:14.186463773  github.com/AlexxIT/go2rtc/pkg/shell.RunUntilSignal()
2024-04-08 11:35:14.186469012  	github.com/AlexxIT/go2rtc/pkg/shell/shell.go:71 +0x86
2024-04-08 11:35:14.186474250  main.main()
2024-04-08 11:35:14.186479418  	github.com/AlexxIT/go2rtc/main.go:92 +0x397
2024-04-08 11:35:14.186484656  
2024-04-08 11:35:14.186489824  goroutine 6 [IO wait]:
2024-04-08 11:35:14.186495062  internal/poll.runtime_pollWait(0x7f8bf9364918, 0x72)
2024-04-08 11:35:14.186499811  	runtime/netpoll.go:343 +0x85
2024-04-08 11:35:14.186504979  internal/poll.(*pollDesc).wait(0xc0000aa000?, 0x4?, 0x0)
2024-04-08 11:35:14.186510148  	internal/poll/fd_poll_runtime.go:84 +0x27
2024-04-08 11:35:14.186515386  internal/poll.(*pollDesc).waitRead(...)
2024-04-08 11:35:14.186550446  	internal/poll/fd_poll_runtime.go:89
2024-04-08 11:35:14.186780850  internal/poll.(*FD).Accept(0xc0000aa000)
2024-04-08 11:35:14.186786018  	internal/poll/fd_unix.go:611 +0x2ac
2024-04-08 11:35:14.186791186  net.(*netFD).accept(0xc0000aa000)
2024-04-08 11:35:14.186796424  	net/fd_unix.go:172 +0x29
2024-04-08 11:35:14.186801592  net.(*TCPListener).accept(0xc0000c2000)
2024-04-08 11:35:14.186806830  	net/tcpsock_posix.go:152 +0x1e
2024-04-08 11:35:14.186811580  net.(*TCPListener).Accept(0xc0000c2000)
2024-04-08 11:35:14.186816748  	net/tcpsock.go:315 +0x30
2024-04-08 11:35:14.186822056  net/http.(*Server).Serve(0xc0000d2000, {0xd2bdb0, 0xc0000c2000})
2024-04-08 11:35:14.186827154  	net/http/server.go:3056 +0x364
2024-04-08 11:35:14.186832392  github.com/AlexxIT/go2rtc/internal/api.listen({0xc120c2, 0x3}, {0xc12d8f, 0x5})
2024-04-08 11:35:14.186837560  	github.com/AlexxIT/go2rtc/internal/api/api.go:99 +0x185
2024-04-08 11:35:14.186842798  created by github.com/AlexxIT/go2rtc/internal/api.Init in goroutine 1
2024-04-08 11:35:14.186848036  	github.com/AlexxIT/go2rtc/internal/api/api.go:71 +0x4d0
2024-04-08 11:35:14.186853204  
2024-04-08 11:35:14.186858373  goroutine 7 [IO wait]:
2024-04-08 11:35:14.186863192  internal/poll.runtime_pollWait(0x7f8bf9364820, 0x72)
2024-04-08 11:35:14.186868290  	runtime/netpoll.go:343 +0x85
2024-04-08 11:35:14.186899998  internal/poll.(*pollDesc).wait(0xc000156900?, 0x4336aa?, 0x0)
2024-04-08 11:35:14.186905306  	internal/poll/fd_poll_runtime.go:84 +0x27
2024-04-08 11:35:14.186910404  internal/poll.(*pollDesc).waitRead(...)
2024-04-08 11:35:14.186915642  	internal/poll/fd_poll_runtime.go:89
2024-04-08 11:35:14.186920880  internal/poll.(*FD).Accept(0xc000156900)
2024-04-08 11:35:14.186925559  	internal/poll/fd_unix.go:611 +0x2ac
2024-04-08 11:35:14.186943578  net.(*netFD).accept(0xc000156900)
2024-04-08 11:35:14.186948746  	net/fd_unix.go:172 +0x29
2024-04-08 11:35:14.186953565  net.(*TCPListener).accept(0xc000034c20)
2024-04-08 11:35:14.186958664  	net/tcpsock_posix.go:152 +0x1e
2024-04-08 11:35:14.186963902  net.(*TCPListener).Accept(0xc000034c20)
2024-04-08 11:35:14.186969070  	net/tcpsock.go:315 +0x30
2024-04-08 11:35:14.186974308  github.com/AlexxIT/go2rtc/internal/rtsp.Init.func1()
2024-04-08 11:35:14.186979546  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:64 +0x55
2024-04-08 11:35:14.186984714  created by github.com/AlexxIT/go2rtc/internal/rtsp.Init in goroutine 1
2024-04-08 11:35:14.186989952  	github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:62 +0x475
2024-04-08 11:35:14.186995190  
2024-04-08 11:35:14.187000289  goroutine 8 [IO wait, 714 minutes]:
2024-04-08 11:35:14.187005527  internal/poll.runtime_pollWait(0x7f8bf9364728, 0x72)
2024-04-08 11:35:14.187010276  	runtime/netpoll.go:343 +0x85
2024-04-08 11:35:14.187015444  internal/poll.(*pollDesc).wait(0xc000156b00?, 0x0?, 0x0)
2024-04-08 11:35:14.187020682  	internal/poll/fd_poll_runtime.go:84 +0x27
2024-04-08 11:35:14.187025920  internal/poll.(*pollDesc).waitRead(...)
2024-04-08 11:35:14.187031088  	internal/poll/fd_poll_runtime.go:89
2024-04-08 11:35:14.187036326  internal/poll.(*FD).Accept(0xc000156b00)
2024-04-08 11:35:14.187041495  	internal/poll/fd_unix.go:611 +0x2ac
2024-04-08 11:35:14.187046663  net.(*netFD).accept(0xc000156b00)
2024-04-08 11:35:14.187051901  	net/fd_unix.go:172 +0x29
2024-04-08 11:35:14.187057069  net.(*TCPListener).accept(0xc000034d40)
2024-04-08 11:35:14.187061888  	net/tcpsock_posix.go:152 +0x1e
2024-04-08 11:35:14.187067056  net.(*TCPListener).Accept(0xc000034d40)
2024-04-08 11:35:14.187072225  	net/tcpsock.go:315 +0x30
2024-04-08 11:35:14.187077532  github.com/pion/ice/v2.(*TCPMuxDefault).start(0xc000117f80)
2024-04-08 11:35:14.187082631  	github.com/pion/ice/v2@v2.3.11/tcp_mux.go:82 +0xd3
2024-04-08 11:35:14.187087869  github.com/pion/ice/v2.NewTCPMuxDefault.func1()
2024-04-08 11:35:14.187093107  	github.com/pion/ice/v2@v2.3.11/tcp_mux.go:73 +0x4f
2024-04-08 11:35:14.187098275  created by github.com/pion/ice/v2.NewTCPMuxDefault in goroutine 1
2024-04-08 11:35:14.187103513  	github.com/pion/ice/v2@v2.3.11/tcp_mux.go:71 +0x19b
2024-04-08 11:35:14.187108681  
2024-04-08 11:35:14.187113849  goroutine 17 [syscall, 714 minutes]:
2024-04-08 11:35:14.187118668  os/signal.signal_recv()
2024-04-08 11:35:14.187124256  	runtime/sigqueue.go:152 +0x29
2024-04-08 11:35:14.187129005  os/signal.loop()
2024-04-08 11:35:14.187134243  	os/signal/signal_unix.go:23 +0x13
2024-04-08 11:35:14.187139411  created by os/signal.Notify.func1.1 in goroutine 1
2024-04-08 11:35:14.187144649  	os/signal/signal.go:151 +0x1f

......

@AlexxIT
Copy link
Owner

AlexxIT commented Jun 6, 2024

I hope this is finally fixed https://github.com/AlexxIT/go2rtc/releases/tag/v1.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working panic
Projects
None yet
Development

No branches or pull requests

3 participants