media-server-node icon indicating copy to clipboard operation
media-server-node copied to clipboard

[Bug] TypeError: Cannot read property 'clone' of null in SDPManagerUnified

Open tiepviet opened this issue 4 years ago • 5 comments

/app/node_modules/medooze-media-server/lib/SDPManagerUnified.js:166
					mediaInfo = this.localInfo.getMedia(transceiver.media).clone();
					                                                      ^

TypeError: Cannot read property 'clone' of null
    at SDPManagerUnified.createLocalDescription (/app/node_modules/medooze-media-server/lib/SDPManagerUnified.js:166:60)
    at EventEmitter.Participant.sdpManager.on (/app/dist/lib/participant.js:117:62)
    at EventEmitter.emit (events.js:198:13)
    at EventEmitter.emit (domain.js:448:20)
    at Timeout.setTimeout [as _onTimeout] (/app/node_modules/medooze-media-server/lib/SDPManagerUnified.js:240:18)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
error Command failed with exit code 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tiepviet avatar May 19 '20 02:05 tiepviet

could you paste a dump of the localInfo object and the capabilities info? also, could you explain how are you are doing the sdp O/A?

murillo128 avatar May 21 '20 22:05 murillo128

Sorry for my problem. I couldn't reproduce this bug. So, I will close it.

tiepviet avatar May 25 '20 00:05 tiepviet

If you happen to reproduce it, please feel free to re-open it.

murillo128 avatar May 25 '20 00:05 murillo128

@murillo128 Also experience the same error from time to time. Unfortunately, I could find out exact reproducing steps as well.

skmax avatar May 26 '20 16:05 skmax

Recently this error appears frequently on our server. So, I will reopen this issue.

tiepviet avatar Jun 22 '21 02:06 tiepviet