Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Server Crash Randomly

Open USAMAWIZARD opened this issue 1 year ago • 2 comments

Short description

The server some time randomly crashes , we are publishing WebRTC stream to AMS

Environment

  • Operating system and version:
  • Java version:
  • Ant Media Server version: 2.7.0 x86_64CPU op-mode(s): 32-bit

Steps to reproduce

We are publishing WebRTC and the server unexpectedly crashes some times. crash logs are attached in the issue 2023-11-22 03:34:33 is when the crash happens

Logs

You can download FULL logs here (includes syslog referencing sigint kill/ ABRT , includes ant-media-server.log s as well as antmedia-error-timestampped.log and hs_err_pid* log)

Ask your questions on Ant Media Github Discussions

USAMAWIZARD avatar Nov 23 '23 14:11 USAMAWIZARD

The problem is about the following place. I think @lastpeony you encounter the same scenario with one of the user

Stack: [0x00007fd1b51d4000,0x00007fd1b52d5000],  sp=0x00007fd1b52d2720,  free space=1017k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libjingle_peerconnection_so.so+0x6f3a80]  webrtc::H264BitstreamParser::ParseNonParameterSetNalu(unsigned char const*, unsigned long, unsigned char)+0x4c0
C  [libjingle_peerconnection_so.so+0x6f3c13]  webrtc::H264BitstreamParser::ParseBitstream(rtc::ArrayView<unsigned char const, -4711l>)+0x63
C  [libjingle_peerconnection_so.so+0x35ab88]  webrtc::jni::VideoEncoderWrapper::ParseQp(rtc::ArrayView<unsigned char const, -4711l>)+0x78
C  [libjingle_peerconnection_so.so+0x3591bc]  webrtc::jni::VideoEncoderWrapper::OnEncodedFrame(JNIEnv_*, webrtc::JavaRef<_jobject*> const&)+0xec

mekya avatar Nov 27 '23 10:11 mekya


"# Problematic frame:
# C  [libjingle_peerconnection_so.so+0x6f3a80]  webrtc::H264BitstreamParser::ParseNonParameterSetNalu(unsigned char const*, unsigned long, unsigned char)+0x4c0
..
..
Current thread (0x00007f95200d1000):  JavaThread "ForkJoinPool.commonPool-worker-117" daemon [_thread_in_native, id=150201, stack(0x00007f8bd8bde000,0x00007f8bd8cde000)]
"

USAMAWIZARD avatar Feb 11 '24 20:02 USAMAWIZARD

Let me close this. @USAMAWIZARD please reopen if it doesn't fix your issue.

burak-58 avatar Mar 18 '24 10:03 burak-58