Skip to content

WebRTC not working – TypeError: Cannot set properties of null (setting 'srcObject') #25550

Closed

Description

@airbenich

Description:

Steps to reproduce:

  1. Go to a direct message.
  2. Click on the user icon on the upper right
  3. Click on Call
  4. Take a look into the Web Console

Expected behavior:

A call starts (audio or video) and a windows with the call should open.

Actual behavior:

The Userprofile closes.
Nothing happens.

Server Setup Information:

  • Version of Rocket.Chat Server: 4.7.1
  • Operating System: Ubuntu
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: active
  • NodeJS Version: 14.18.3
  • MongoDB Version: 5.0.8

Client Setup Information

  • Desktop App or Browser Version: latest
  • Operating System: macOS and Windows

Relevant logs:

Web Console:
TypeError: Cannot set properties of null (setting 'srcObject')
at a (141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514:31501)
at o (141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514:29241)
at 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1:8087
onError @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514
s @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514
(anonym) @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1
Promise.then (async)
n.then @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1249
_getUserMedia @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514
getUserMedia @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514
getLocalUserMedia @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514
startCall @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1514
$ @ /client/views/room/hooks/useWebRTC.ts:1
r @ /client/views/room/hooks/useUserInfoActions.js:1
Ke @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
tr @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
nr @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
Zn @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
Xn @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
(anonym) @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
qe @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
We @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
ao @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
pt @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
dt @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
t.unstable_runWithPriority @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1110
_a @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
ze @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092
lt @ 141cbd6c36c71aaeae40396767ebafedf939f0c1.js?meteor_js_resource=true:1092

No related server log entry found.

Activity

  1. egonrp commented on Sep 8, 2022

    @egonrp

    Same error... :/

    Server Setup Information:
    Version of Rocket.Chat Server: 4.8.4
    NodeJS Version: 14.18.3 - x64
    Operating System: Ubuntu
    Deployment Method: Docker
    Number of Running Instances: 1

    Client Setup Information
    Desktop App or Browser Version: Google Chrome 105.0.5195.53
    Operating System: Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions