go2rtc
go2rtc copied to clipboard
Error: "WRN [streams] start error="wrong request:" and app restarts
I'm getting the below issue occasionally when trying to access the feed with 2-way audio over an iframe in Home Assistant with Chrome or Firefox browser on Android. After the error you can see the container restarts.
My camera is Amcrest AD410.
10:45:33.820 WRN [streams] start error="wrong request: n�8h(BF��~�?����A57O\x11{��\x02Z��̧���.Ý\x11\x1bcU��z)J-áW��\x00E����\r�5>\x10��\x13ԩ\x1f�w�\x1f�4nc��i_�{\x1c`CX�U\x14�����y�r��\\�l�\x11�Ft�\x1a��\x1ec\v��*q����w����ER�b�l#=�\x1d�\x04h.��\x0f\x13=�W�w\x11\x0f�b��Q\x0f^��� ���(E?\r�0�@\x15|��l��|kl�����k��ҕ49^�*�e��֓1�Fc�\ue734�z�" url=rtsp://username:[email protected]:554/cam/realmonitor?channel=1&subtype=0&
10:45:33.835 WRN [stream] can't get track
TODO: webrtc ontrack &{mu:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:0 readerWait:0} id:8933a9c2-9d5c-46dc-a86e-3a6fe560df49 streamID:rcYsbY1KBrp5Jr9xFOTvGYSqqA9RaWO1qy25 payloadType:111 kind:1 ssrc:1567801727 codec:{RTPCodecCapability:{MimeType:audio/opus ClockRate:48000 Channels:2 SDPFmtpLine:minptime=10;useinbandfec=1 RTCPFeedback:[{Type:transport-cc Parameter:}]} PayloadType:111 statsID:} params:{HeaderExtensions:[{URI:http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 ID:4}] Codecs:[{RTPCodecCapability:{MimeType:audio/opus ClockRate:48000 Channels:2 SDPFmtpLine:minptime=10;useinbandfec=1 RTCPFeedback:[{Type:transport-cc Parameter:}]} PayloadType:111 statsID:}]} rid: receiver:0xc00060e780 peeked:[144 239 120 103 177 162 59 230 93 114 193 127 190 222 0 1 65 0 1 0 120 11 228 85 191 20 152 128 206 183 14 66 117 174 34 10 187 202 234 64 5 37 0 0 0 0 0 0 0 0 0 143] peekedAttributes:map[0:0xc000218780]}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x604311]
goroutine 711 [running]:
github.com/AlexxIT/go2rtc/cmd/streams.(*Stream).RemoveConsumer(0xc000138f30, {0xc4e430?, 0xc0000a2000})
github.com/AlexxIT/go2rtc/cmd/streams/stream.go:130 +0x251
github.com/AlexxIT/go2rtc/cmd/rtsp.worker.func1.1.1()
github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:146 +0x28
github.com/AlexxIT/go2rtc/cmd/rtsp.worker.func1({0xb324c0?, 0xc000210008})
github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:186 +0x484
github.com/AlexxIT/go2rtc/pkg/streamer.(*Element).Fire(...)
github.com/AlexxIT/go2rtc/pkg/streamer/streamer.go:27
github.com/AlexxIT/go2rtc/pkg/tcp.(*Server).Serve.func1()
github.com/AlexxIT/go2rtc/pkg/tcp/server.go:28 +0x6f
created by github.com/AlexxIT/go2rtc/pkg/tcp.(*Server).Serve
github.com/AlexxIT/go2rtc/pkg/tcp/server.go:27 +0x25
10:45:41.870 INF [api] listen addr=:1984
10:45:41.871 INF [rtsp] listen addr=:8554
10:45:41.872 INF [webrtc] listen addr=:8555
10:45:41.872 INF [srtp] listen addr=:8443