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

Error: "WRN [streams] start error="wrong request:" and app restarts #60

Closed
conorlap opened this issue Sep 23, 2022 · 2 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@conorlap
Copy link

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:password@192.168.1.105: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

@AlexxIT AlexxIT added the bug Something isn't working label Oct 21, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 31, 2022

I hope beta.10 should fix problem.

Problem because multiple simultaneous connections with enabled backchannel.

@AlexxIT AlexxIT added this to the v0.1-rc.1 milestone Nov 4, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 4, 2022

Should be fixed in https://github.com/AlexxIT/go2rtc/releases/tag/v0.1-rc.1

@AlexxIT AlexxIT closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants