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

srs video recording crashes, raw interface call crashes #2481

Closed
taojishou opened this issue Jul 21, 2021 · 11 comments
Closed

srs video recording crashes, raw interface call crashes #2481

taojishou opened this issue Jul 21, 2021 · 11 comments
Assignees
Labels
TransByAI Translated by AI/GPT.
Milestone

Comments

@taojishou
Copy link

taojishou commented Jul 21, 2021

Description'

Please ensure that you maintain the markdown structure.

Please describe the issue you encountered here.
'
Make sure to maintain the markdown structure.

  1. SRS version: XCORE-SRS/5.0.5(Leo)

Replay

How to replay bug?

Steps to reproduce the bug

Steps to reproduce the bug:

  1. If the requested vhost does not exist, SRS will crash when controlling the recording.
  2. Crash also occurs during normal recording.
    srs: src/kernel/srs_kernel_mp4.cpp:3288: virtual SrsCplxError* SrsMp4BaseDescriptor::encode(SrsBuffer*): Assertion `vlen > 0' failed.

TRANS_BY_GPT3

@duiniuluantanqin duiniuluantanqin self-assigned this Jul 27, 2021
@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Jul 27, 2021

#2015
Is this the same problem as this one?

http://192.168.0.248:1985/api/v1/raw?rpc=update&scope=dvr&value=__defaultVhost__&param=enable&data=live/livestream
Are you using this interface?

TRANS_BY_GPT3

@taojishou
Copy link
Author

taojishou commented Jul 27, 2021

Question 1 is a problem. If the value is incorrect, it will cause a crash. The second problem is caused by some mp4 moov.

TRANS_BY_GPT3

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Jul 27, 2021

Question 1 is a problem. If the value is incorrect, it can cause a crash. The second one is caused by some mp4 moov.

Question 1: The crash caused by incorrect value has been resolved. Please refer to #2435. The pull request has been merged. Try pulling the latest code.

Question 2: Could you please provide a detailed description of the steps to reproduce the issue?

TRANS_BY_GPT3

@taojishou
Copy link
Author

taojishou commented Jul 28, 2021

Question 2: When pushing the stream and then disconnecting multiple times, a coredump will be displayed.

TRANS_BY_GPT3

@taojishou
Copy link
Author

image

@taojishou
Copy link
Author

image

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 4, 2021

How did you operate it? How high is the reproduction frequency there? I tried several times but it didn't appear. Please provide a detailed description of the operation steps.

TRANS_BY_GPT3

@taojishou
Copy link
Author

taojishou commented Aug 10, 2021

Frequently disconnecting and pushing again, the recurrence frequency is still relatively high.

TRANS_BY_GPT3

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 11, 2021

Frequent disconnection and re-push, the reproduction frequency is still relatively high.

What is the audio and video encoding format you are pushing?

I found that if I push audio in g.711 format, it will report this error. I will fix it later.

TRANS_BY_GPT3

@taojishou
Copy link
Author

h264+aac

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 17, 2021

I wrote a test program, pushing-stream-disconnecting-pushing-stream-disconnecting, repeated 10,000 times, but failed to reproduce it successfully. I paused my attention, let's talk about it again when you find a stable way to reproduce it.

TRANS_BY_GPT3

@winlinvip winlinvip added this to the 4.0 milestone Sep 4, 2021
@winlinvip winlinvip changed the title srs录制视频崩溃,raw接口调用崩溃 srs video recording crashes, raw interface call crashes Jul 27, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants