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: Overwriting old page for..." #170

Open
jjbarbosa7 opened this issue Apr 25, 2023 · 4 comments
Open

"ERROR: Overwriting old page for..." #170

jjbarbosa7 opened this issue Apr 25, 2023 · 4 comments

Comments

@jjbarbosa7
Copy link

Seeing this error logged regularly during my testing (of an RTSP/H.264 input stream). Had a quick look at shared_memory.cpp; it doesn't appear to break any functionality, but I thought I'd report it anyway.

@jjbarbosa7
Copy link
Author

jjbarbosa7 commented Apr 26, 2023

Adding log for reference:

[2023-04-26 07:07:50] MistController (36642) INFO: Starting /usr/local/src/mistserver/build/MistInRTSP -s d1_0517n_75_alligator_alley_m052 rtsp://address.stream (../lib/stream.cpp:633)
[2023-04-26 07:07:50] MistOutTSSRT (36641) INFO: Listener SRT socket sucess @ 0.0.0.0:8889 (../lib/socket_srt.cpp:248)
[2023-04-26 07:07:50] MistInRTSP:d1_0517n_75_m052 (36642) INFO: Input booting (../src/input/input.cpp:353)
[2023-04-26 07:07:50] MistInRTSP:d1_0517n_75_m052 (36642) ERROR: Overwriting old page for MstPPIDd1_0517n_75_m052 (../lib/shared_memory.cpp:494)
[2023-04-26 07:07:50] MistInRTSP:d1_0517n_75_m052 (36646) INFO: Starting stream (../src/input/input.cpp:617)
[2023-04-26 07:07:50] MistInRTSP:d1_0517n_75_m052 (36648) INFO: Starting /usr/local/src/mistserver/build/MistInBuffer -s d1_0517n_75_m052 push://INTERNAL_ONLY:rtsp://address.stream (../lib/stream.cpp:633)
[2023-04-26 07:07:50] MistInBuffer:d1_0517n_75_m052 (36648) INFO: Input booting (../src/input/input.cpp:353)
[2023-04-26 07:07:50] MistInBuffer:d1_0517n_75_m052 (36648) ERROR: Overwriting old page for MstIPIDd1_0517n_75_m052 (../lib/shared_memory.cpp:494)
[2023-04-26 07:07:50] MistInBuffer:d1_0517n_75_m052 (36649) ERROR: Overwriting old page for MstSTATEd1_0517n_75_m052 (../lib/shared_memory.cpp:494)

[2023-04-26 07:07:50] MistInBuffer:d1_0517n_75_m052 (36649) INFO: Starting serve (../src/input/input.cpp:621)
[2023-04-26 07:07:50] MistInBuffer:d1_0517n_75_m052 (36649) INFO: Input started (../src/input/input.cpp:740)
[2023-04-26 07:07:50] MistInBuffer:d1_0517n_75_m052 (36649) INFO: Setting maxKeepAway from 0 to new value of 45000 (../src/input/input_buffer.cpp:577)
[2023-04-26 07:07:51] MistController (36576) INFO: Starting always-on input d1_0631s_75_m063: rtsp://address.stream (../src/controller/controller_streams.cpp:168)
[2023-04-26 07:07:51] MistController (36650) INFO: Starting /usr/local/src/mistserver/build/MistInRTSP -s d1_0631s_75_m063 rtsp://address.stream (../lib/stream.cpp:633)
[2023-04-26 07:07:51] MistInRTSP:d1_0631s_75_m063 (36650) INFO: Input booting (../src/input/input.cpp:353)
[2023-04-26 07:07:51] MistInRTSP:d1_0631s_75_m063 (36650) ERROR: Overwriting old page for MstPPIDd1_0631s_75_m063 (../lib/shared_memory.cpp:494)
[2023-04-26 07:07:51] MistInRTSP:d1_0631s_75_m063 (36651) INFO: Starting stream (../src/input/input.cpp:617)
[2023-04-26 07:07:51] MistInRTSP:d1_0631s_75_m063 (36653) INFO: Starting /usr/local/src/mistserver/build/MistInBuffer -s d1_0631s_75_m063 push://INTERNAL_ONLY:rtsp://address.stream (../lib/stream.cpp:633)
[2023-04-26 07:07:51] MistInBuffer:d1_0631s_75_m063 (36653) INFO: Input booting (../src/input/input.cpp:353)
[2023-04-26 07:07:51] MistInBuffer:d1_0631s_75_m063 (36653) ERROR: Overwriting old page for MstIPIDd1_0631s_75_m063 (../lib/shared_memory.cpp:494)
[2023-04-26 07:07:51] MistInBuffer:d1_0631s_75_m063 (36654) ERROR: Overwriting old page for MstSTATEd1_0631s_75_m063 (../lib/shared_memory.cpp:494)

