VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

crashing when connect and disconnect button is clicked for many times even with some timegap

Open bhagyalakshmikad opened this issue 10 years ago • 7 comments

Hi,

  1. If we click connect and disconnect for many times even with some timegap, crash occurs at if((m_streamSession->status() & kStreamStatusWriteBufferHasSpace) && m_streamOutRemainder.size()) line in RTMPSession.cpp.

And also waiting for long time after connect button is clicked and if disconnecting crash occurs at if((m_streamSession->status() & kStreamStatusWriteBufferHasSpace) && m_streamOutRemainder.size()) line.

  1. Sometimes crash occurs at memcpy(p, &zero, sizeof(uint32_t)) in RTMPSession.cpp

Please suggest me with the solution to resolve this. Thanks in advance.

bhagyalakshmikad avatar Oct 08 '14 13:10 bhagyalakshmikad

I was debugging this yesterday, the issue is that the socket loop runs after the session is deleted (m_ending is true). I'll see if i can fix and pr today.

skmp avatar Oct 10 '14 07:10 skmp

Thanks for the reply. Can I know which committed version code that you are working on? Because in recent version code, I didn't find any line related to m_ending is true. But in the old version , I have seen this line.

bhagyalakshmikad avatar Oct 10 '14 10:10 bhagyalakshmikad

m_ending is set in RTMPSession::~RTMPSession()

I think that changing

while((m_streamSession->status() & kStreamStatusReadBufferHasBytes) && !stop2)

to

while(!m_ending && m_streamSession && (m_streamSession->status() & kStreamStatusReadBufferHasBytes) && !stop2)

in line 335

Should fix this issue temporary (but is not a proper fix)

skmp avatar Oct 10 '14 10:10 skmp

Hi, Thanks for the response. I have tested with the modification in line 335. But still the problem is there. Still the crash is occurring by repeatedly pressing connect and disconnect buttons.

bhagyalakshmikad avatar Oct 13 '14 07:10 bhagyalakshmikad

@bhagyalakshmikad @skmp Hi,i am having same problem . the crash is occurring by repeatedly pressing disconnect button. Did you find any solution ? Please tell me

IOSDeveloperProgrammer avatar Aug 13 '16 10:08 IOSDeveloperProgrammer

Hey! Probably I fixed this issue #348

artFintch avatar Oct 04 '16 15:10 artFintch

@artFintch Hi, I am using videocore version 0.3.2.(red5 server). Working fine but when i was calling [vcsimplesession endrtmpsession], then app is freezing some time.

IOSDeveloperProgrammer avatar Oct 22 '16 05:10 IOSDeveloperProgrammer