[jitsi-dev] Jitsi Meet: TypeError: Cannot read property 'appendChild' of undefined... at setDisplayName


#1

Hi,

I am having trouble getting Jitsi Meet to work due to an exception being
thrown as soon as two attendies are present.

I talked briefly with fippo on IRC about this:

11:27 < netmacka1> was unable to get audio/video working with a peer in
Jitsi Meet today: TypeError: Cannot read property 'appendChild' of
undefined... at setDisplayName
(https://meet.example.com/videolayout.js?v=8:525:36)...
13:28 < fippo> netmacka1: can you get an extended stack trace of that?
14:36 < netmacka1> fippo: http://pastebin.com/nsfm5fx4
14:37 < netmacka1> Both me and the other user got this error
14:38 < netmacka1> it was possible to chat after it but we did only see
our own video
14:57 < fippo> odd. the function which shall ensure a videocontainer
exists cant create it
14:58 < fippo>
https://github.com/jitsi/jitsi-meet/commit/eec2c487fdcec791ed5cb514e68becb045e0df84
-- might be a regression from here
14:58 < fippo> let's poke yana
15:01 < fippo> might be a weird timing problem, i.e. the element is not
yet added to the dom

Today I tried with the revision before
eec2c487fdcec791ed5cb514e68becb045e0df84 but still had the problem :frowning:

Log output:

Using Chrome extension for desktop sharing desktopsharing.js?v=2:216
Chrome versionmozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml,
like gecko) ubuntu chromium/37.0.2062.94 chrome/37.0.2062.94
safari/537.36 37 desktopsharing.js?v=2:186
init app.js?v=7:1128
This appears to be Chrome strophe.jingle.adapter.js?v=1:478
status 1 app.js?v=7:148
onUserMediaSuccess strophe.jingle.adapter.js?v=1:634
hover in
blob:https%3A//meet.example.com/200be4bf-86ce-4bad-8919-3936c39b7091
videolayout.js?v=8:113
status 2 app.js?v=7:137
status 7 app.js?v=7:148
password is required app.js?v=7:779
status 1 app.js?v=7:148
connected app.js?v=7:124
Joined MUC as testrummet@conference.example.com/markus.kilas muc.js?v=13:25
Strophe: error: Cannot read property 'appendChild' of undefined
TypeError: Cannot read property 'appendChild' of undefined
    at setDisplayName (https://meet.example.com/videolayout.js?v=8:525:36)
    at Object.my.ensurePeerContainerExists
(https://meet.example.com/videolayout.js?v=8:312:13)
    at HTMLDocument.<anonymous>
(https://meet.example.com/videolayout.js?v=8:1126:25)
    at HTMLDocument.n.event.dispatch
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:6404)
    at HTMLDocument.r.handle
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:3179)
    at Object.n.event.trigger
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:5512)
    at HTMLDocument.<anonymous>
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:11480)
    at Function.n.extend.each
(https://meet.example.com/libs/jquery-2.1.1.min.js:2:2880)
    at n.fn.n.each (https://meet.example.com/libs/jquery-2.1.1.min.js:2:847)
    at n.fn.extend.trigger
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:11456)
strophe.jingle.bundle.js?v=8:15
Strophe: Removing Strophe handlers due to uncaught exception: Cannot
read property 'appendChild' of undefined strophe.jingle.bundle.js?v=8:11
chat markus Hej? muc.js?v=13:221
chat markus https://meet.example.com/testrummet muc.js?v=13:221
chat markus Joonas and I will do a test with Jitsi Meet now. muc.js?v=13:221
chat joonas iubdsfiusbdf muc.js?v=13:221
chat markus tja muc.js?v=13:221

Best regards,
Markus


#2

Commenting out the causing line (videobridge.js:527 in latest master)
makes it possible to join the conference but gives 5 extra empty film
strips:
            //$('#' + videoSpanId)[0].appendChild(nameSpan);

No one else seen this?

Cheers,
Markus

···

On 2014-09-07 20:56, Markus Kilås wrote:

Hi,

I am having trouble getting Jitsi Meet to work due to an exception being
thrown as soon as two attendies are present.

I talked briefly with fippo on IRC about this:

11:27 < netmacka1> was unable to get audio/video working with a peer in
Jitsi Meet today: TypeError: Cannot read property 'appendChild' of
undefined... at setDisplayName
(https://meet.example.com/videolayout.js?v=8:525:36)...
13:28 < fippo> netmacka1: can you get an extended stack trace of that?
14:36 < netmacka1> fippo: http://pastebin.com/nsfm5fx4
14:37 < netmacka1> Both me and the other user got this error
14:38 < netmacka1> it was possible to chat after it but we did only see
our own video
14:57 < fippo> odd. the function which shall ensure a videocontainer
exists cant create it
14:58 < fippo>
https://github.com/jitsi/jitsi-meet/commit/eec2c487fdcec791ed5cb514e68becb045e0df84
-- might be a regression from here
14:58 < fippo> let's poke yana
15:01 < fippo> might be a weird timing problem, i.e. the element is not
yet added to the dom

Today I tried with the revision before
eec2c487fdcec791ed5cb514e68becb045e0df84 but still had the problem :frowning:

Log output:

Using Chrome extension for desktop sharing desktopsharing.js?v=2:216
Chrome versionmozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml,
like gecko) ubuntu chromium/37.0.2062.94 chrome/37.0.2062.94
safari/537.36 37 desktopsharing.js?v=2:186
init app.js?v=7:1128
This appears to be Chrome strophe.jingle.adapter.js?v=1:478
status 1 app.js?v=7:148
onUserMediaSuccess strophe.jingle.adapter.js?v=1:634
hover in
blob:https%3A//meet.example.com/200be4bf-86ce-4bad-8919-3936c39b7091
videolayout.js?v=8:113
status 2 app.js?v=7:137
status 7 app.js?v=7:148
password is required app.js?v=7:779
status 1 app.js?v=7:148
connected app.js?v=7:124
Joined MUC as testrummet@conference.example.com/markus.kilas muc.js?v=13:25
Strophe: error: Cannot read property 'appendChild' of undefined
TypeError: Cannot read property 'appendChild' of undefined
    at setDisplayName (https://meet.example.com/videolayout.js?v=8:525:36)
    at Object.my.ensurePeerContainerExists
(https://meet.example.com/videolayout.js?v=8:312:13)
    at HTMLDocument.<anonymous>
(https://meet.example.com/videolayout.js?v=8:1126:25)
    at HTMLDocument.n.event.dispatch
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:6404)
    at HTMLDocument.r.handle
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:3179)
    at Object.n.event.trigger
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:5512)
    at HTMLDocument.<anonymous>
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:11480)
    at Function.n.extend.each
(https://meet.example.com/libs/jquery-2.1.1.min.js:2:2880)
    at n.fn.n.each (https://meet.example.com/libs/jquery-2.1.1.min.js:2:847)
    at n.fn.extend.trigger
(https://meet.example.com/libs/jquery-2.1.1.min.js:3:11456)
strophe.jingle.bundle.js?v=8:15
Strophe: Removing Strophe handlers due to uncaught exception: Cannot
read property 'appendChild' of undefined strophe.jingle.bundle.js?v=8:11
chat markus Hej? muc.js?v=13:221
chat markus https://meet.example.com/testrummet muc.js?v=13:221
chat markus Joonas and I will do a test with Jitsi Meet now. muc.js?v=13:221
chat joonas iubdsfiusbdf muc.js?v=13:221
chat markus tja muc.js?v=13:221

Best regards,
Markus