-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compile SRS source code, DJI M30 drone RTMP streaming, service code error causing server crash. #3241
Comments
The version is too low, please update the version and try again.
|
Hello, thank you for your reply. When you mentioned that the version is too low, are you referring to whose version? 1) For SRS version, I used "git clone -b 4.0release https://gitee.com/ossrs/srs.git" to pull it. 2) For the DJI demo version, I used the version from last month, and DJI source code has been updated with three new versions in November. Are you suggesting that I update the DJI project version?
|
|
Below is the error message from the console:
|
Please upgrade to 5.0.92 and give it a try.
|
I also encountered the same problem and couldn't solve it.
|
|
Mine is version v4.0.149, it has been working fine before. It is also a drone. When streaming, it reported this error. I switched to a version v4, but now I don't have a drone at hand to test it. Let's see how the version 5.0.92 performs in your afternoon testing.
|
@Lichu520 How is the situation?
|
@winlinvip Looking forward to your reply. @gotliuyan The test results are as above. Are you also developing the DJI cloud API?
|
@Lichu520 No, it's just a simple application, with the recordings stored remotely.
|
|
@Lichu520 Since it is a binary compiled by yourself, you need to obtain the symbol table, so please upload the srs binary file. Alternatively, please execute the following command to obtain the stack trace: addr2line -e /usr/local/srs/trunk/objs/srs 0x6795e1
addr2line -e /usr/local/srs/trunk/objs/srs 0x67e275
addr2line -e /usr/local/srs/trunk/objs/srs 0x67de8a
addr2line -e /usr/local/srs/trunk/objs/srs 0x67d49e
addr2line -e /usr/local/srs/trunk/objs/srs 0x67b21c
addr2line -e /usr/local/srs/trunk/objs/srs 0x67a665
addr2line -e /usr/local/srs/trunk/objs/srs 0x7b3175
addr2line -e /usr/local/srs/trunk/objs/srs 0x81faf6
addr2line -e /usr/local/srs/trunk/objs/srs 0x82f7a2
addr2line -e /usr/local/srs/trunk/objs/srs 0x82eda2
addr2line -e /usr/local/srs/trunk/objs/srs 0x810dc4
addr2line -e /usr/local/srs/trunk/objs/srs 0x810a23
addr2line -e /usr/local/srs/trunk/objs/srs 0x95693c
addr2line -e /usr/local/srs/trunk/objs/srs 0x954e4b
addr2line -e /usr/local/srs/trunk/objs/srs 0x9549a8
addr2line -e /usr/local/srs/trunk/objs/srs 0x863955
addr2line -e /usr/local/srs/trunk/objs/srs 0x863a0f
addr2line -e /usr/local/srs/trunk/objs/srs 0xa80868
addr2line -e /usr/local/srs/trunk/objs/srs 0xa81157
addr2line -e /usr/local/srs/trunk/objs/srs 0x8f6181
addr2line -e /usr/local/srs/trunk/objs/srs 0x8f4aa3 Please kindly send me a message on WeChat for further verification. You can refer to here for adding me on WeChat.
|
As I don't have a drone device, I am unable to reproduce the issue everyone is talking about. Please provide the binary or stack information when the crash occurs.
|
Can't replay. |
The problems I encountered
1. The problem I encountered:
According to the SRS official website documentation, I followed the steps to compile WebRTC for Live Streaming and successfully deployed the SRS live streaming service. I used the DJI M30 drone for RTMP streaming and conducted several tests. After reinstalling SRS multiple times on multiple servers, I noticed that a few seconds or minutes after starting the streaming, the console would display the following error: "srs: src/kernel/srs_kernel_buffer.cpp:96: void SrsBuffer::skip(int): Assertion `p + size <= bytes + nb_bytes' failed." This error caused the SRS service to crash immediately.
2. In this situation, I have also tried using the EasyRTMP mobile application for streaming, and the live streaming service worked fine. I have also deployed it using Docker, and when streaming with the DJI M30 drone, everything worked fine as well. The error only occurs when using the compiled source code.
3. I have also tried directly editing line 96 of the srs_kernel_buffer.cpp file by commenting out that line of code, but the console still throws the same error.
二、SRS Version (版本):
v4.0.76
1. SRS Log (日志):
1. SRS Config (配置):
Replay (重现)
Deploy the SRS service using the steps for compiling from source code and ensure successful startup.
You will need a DJI M30 drone. Follow the DJI developer's cloud API tutorial at https://developer.dji.com/doc/cloud-api-tutorial/en/quick-start/source-code-deployment-steps.html to deploy the DJI airport demo project, as shown in the image.
`
Using the functionality shown in the image, push the drone's video stream to the DJI airport demo project. Within a few minutes, the SRS service will throw the error I encountered, and then the SRS service will crash.
Expect (Expected Behavior)
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: