[Bug]: Screensharing not working properly after update to v5.9.2 (ESR)
Checks before filing an issue
- [x] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- [x] I have checked the issue tracker and have not found an issue that matches the one I'm filing. This should include closed issues.
- [x] This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
- [x] This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
- [x] This issue reproduces on the most recent stable version, or the most recent prerelease version of the Mattermost Desktop App.
- [x] I have read the contribution guidelines.
Mattermost Desktop Version
5.9.2 (ESR)
Operating System
Windows 10 x64
Mattermost Server Version
9.11.8 (ESR)
Steps to reproduce
not working:
- open new call
- open calls popup from calls widget
- try to share the screen via calls popup
working:
- open new call
- try to share the screen via calls widget
Expected behavior
Screensharing should be possible
Observed behavior
Error message: "Screen recording access is not currently allowed or was canceled." but: the screensharing works when started via calls widget instead of calls popup
The problem occurs on the desktop client only. Screensharing via browser is working via both ways.
Log Output
loglevel info
[2025-02-04 10:54:35.692] [info] [WebContentsEventM...] https://mm.redacted.de/
[2025-02-04 10:54:46.666] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException]
[2025-02-04 10:55:23.925] [info] [WebContentsEventM...] https://mm.redacted.de/
[2025-02-04 10:56:00.410] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException]
[2025-02-04 10:56:29.364] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException]
[2025-02-04 11:00:35.978] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException]
[2025-02-04 11:01:22.935] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException]
[2025-02-04 11:01:58.674] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException]
loglevel debug
[2025-02-04 11:05:43.663] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] [renderer] [1738663543.66] Last subscription to team o1nbujkn6t8htr1iy6tbygf6uo being removed (focalboard_4966d3a6d11a6005_bundle.js:2)
[2025-02-04 11:05:43.667] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] [renderer] [1738663543.66] First component subscribing to team ahfsj9xeo38fxk1bcdf91gbjcw (focalboard_4966d3a6d11a6005_bundle.js:2)
[2025-02-04 11:05:44.131] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] [renderer] [1738663544.13] Cloud limits: cards=undefined views=undefined (focalboard_4966d3a6d11a6005_bundle.js:2)
[2025-02-04 11:05:44.342] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] did-start-navigation https://mm.redacted.de/myteam/channels/channel_id_1
[2025-02-04 11:05:44.477] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] did-start-navigation https://mm.redacted.de/myteam/messages/@otheruser
[2025-02-04 11:05:44.929] [debug] [WebContentsEventM...] [57264775-fda7-4ab...] [ATU Our Matte...] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.84675579401e7a5f2f18.js:1)
[2025-02-04 11:05:44.999] [debug] [WebContentsEventM...] [57264775-fda7-4ab...] [ATU Our Matte...] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:05:45.225] [debug] [WebContentsEventM...] [57264775-fda7-4ab...] [ATU Our Matte...] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:05:45.227] [debug] [WebContentsEventM...] [57264775-fda7-4ab...] [ATU Our Matte...] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:01.441] [debug] [ViewManager] handleBrowserHistoryPush 3 /myteam/channels/screensharingtest
[2025-02-04 11:06:01.444] [debug] [ServerManager] [ca1820f3-0d9e-4af...] getOrderedTabsForServer
[2025-02-04 11:06:01.448] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] did-start-navigation https://mm.redacted.de/myteam/channels/screensharingtest
[2025-02-04 11:06:04.653] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] [renderer] com.mattermost.calls: desktopAPI.joinCall (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:04.677] [debug] [CallsWidgetWindow] createCallsWidgetWindow
[2025-02-04 11:06:04.678] [debug] [CallsWidgetWindow] close
[2025-02-04 11:06:04.696] [debug] [App.App] handleAppBrowserWindowCreated
[2025-02-04 11:06:07.043] [debug] [CallsWidgetWindow] onShow
[2025-02-04 11:06:07.048] [debug] [App.Utils] handleUpdateMenuEvent
[2025-02-04 11:06:07.049] [debug] [DownloadsManager] hasDownloads
[2025-02-04 11:06:07.050] [debug] [ServerManager] getOrderedServers
[2025-02-04 11:06:07.050] [debug] [ServerManager] [ca1820f3-0d9e-4af...] getOrderedTabsForServer
[2025-02-04 11:06:07.053] [debug] [ServerManager] getOrderedServers
[2025-02-04 11:06:07.070] [debug] [ViewManager] handleSetCurrentViewBounds { x: 4480, y: 0, width: 1920, height: 1016 }
[2025-02-04 11:06:07.072] [debug] [ModalManager] handleResizeModal {
bounds: { x: 4480, y: 0, width: 1920, height: 1016 },
modalQueueLength: 0
}
[2025-02-04 11:06:07.073] [debug] [MainWindow] saving window state {
x: 4472,
y: -8,
width: 1936,
height: 1032,
maximized: true,
fullscreen: false
}
[2025-02-04 11:06:07.432] [debug] [CallsWidgetWindow] handleResize 312 100
[2025-02-04 11:06:07.482] [debug] [CallsWidgetWindow] handleResize 312 100
[2025-02-04 11:06:07.506] [debug] [PermissionsManager] doPermissionRequest media {
isMainFrame: true,
mediaTypes: [ 'audio' ],
requestingUrl: 'https://mm.redacted.de/plugins/com.mattermost.calls/standalone/widget.html?call_id=test_call_id_1',
securityOrigin: 'https://mm.redacted.de/'
}
[2025-02-04 11:06:08.131] [debug] [CallsWidgetWindow] onJoinedCall test_call_id_1
[2025-02-04 11:06:08.133] [debug] [WebContentsEventM...] [062f037d-edf3-4c3...] [Our Mattermost] [TAB_MESSAGING] [renderer] com.mattermost.calls: handleDesktopJoinedCall (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:08.147] [debug] [CallsWidgetWindow] handleResize 312 136
[2025-02-04 11:06:09.643] [debug] [App.App] handleAppBrowserWindowCreated
[2025-02-04 11:06:09.715] [debug] [WebContentsEventM...] did-start-navigation https://mm.redacted.de/myteam/com.mattermost.calls/expanded/test_call_id_1
[2025-02-04 11:06:09.716] [debug] [WebContentsEventM...] will-navigate https://mm.redacted.de/myteam/com.mattermost.calls/expanded/test_call_id_1
[2025-02-04 11:06:09.717] [info] [WebContentsEventM...] https://mm.redacted.de/
[2025-02-04 11:06:11.460] [debug] [WebContentsEventM...] did-start-navigation https://mm.redacted.de/myteam/com.mattermost.calls/expanded/test_call_id_1
[2025-02-04 11:06:12.423] [debug] [CallsWidgetWindow] handleResize 312 100
[2025-02-04 11:06:12.696] [debug] [WebContentsEventM...] [renderer] Loading plugin skype4business, version 0.2.0 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.700] [debug] [WebContentsEventM...] [renderer] Loading plugin com.github.matterpoll.matterpoll, version 1.4.0 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.709] [debug] [WebContentsEventM...] [renderer] Loading plugin com.mattermost.custom-attributes, version 1.3.1 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.715] [debug] [WebContentsEventM...] [renderer] Loading plugin playbooks, version 1.40.0 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.723] [debug] [WebContentsEventM...] [renderer] Loading plugin com.mattermost.calls, version 0.29.7 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.729] [debug] [WebContentsEventM...] [renderer] Loading plugin jira, version 4.1.1 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.741] [debug] [WebContentsEventM...] [renderer] Loading plugin focalboard, version 9.0.5 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:12.916] [debug] [WebContentsEventM...] [renderer] Loaded plugin skype4business, version 0.2.0 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:13.246] [debug] [WebContentsEventM...] [renderer] Loaded plugin jira, version 4.1.1 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:13.309] [debug] [WebContentsEventM...] [renderer] Loaded plugin com.github.matterpoll.matterpoll, version 1.4.0 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:13.334] [debug] [WebContentsEventM...] [renderer] Loaded plugin com.mattermost.custom-attributes, version 1.3.1 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:13.502] [debug] [WebContentsEventM...] [renderer] Loaded plugin com.mattermost.calls, version 0.29.7 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:13.902] [debug] [WebContentsEventM...] [renderer] [1738663573.89] OctoClient baseURL: https://mm.redacted.de/plugins/focalboard (focalboard_4966d3a6d11a6005_bundle.js:2)
[2025-02-04 11:06:13.905] [debug] [WebContentsEventM...] [renderer] Loaded plugin focalboard, version 9.0.5 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:14.065] [debug] [WebContentsEventM...] [renderer] Loaded plugin playbooks, version 1.40.0 (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:14.082] [debug] [WebContentsEventM...] [renderer] com.mattermost.calls: loading translations file for locale 'en' (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:14.246] [debug] [WebContentsEventM...] [renderer] com.mattermost.calls: registering ws reconnect handler (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:14.642] [debug] [WebContentsEventM...] [renderer] Initializing or re-initializing WebSocket (4456.9d48a3caba18ad880950.js:1)
[2025-02-04 11:06:14.647] [debug] [WebContentsEventM...] [renderer] websocket connecting to wss://mm.redacted.de/api/v4/websocket (2698.2c8f1ae40112525e5a15.js:1)
[2025-02-04 11:06:14.818] [debug] [WebContentsEventM...] [renderer] got connection id n53sgnsmctgtbnkrd5job8zxuc (2698.2c8f1ae40112525e5a15.js:1)
[2025-02-04 11:06:14.905] [debug] [WebContentsEventM...] [renderer] [1738663574.90] Unable to find team in store. TeamID: ahfsj9xeo38fxk1bcdf91gbjcw (focalboard_4966d3a6d11a6005_bundle.js:2)
[2025-02-04 11:06:15.011] [debug] [WebContentsEventM...] [renderer] com.mattermost.calls: requesting call state through ws (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:15.126] [debug] [WebContentsEventM...] [renderer] [1738663575.13] Cloud limits: cards=undefined views=undefined (focalboard_4966d3a6d11a6005_bundle.js:2)
[2025-02-04 11:06:24.009] [debug] [PermissionsManager] doPermissionRequest media {
isMainFrame: true,
mediaTypes: [],
requestingUrl: 'https://mm.redacted.de/myteam/com.mattermost.calls/expanded/test_call_id_1',
securityOrigin: 'https://mm.redacted.de/'
}
[2025-02-04 11:06:24.013] [error] [WebContentsEventM...] [renderer] com.mattermost.calls: [object DOMException] (com.mattermost.calls_ab4fc21976fdb93f_bundle.js:2)
[2025-02-04 11:06:24.033] [debug] [CallsWidgetWindow] handleResize 312 160
Additional Information
We updated the desktop client from v5.9.0 to v5.9.2 (esr) (msi via sccm)
There are no entries in the console logs (developer tools)
We've seen a bit of this happening, you may need to toggle the permissions for screen sharing on the Windows side, I'm not sure exactly where they are, but this what fixed it for a macOS user.
Alternatively, you can also try upgrading to v5.10.2, or v5.11 later this week (which is the new ESR)
I had the exact same issue with the same behavior and reproduction steps. After an update to the newest releases it changes a little bit, but still does not work.
Mattermost Desktop Version
5.11
Operating System
Windows 11 x64
Mattermost Server Version
10.4.2
Call Plugin Version
1.5.1
Now the error does not immediately show when you click on sharing, it only comes after you selected the screen/app.
If required I can also attach logs and more information.
We've seen a bit of this happening, you may need to toggle the permissions for screen sharing on the Windows side, I'm not sure exactly where they are, but this what fixed it for a macOS user.
@devinbinnie I'm not sure whether this is a permission problem. Screen sharing does work if started over the calls widget, but not when we try to start it over the calls popout window
Desktop version 5.11.1 did fixed the issue on my side.
I'll close this issue as it's fixed already.