[2023-04-26 07:07:51] MistInRTSP:d1_0517n_75_m052 (36646) INFO: Input started (../src/input/input.cpp:865)
[2023-04-26 07:07:51] MistInBuffer:d1_0631s_75_m063 (36654) INFO: Starting serve (../src/input/input.cpp:621)
[2023-04-26 07:07:51] MistInBuffer:d1_0631s_75_m063 (36654) INFO: Input started (../src/input/input.cpp:740)
[2023-04-26 07:07:51] MistInBuffer:d1_0631s_75_m063 (36654) INFO: Setting maxKeepAway from 0 to new value of 45000 (../src/input/input_buffer.cpp:577)
[2023-04-26 07:07:51] MistController (36576) INFO: Starting always-on input d1_1742n_75_no_m174: rtsp://address.stream (../src/controller/controller_streams.cpp:168)
[2023-04-26 07:07:51] MistController (36655) INFO: Starting /usr/local/src/mistserver/build/MistInRTSP -s d1_1742n_75_no_m174 rtsp://address.stream (../lib/stream.cpp:633)
[2023-04-26 07:07:51] MistInRTSP:d1_1742n_75_no_m174 (36655) INFO: Input booting (../src/input/input.cpp:353)
[2023-04-26 07:07:51] MistInRTSP:d1_1742n_75_no_m174 (36655) ERROR: Overwriting old page for MstPPIDd1_1742n_75_no_m174 (../lib/shared_memory.cpp:494)
[2023-04-26 07:07:51] MistInRTSP:d1_1742n_75_no_m174 (36656) INFO: Starting stream (../src/input/input.cpp:617)
[2023-04-26 07:07:51] MistInRTSP:d1_0631s_75_m063 (36651) INFO: Input started (../src/input/input.cpp:865)
[2023-04-26 07:07:51] MistInRTSP:d1_1742n_75_no_m174 (36658) INFO: Starting /usr/local/src/mistserver/build/MistInBuffer -s d1_1742n_75_no_m174 push://INTERNAL_ONLY:rtsp://address.stream (../lib/stream.cpp:633)
[2023-04-26 07:07:51] MistInBuffer:d1_1742n_75_no_m174 (36658) INFO: Input booting (../src/input/input.cpp:353)
[2023-04-26 07:07:51] MistInBuffer:d1_1742n_75_no_m174 (36658) ERROR: Overwriting old page for MstIPIDd1_1742n_75_no_m174 (../lib/shared_memory.cpp:494)
[2023-04-26 07:07:51] MistInBuffer:d1_1742n_75_no_m174 (36659) ERROR: Overwriting old page for MstSTATEd1_1742n_75_no_m174 (../lib/shared_memory.cpp:494)

[2023-04-26 07:07:51] MistInBuffer:d1_1742n_75_no_m174 (36659) INFO: Starting serve (../src/input/input.cpp:621)
[2023-04-26 07:07:51] MistInBuffer:d1_1742n_75_no_m174 (36659) INFO: Input started (../src/input/input.cpp:740)
[2023-04-26 07:07:51] MistInBuffer:d1_1742n_75_no_m174 (36659) INFO: Setting maxKeepAway from 0 to new value of 45000 (../src/input/input_buffer.cpp:577)
[2023-04-26 07:07:51] MistInRTSP:d1_1742n_75_no_m174 (36656) INFO: Input started (../src/input/input.cpp:865)
[2023-04-26 07:07:52] MistInRTSP:d1_0517n_75_m052 (36646) INFO: Changing base URL from rtsp://84-vd.zasxcd.com:1935/CHAN-1/CHAN-1_1.stream to rtsp://address.stream/ (../src/input/input_rtsp.cpp:265)

@Rokamun
Copy link
Contributor

Rokamun commented Apr 26, 2023

Hey there,

I've edited your logs to remove the actual RTSP address, just in case that those addresses are publicly available, we wouldn't want to share them with the entire world after all :)

MstIPID, MstPPID, and MstSTATE shared memory pages are harmless if they're not removed and need to be overwritten. So you're right in that it doesn't cause any issues. The reason why they might hang is if a connection breaks uncleanly. Now for RTSP (especially when UDP is used) this isn't too uncommon.
It is a known issue luckily, but because the pages are harmless it's not a high priority right now either. I imagine we should have it done before we throw out 3.3 though.

@jjbarbosa7
Copy link
Author

Thanks Balder - you're very considerate, but those weren't the real RTSP addresses (replaced with fake domain before posting) :)

@Rokamun
Copy link
Contributor

Rokamun commented Apr 26, 2023

Ah good thing you already thought of it yourself

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

No branches or pull requests

2 participants