jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
23.23k stars 6.75k forks source link

Screen sharing extension failed to install on Firefox #3521

Closed QasimK closed 5 years ago

QasimK commented 6 years ago

I am running Firefox 62.0.3 (64-bit) with no extensions on Arch Linux with SwayWM (Wayland), and I get the error "Screen sharing extension failed to install" when I try to share my screen from https://meet.jit.si

saghul commented 6 years ago

Are you using a UserAgent spoofing extensión of any kind? There is no meed for an extension on Firefox so you shouldn’t be seeing that.

QasimK commented 6 years ago

Nope nothing like that, my user agent is: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0. Also, screen sharing worked fine the last time I tried it about 2 months ago on this same computer (running the same OS/browser).

If it is helpful, I also cannot video/audio - other users see "Jitsi user is having connection issues", and I just don't see them, but this shouldn't affect my ability to start a screen share, right?

saghul commented 6 years ago

I'll try to repro, thanks for the feedback.

saghul commented 6 years ago

Hum, I tried on my Fedora 28 machine and worked no problem. My UA is: "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0". Can you please paste the contents of your JS console since the start of the call?

QasimK commented 6 years ago

Here you go (unfortunately I don't know how to give you nicely formatted/coloured logs):

[modules/RTC/RTCUtils.js] <value/<>:  Available devices:  
Array(5) [ MediaDeviceInfo, MediaDeviceInfo, MediaDeviceInfo, MediaDeviceInfo, MediaDeviceInfo ]
lib-jitsi-meet.min.js:2:148840
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://as.atlassian.com/api/v1/t. (Reason: CORS request did not succeed).[Learn More]
Loading failed for the <script> with source “https://meet.jit.si/libs/analytics-ga.js”. meet.jit.si:1
[react/features/analytics/functions.js] <t.a/</<>:  Failed to load https://meet.jit.si/libs/analytics-ga.js: [object Event] app.bundle.min.js:2:509263
[react/features/analytics/functions.js] <t.a/</<>:  Failed to load https://meet.jit.si/libs/jitsi-analytics-web-client.min.js: [object Event] app.bundle.min.js:2:509263
[modules/statistics/AnalyticsAdapter.js] <value>:  Disposing of analytics adapter. lib-jitsi-meet.min.js:2:148840
Loading failed for the <script> with source “https://meet.jit.si/libs/jitsi-analytics-web-client.min.js”. meet.jit.si:1
[react/features/base/storage/PersistenceRegistry.js] <value>:  redux state persisted. 3a0786e598e84c7aa0887ebd5dddb3c0 -> 108ad07f26be3b30cd82702f2aea1620 app.bundle.min.js:2:509263
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://as.atlassian.com/api/v1/t. (Reason: CORS request did not succeed).[Learn More]
(TIME) index.html loaded:    534 ScaryWizardsGrowAnxiously:12:9
(TIME) Sending external connect XHR:     546 external_connect.js:65:5
[modules/browser/BrowserCapabilities.js] <t>:  This appears to be firefox, ver: 62.0 lib-jitsi-meet.min.js:2:148840
(TIME) external connect XHR done:    966 external_connect.js:40:13
Error: "XMLHttpRequest error. Status: 502. Error message: Bad Gateway"
onreadystatechangehttps://cdn.jitsi.net/meetjitsi_3056.1430/libs/external_connect.js?v=1:49:32 do_external_connect.js:77:13
[react/index.web.js] <>:  (TIME) document ready:     1637 app.bundle.min.js:2:509263
[react/features/base/storage/PersistenceRegistry.js] <value>:  redux state rehydrated as 
Object { "features/base/settings": {…}, "features/dropbox": {}, "features/recent-list": (7) […], "features/welcome": {}, "features/calendar-sync": {}, "features/video-layout": {}, "features/base/known-domains": (6) […] }
app.bundle.min.js:2:509263
[modules/UI/videolayout/VideoLayout.js] <changeUserAvatar>:  Missed avatar update - no small video yet for undefined app.bundle.min.js:2:509263
[react/features/calendar-sync/functions.web.js] <t.a>:  No calendar type available app.bundle.min.js:2:509263
[react/features/base/media/middleware.js] <>:  Start muted: app.bundle.min.js:2:509263
[react/features/base/media/middleware.js] <>:  Start audio only set to false app.bundle.min.js:2:509263
[react/features/base/conference/middleware.js] <>:  Audio-only disabled app.bundle.min.js:2:509263
[modules/RTC/RTCUtils.js] <value>:  Using the new gUM flow lib-jitsi-meet.min.js:2:148840
[modules/xmpp/xmpp.js] <value>:  P2P STUN servers:  
Array(3) [ {…}, {…}, {…} ]
lib-jitsi-meet.min.js:2:148840
[modules/xmpp/xmpp.js] <value>:  (TIME) Strophe connecting:  1807 lib-jitsi-meet.min.js:2:148840
[modules/RTC/RTCUtils.js] <value/r<>:  Got media constraints:  
Object { video: {…}, audio: {…} }
lib-jitsi-meet.min.js:2:148840
[modules/RTC/RTCUtils.js] <value/<>:  Available devices:  
Array(5) [ MediaDeviceInfo, MediaDeviceInfo, MediaDeviceInfo, MediaDeviceInfo, MediaDeviceInfo ]
lib-jitsi-meet.min.js:2:148840
[react/features/analytics/functions.js] <t.a/</<>:  Loaded 2 analytics handlers app.bundle.min.js:2:509263
[modules/RTC/RTCUtils.js] <value/</<>:  onUserMediaSuccess lib-jitsi-meet.min.js:2:148840
[modules/RTC/JitsiLocalTrack.js] <value>:  Setting new MSID: {68b9cf3c-d2c7-404e-94b4-3727ac8e5472} {94d17fe3-3b91-4623-a2cf-5ebfc91c7f94} on LocalTrack[undefined,audio] lib-jitsi-meet.min.js:2:148840
[modules/RTC/JitsiLocalTrack.js] <value>:  Setting new MSID: {1ce8952a-e436-47bc-8cc0-3102948cf07d} {0dddb327-e417-4084-84ba-ffd17c989c1e} on LocalTrack[undefined,video] lib-jitsi-meet.min.js:2:148840
[modules/xmpp/xmpp.js] <value>:  (TIME) Strophe connected:   3596 lib-jitsi-meet.min.js:2:148840
[modules/xmpp/xmpp.js] <value>:  My Jabber ID: 3c09a260-7473-45e0-b3ef-2db6ea95fe5b@meet.jit.si/9beb46fd-de13-4ef6-8e6b-88216804de12 lib-jitsi-meet.min.js:2:148840
[conference.js] <init/<>:  initialized with 2 local tracks app.bundle.min.js:2:509263
[modules/xmpp/ChatRoom.js] <t>:  Joined MUC as scarywizardsgrowanxiously@conference.meet.jit.si/3c09a260 lib-jitsi-meet.min.js:2:148840
[modules/e2eping/e2eping.js] <e>:  Initializing e2e ping; pingInterval=10000, analyticsInterval=60000. lib-jitsi-meet.min.js:2:148840
[modules/connectivity/ParticipantConnectionStatus.js] <e>:  RtcMuteTimeout set to: 2000 lib-jitsi-meet.min.js:2:148840
[modules/statistics/AvgRTPStatsReporter.js] <e>:  Avg RTP stats will be calculated every 15 samples lib-jitsi-meet.min.js:2:148840
[JitsiConference.js] <r>:  backToP2PDelay: 5 lib-jitsi-meet.min.js:2:148840
[modules/videosipgw/VideoSIPGW.js] <e>:  creating VideoSIPGW lib-jitsi-meet.min.js:2:148840
[react/features/base/storage/PersistenceRegistry.js] <value>:  redux state persisted. 108ad07f26be3b30cd82702f2aea1620 -> 9b222203f96c90bd20d213bb5fa69287 app.bundle.min.js:2:509263
[JitsiConference.js] <r.prototype._doReplaceTrack>:  _doReplaceTrack - no JVB JingleSession lib-jitsi-meet.min.js:2:148840
[JitsiConference.js] <r.prototype._doReplaceTrack>:  _doReplaceTrack - no P2P JingleSession lib-jitsi-meet.min.js:2:148840
[JitsiConference.js] <r.prototype._doReplaceTrack>:  _doReplaceTrack - no JVB JingleSession lib-jitsi-meet.min.js:2:148840
[JitsiConference.js] <r.prototype._doReplaceTrack>:  _doReplaceTrack - no P2P JingleSession lib-jitsi-meet.min.js:2:148840
[modules/remotecontrol/RemoteControl.js] <value>:  Initializing remote control. app.bundle.min.js:2:509263
[modules/xmpp/moderator.js] <i.prototype.setFocusUserJid>:  Focus jid set to:  undefined lib-jitsi-meet.min.js:2:148840
[modules/xmpp/moderator.js] <i.prototype.createConferenceIq>:  Session ID: null machine UID: 1e1f86fac4a479fe2408c6015b33143d lib-jitsi-meet.min.js:2:148840
[react/features/base/tracks/actions.js] <t.c/</</<>:  Replace audio track - unmuted app.bundle.min.js:2:509263
[react/features/base/tracks/actions.js] <t.c/</</<>:  Replace video track - unmuted app.bundle.min.js:2:509263
[conference.js] <updateAudioIconEnabled>:  Microphone button enabled: true local audio: LocalTrack[1,audio] audio devices:  device count: 0 app.bundle.min.js:2:509263
[conference.js] <updateVideoIconEnabled>:  Camera button enabled: true local video: LocalTrack[2,video] video devices:  device count: 0 app.bundle.min.js:2:509263
[conference.js] <updateAudioIconEnabled>:  Microphone button enabled: true local audio: LocalTrack[1,audio] audio devices: [object MediaDeviceInfo],[object MediaDeviceInfo],[object MediaDeviceInfo] device count: 3 app.bundle.min.js:2:509263
[conference.js] <updateVideoIconEnabled>:  Camera button enabled: true local video: LocalTrack[2,video] video devices: [object MediaDeviceInfo],[object MediaDeviceInfo] device count: 2 app.bundle.min.js:2:509263
[modules/xmpp/strophe.ping.js] <value>:  XMPP pings will be sent every 10000 ms lib-jitsi-meet.min.js:2:148840
[modules/statistics/CallStats.js] <value>:  CallStats Status: err=success msg=SDK authentication successful. lib-jitsi-meet.min.js:2:148840
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
[modules/xmpp/moderator.js] <i.prototype.setFocusUserJid>:  Focus jid set to:  focus@auth.meet.jit.si lib-jitsi-meet.min.js:2:148840
[modules/xmpp/moderator.js] <i.prototype.parseConfigOptions>:  Authentication enabled: false lib-jitsi-meet.min.js:2:148840
[modules/xmpp/moderator.js] <i.prototype.parseConfigOptions>:  External authentication enabled: false lib-jitsi-meet.min.js:2:148840
[modules/xmpp/moderator.js] <i.prototype.parseConfigOptions>:  Sip gateway enabled:  true lib-jitsi-meet.min.js:2:148840
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
[modules/xmpp/ChatRoom.js] <value>:  entered scarywizardsgrowanxiously@conference.meet.jit.si/focus 
Object { affiliation: "owner", role: "moderator", jid: "focus@auth.meet.jit.si/focus154762358583646", isFocus: true, isHiddenDomain: false }
lib-jitsi-meet.min.js:2:148840
[modules/xmpp/ChatRoom.js] <value>:  Ignore focus: scarywizardsgrowanxiously@conference.meet.jit.si/focus, real JID: focus@auth.meet.jit.si/focus154762358583646 lib-jitsi-meet.min.js:2:148840
[modules/UI/UI.js] <w.initEtherpad>:  Etherpad is enabled app.bundle.min.js:2:509263
[modules/version/ComponentsVersions.js] <r.prototype.processPresence/<>:  Got xmpp version: Prosody(trunk nightly build 747 (2017-02-19, 428d4abee723),Linux) lib-jitsi-meet.min.js:2:148840
[modules/version/ComponentsVersions.js] <r.prototype.processPresence/<>:  Got focus version: JiCoFo(1.0.1.0-437,Linux) lib-jitsi-meet.min.js:2:148840
[conference.js] <_setupListeners/<>:  My role changed, new role: moderator app.bundle.min.js:2:509263
[JitsiConference.js] <r.prototype._maybeStartOrStopP2P>:  Auto P2P disabled lib-jitsi-meet.min.js:2:148840
[modules/xmpp/ChatRoom.js] <value>:  (TIME) MUC joined:  4985 lib-jitsi-meet.min.js:2:148840
[modules/xmpp/ChatRoom.js] <value>:  Subject is changed to lib-jitsi-meet.min.js:2:148840
[modules/UI/videolayout/LargeVideoManager.js] <value/<>:  hover in %s 3c09a260 app.bundle.min.js:2:509263
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details
Using more than two STUN/TURN servers slows down discovery callstats-ws.min.js:3458
ICE failed, add a STUN server and see about:webrtc for more details

After I try screen sharing:

[modules/RTC/RTCUtils.js] <value>:  Using the new gUM flow lib-jitsi-meet.min.js:2:148840
[modules/RTC/RTCUtils.js] <value>:  Get media constraints 
Object { audio: false, video: {…} }
lib-jitsi-meet.min.js:2:148840
[modules/RTC/RTCUtils.js] <value/</<>:  Failed to get access to local media.  NotFoundError: The object can not be found here. [object Object] lib-jitsi-meet.min.js:2:148840
[react/features/base/tracks/functions.js] <t.a/<>:  Failed to create local tracks 
Array [ "desktop" ]
Object { gum: {…}, name: "gum.not_found", message: "Requested device(s) was/were not found: screen", stack: "r@https://cdn.jitsi.net/meetjitsi_3056.1430/libs/lib-jitsi-meet.min.js?v=3056.1430:2:86260\nvalue/</<@https://cdn.jitsi.net/meetjitsi_3056.1430/libs/lib-jitsi-meet.min.js?v=3056.1430:2:112553\n" }
app.bundle.min.js:2:509263
[conference.js] <_handleScreenSharingError>:  failed to share local desktop 
Object { gum: {…}, name: "gum.not_found", message: "Requested device(s) was/were not found: screen", stack: "r@https://cdn.jitsi.net/meetjitsi_3056.1430/libs/lib-jitsi-meet.min.js?v=3056.1430:2:86260\nvalue/</<@https://cdn.jitsi.net/meetjitsi_3056.1430/libs/lib-jitsi-meet.min.js?v=3056.1430:2:112553\n" }
app.bundle.min.js:2:509263 
saghul commented 6 years ago

Hum. That's weird. Can you please try this test page by Mozilla themselves? https://mozilla.github.io/webrtc-landing/gum_test.html

saghul commented 6 years ago

Also, here, can you expand the object so that I can see the video constraints?

[modules/RTC/RTCUtils.js] <value>:  Get media constraints 
Object { audio: false, video: {…} }
hrotkogabor commented 6 years ago

I started the electron version, through an X2go login. The fullscreen sharing seems to work, but when I try to share a window, I get the message in a red box: "Oops! Screen sharing extension failed to install." I can't get any details even when I start the app from the commandline.

saghul commented 6 years ago

@hrotkogabor This has nothing to do with Firefox.

QasimK commented 6 years ago

@saghul

On the test page:

On the following tests it suggests to set media.getusermedia.screensharing.enabled=true which I can confirm is already set. It also notes media.getusermedia.screensharing.allowed_domains, but that setting does not exist (by default anyway).

Object:

{
  "audio": false,
  "video": {
    "mozMediaSource": "window",
    "mediaSource": "window",
    "frameRate": {
      "min": 5,
      "max": 5
    }
  }
}

I want to emphasise again that meet.jit.si was working fine a couple of months ago using the same OS/Window Manager/Browser, though of course I've updated versions since then. I love Jitsi Meet, so I hope this can be fixed.

saghul commented 6 years ago

@QasimK To be honest I'm not sure what to suggest :cry: If not even Mozila's own test page works, I don't know what else to try...

Do you have any extensions? Can you try a new user profile just to see if a blank slate works?

Also, you are not using Wayland, right?

QasimK commented 6 years ago

There are no extensions installed, but I can give a new user profile a go.

I am using Wayland...

saghul commented 6 years ago

Has that changed since last time you tested? I wonder if the screencapture is not working because of that... do you have a way to test with X? (that doesn't involve too much trouble, that is)

daimoc commented 6 years ago

Hi Qasimk, what was your exact Firefox working version 2 month ago ?

Firefox Screencapture code for linux changed 3 month ago to fix a deadlock with xserver (https://bugzilla.mozilla.org/show_bug.cgi?id=1456101), it could be related.

If you observe issue with the Firefox test page, you should log Firefox errors (https://wiki.mozilla.org/Media/WebRTC/Logging) and fill a bug report on https://bugzilla.mozilla.org/.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

QasimK commented 5 years ago

Hi @daimoc, I tested Jitsi again just now (Firefox v64.0, SwayWM v0.15.2) and it seems to work again.. I will close this issue.

Thank you @saghul @daimoc for investigating.