devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

Crash on closing data channel #113

Closed stserakhau closed 1 year ago

stserakhau commented 1 year ago

Sometime I see crash jvm without any details into the logs and without jvm crash log files, probably it is "hard crash"

Code which produce the crash

public synchronized void closeDC() {
       if (dataChannel.getState() != RTCDataChannelState.OPEN) {
           return;
       }
      dataChannel.close(); <<<<<< this line 
}

Indirect signs which I see usually related with network. Software can work stable many days, but when I see low throughput of any segment of the network between browser & software I frequently catch the crashes of jvm on opening and closing datachannels (in most time is on closing). RTC peer connection always established successfuly.

Prediction that this crash related with missing of the network packets and can't be fixed in scope of webrtc-java. I need to know that it true and will ping webrtc core devs.

Are the any possibility to logging of the execution in wrapper exist ?

releated issue in webrtc https://bugs.chromium.org/p/webrtc/issues/detail?id=14962

stserakhau commented 1 year ago

related with issue in ffmpeg