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

hi3531 runs srs on embedded system and reports srs: src/app/srs_app_utility.cpp:304: void srs_update_proc_stat(): Assertion `USER_HZ == 100' failed. #397

Closed
yukuilong opened this issue May 16, 2015 · 2 comments
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@yukuilong
Copy link

yukuilong commented May 16, 2015

System: Hisilicon hi3531 Linux embedded 32-bit system
Encoder: arm-hisiv200-linux-g++
Server: Using SRS version 0.9.213,
The configuration is as follows:

listen              1935;
max_connections     1000;
http_stream {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}
vhost __defaultVhost__ {
        enabled      on;
        gop_cache    off;
    hls {
        enabled         on;         
        hls_path        ./objs/nginx/html;
        hls_fragment    5;
        hls_window      20;
    }
}
,
srs.log partial print
1970-01-01 00:48:22.080][trace][932][0] http callback: on   f, limit: 1000      
1970-01-01 00:48:22.080][trace][932][0] http api: on                            
1970-01-01 00:48:22.080][trace][932][0] http server: on                         
1970-01-01 00:48:22.080][trace][932][0] http parser: on                         
1970-01-01 00:48:22.080][trace][932][0] dvr: on                                 
1970-01-01 00:48:22.080][trace][932][0] transcode: on                           
1970-01-01 00:48:22.080][trace][932][0] ingest: on                              
1970-01-01 00:48:22.080][trace][932][0] system stat: on                         
1970-01-01 00:48:22.080][warn][932][0][2] compile nginx: off                    
1970-01-01 00:48:22.080][trace][932][0] compile ffmpeg: on                      
1970-01-01 00:48:22.081][trace][932][0] start deamon mode...                    
1970-01-01 00:48:22.082][trace][933][0] father process exit. ret=0              
1970-01-01 00:48:22.082][trace][934][0] son(deamon) process running.            
1970-01-01 00:48:22.083][trace][934][0] write pid=934 to ./objs/srs.pid success!
1970-01-01 00:48:22.083][trace][932][0] grandpa process exit.                   
1970-01-01 00:48:22.083][trace][934][100] server main cid=100                   
1970-01-01 00:48:22.084][trace][934][101] listen cycle start, port=1935, type=0,
1970-01-01 00:48:22.094][trace][934][100] listen thread cid=101, current_cid=100
1970-01-01 00:48:22.094][trace][934][102] listen cycle start, port=8080, type=2,
1970-01-01 00:48:22.105][trace][934][100] listen thread cid=102, current_cid=100
1970-01-01 00:48:22.105][trace][934][100] signal installed                      
1970-01-01 00:48:22.125][trace][934][100] ingest thread cid=104, current_cid=100
1970-01-01 00:48:22.226][trace][934][100] USER_HZ=1000


Problem and reproduction steps:
Start ./objs/srs -c ./objs/http.hls.conf
Print the following information:
[1970-01-01 00:59:37.276][trace][944][0] config parse complete
[1970-01-01 00:59:37.277][trace][944][0] retrieve local ipv4 ip=192.168.1.54, index=0
[1970-01-01 00:59:37.277][warn][944][0][2] stats network use index=0, ip=192.168.1.54
[1970-01-01 00:59:37.277][warn][944][0][2] stats disk not configed, disk iops disabled.
[1970-01-01 00:59:37.277][trace][944][0] write log to file ./objs/srs.log
[1970-01-01 00:59:37.277][trace][944][0] you can: tailf ./objs/srs.log
[1970-01-01 00:59:37.277][trace][944][0] @see: https://github.com/winlinvip/simple-rtmp-server/wiki/SrsLog
# srs: src/app/srs_app_utility.cpp:304: void srs_update_proc_stat(): Assertion `USER_HZ == 100' failed.

Error: Assertion `USER_HZ == 100' failed in src/app/srs_app_utility.cpp:304

After looking at the source code, it seems that USER_HZ must be equal to 100. I'm not sure why it's not.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented May 16, 2015

First, we should use version 1.0 for release.
Secondly, this is a bug, and I will fix it in version 1.0.

TRANS_BY_GPT3

@winlinvip winlinvip added the Bug It might be a bug. label May 22, 2015
@winlinvip winlinvip added this to the srs 1.0 release milestone May 22, 2015
@winlinvip
Copy link
Member

winlinvip commented May 22, 2015

There are links in the code, and usually USERHZ is 100.

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Aug 26, 2021
@winlinvip winlinvip changed the title hi3531 嵌入式上运行srs 报 srs: src/app/srs_app_utility.cpp:304: void srs_update_proc_stat(): Assertion `USER_HZ == 100' failed. hi3531 runs srs on embedded system and reports srs: src/app/srs_app_utility.cpp:304: void srs_update_proc_stat(): Assertion `USER_HZ == 100' failed. 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

2 participants