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

After enabling http-flv, SRS often exits automatically. #666

Closed
jiangzhibin opened this issue Oct 11, 2016 · 4 comments
Closed

After enabling http-flv, SRS often exits automatically. #666

jiangzhibin opened this issue Oct 11, 2016 · 4 comments
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@jiangzhibin
Copy link

jiangzhibin commented Oct 11, 2016

The current version being used is SRS 2.0 with http-flv. After running the command "./objs/srs -c conf/http.flv.live.conf" for a while, it will unexpectedly exit (this situation occurs frequently). There are no relevant logs in the srs.log file.

To compile, use the command "./configure --with-ssl --with-hls --with-ssl --with-nginx --with-http-server --with-http-api --with-http-callback && make".

Configuration file:
listen 1935;
max_connections 1000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
vhost defaultVhost {
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
hstrs on;
}

}

In the srs.log file, it can be seen that a few minutes ago the streaming was being pushed normally. When the streaming cannot be pushed, it is found that srs has already exited. Checking the srs.log file, there are no relevant logs indicating the exit of srs.

You can try running the command "ulimit -c unlimited" and then running srs. After srs exits, switch to the root directory and execute "find / -name core.*" to check if there is a core file for srs.

Is there any way to determine the cause of the automatic exit?

(It has been tested that when not using http-flv and using the configuration "./configure --with-ssl --with-hls --with-nginx --with-http-callback && make" with the hls.conf configuration to start srs, srs runs very stable and the above problem has not occurred.)

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Oct 11, 2016

Where are the versions and logs?

TRANS_BY_GPT3

@winlinvip winlinvip added this to the srs 2.0 release milestone Oct 11, 2016
@flhcd
Copy link

flhcd commented Oct 13, 2016

I also encountered this phenomenon, and version 2.0.219 also had this problem. The specific testing process is as follows:
The client sends an RTMP stream (rtmp://channellive.ds.com/live/test2) to the SRS server and stops for 30 seconds.

SRS destructed srssource. When the client sends another RTMP stream (rtmp://channellive.ds.com/live/test2) to the SRS server, if there is an HTTP-FLV request (http://channellive.ds.com:8080/live/test2.flv), the program throws an error, and the error is located at line 486 of the srs_app_http_stream.cpp file (using a released source pointer).
if ((ret = source->create_consumer(NULL, consumer, true, true, !enc->has_cache())) != ERROR_SUCCESS)
)

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Oct 14, 2016

Let's take a look.

TRANS_BY_GPT3

@winlinvip winlinvip added the Bug It might be a bug. label Oct 14, 2016
winlinvip pushed a commit that referenced this issue Oct 26, 2016
… it through http-flv will cause a core dump(#666)
@winlinvip
Copy link
Member

winlinvip commented Oct 26, 2016

Fixed by 4f09bcc in 2.0.220

@winlinvip winlinvip self-assigned this Sep 23, 2021
@winlinvip winlinvip changed the title 启用http-flv后,srs经常自动退出 After enabling http-flv, SRS often exits automatically. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants