oe-alliance / satip-client

GNU General Public License v2.0
8 stars 16 forks source link

possible loop rtsp.cpp #16

Open DocSnyd3r opened 5 years ago

DocSnyd3r commented 5 years ago

Hi,

my satipclient crashes (actually it goes to 100% CPU usage) when the receiver is trying to end a stream (like on standby or pvr playback).

Debug output `[956.662][2206 ../git/rtsp.cpp : 340][handleResponse ] debug: RTSP rx data end (0) [956.662][2206 ../git/rtsp.cpp : 735][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TRANSMITTING [956.662][2206 ../git/rtsp.cpp : 921][startTimerKeepAliveMessage] debug: startTimerKeepAliveMessage [957.716][2206 ../git/rtsp.cpp : 735][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TRANSMITTING [959.362][2206 ../git/vtuner.cpp : 530][vtunerEvent ] debug: MSG_SET_TONE: low [959.362][2206 ../git/rtsp.cpp : 735][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TRANSMITTING [959.362][2206 ../git/vtuner.cpp : 534][vtunerEvent ] debug: MSG_SET_VOLTAGE: 2 [959.362][2206 ../git/rtsp.cpp : 735][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TRANSMITTING [959.362][2206 ../git/rtsp.cpp : 927][stopTimerKeepAliveMessage] debug: stopTimerKeepAliveMessage [959.362][2206 ../git/rtsp.cpp : 909][startTimerResetConnect ] debug: startTimerResetConnect [959.362][2206 ../git/vtuner.cpp : 534][vtunerEvent ] debug: MSG_SET_VOLTAGE: 2 [959.362][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [959.490][2206 ../git/rtsp.cpp : 881][handlePollEvents ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [959.490][2206 ../git/rtsp.cpp : 226][handleResponse ] debug: RTSP: RX 87/0 [959.490][2206 ../git/rtsp.cpp : 256][handleResponse ] debug: RTSP rx data (0x337c1/87) : RTSP/1.0 200 OK CSeq: 24 Date: Wed, 07 Jan 1970 00:43:03 GMT Session: 710BF384

[959.490][2206 ../git/rtsp.cpp : 915][stopTimerResetConnect ] debug: stopTimerResetConnect [959.490][2206 ../git/rtsp.cpp : 340][handleResponse ] debug: RTSP rx data end (2) [959.490][2206 ../git/rtsp.cpp : 256][handleResponse ] debug: RTSP rx data ((nil)/2) :

[959.490][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [960.492][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [961.492][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [962.493][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [963.494][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [964.496][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [965.496][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [966.497][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [967.498][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [968.499][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [969.500][2206 ../git/rtsp.cpp : 769][handleRTSPStatus ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING [969.626][2206 ../git/rtsp.cpp : 881][handlePollEvents ] debug: RTSP STATUS : RTSP_STATUS_SESSION_TEARDOWNING`

Wireshark showed me two additional bytes of data in the last response, there was an additional 0d 0a after the two previous 0d 0a. So there were three 0d 0a pairs after "Session: 710BF384"

DocSnyd3r commented 5 years ago

Meanwhile I have a raspeberry with minisatip between the receiver and my satip hardware Telestar Digibit Twin which fixes the problem. But a native fix would be better.