Closed Bug 856927 Opened 11 years ago Closed 11 years ago

Trying to do two handshakes in a row with a single addStream at the beginning results in INTERNAL_ERROR on setRemoteDescription

Categories

(Core :: WebRTC, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 857115

People

(Reporter: jsmith, Unassigned)

Details

Attachments

(2 files)

Attached file Mochitest
STR - Run the attached mochitest.

Expected:

If we try to do two handshakes in a row, my initial thoughts is that we shouldn't fail in this case. But this needs to double checked.

Actual:

We fail at one of the setRemoteDescription callbacks with:

Unexpected error callback with name = 'INTERNAL_ERROR', message = 'Unspecified Error processing setRemoteDescription'
Attached file Console Output
And those useful error callback messages finally pay off.

Anyways - Adam - Any ideas?
Flags: needinfo?(adam)
I believe this is trying to add two audio streams (or two audio and two video streams) to the same peerconnection.  We don't support multiple streams of the same type yet.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
(In reply to Jason Smith [:jsmith] from comment #2)
> And those useful error callback messages finally pay off.

What we thought was important for 22 was that the interface was fixed to return the right kind of response to the content js (modulo bug 842531) even if we couldn't hook it up to more useful information yet.  Plumbing through actual causes with useful reason phrases remains a priority.

I'm deferring to jesup on the cause of the bug.
Flags: needinfo?(adam)
(In reply to Randell Jesup [:jesup] from comment #3)
> I believe this is trying to add two audio streams (or two audio and two
> video streams) to the same peerconnection.  We don't support multiple
> streams of the same type yet.

Nope, this isn't right. addStream is only getting called once in this workflow. If that was the case, NS_ERROR_FAILURE would have fired.

So this is different flow. Reopening.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
FWIW, there's only a single audio stream involved in this entire workflow added only once. It's just that the handshake happens twice in a row.
Commands per console log:

1. PC_LOCAL_GUM
2. PC_REMOTE_GUM
3. PC_LOCAL_CREATE_OFFER
4. PC_LOCAL_SET_DESCRIPTION
5. PC_REMOTE_SET_DESCRIPTION
6. PC_REMOTE_CREATE_ANSWER
7. PC_LOCAL_SET_REMOTE_DESCRIPTION
8. PC_REMOTE_SET_LOCAL_DESCRIPTION
9. PC_LOCAL_CHECK_MEDIA
10. PC_REMOTE_CHECK_MEDIA
11. PC_LOCAL_CREATE_OFFER
12. PC_LOCAL_SET_LOCAL_DESCRIPTION
13. PC_REMOTE_SET_REMOTE_DESCRIPTION
Looking at the logs:

0[12eafc98]: [GSM Task|fsm_sm] fsmdef.c:3309: SIPCC-FSM: fsmdef_ev_setremotedesc: Renegotiation not currently supported.

So I'm guessing the reason why this test is actually failing isn't a streams issue, it's the fact renegotiation isn't supported.
Apparently we don't support renegotiation yet, so that's why this is failing with the error callback. I've filed bug 857115 to track the work to implement this, so I'm duping on that bug.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: