Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Mattermost desktop app doesn't refresh UI when opened from notification #3132

Open
6 tasks done
ZarenOFF opened this issue Aug 22, 2024 · 12 comments
Open
6 tasks done

Comments

@ZarenOFF
Copy link

Checks before filing an issue

Mattermost Desktop Version

5.9.0

Operating System

Windows 10 x64 22H2

Mattermost Server Version

9.11

Steps to reproduce

  1. Ensure Mattermost desktop app is closed or minimized.
  2. Receive a new message, which triggers a Windows notification.
  3. Click on the notification.
  4. Observe that the app opens but remains in its previous state.
  5. Notice that the new message and chat are not visible on the screen.
  6. Click anywhere within the app window.
  7. Observe that the page refreshes and navigates to the correct chat with the new message.

Expected behavior

When opening the app from a notification, the UI should immediately navigate to the chat with the new message and display it without requiring an additional click.

Observed behavior

The app opens but remains in its previous state, and the new message and chat are not visible until the user clicks somewhere in the app window.

Log Output

[2024-08-22 13:25:28.696] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2024-08-22 13:25:30.761] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:25:30.771] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:25:30.785] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:25:30.785] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:26:29.247] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 19, isSystemEvent: false }
[2024-08-22 13:27:15.646] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2024-08-22 13:27:30.753] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:27:30.754] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:27:30.765] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:27:30.767] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:27:30.786] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:27:30.787] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:27:30.794] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:27:30.794] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:28:19.305] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2024-08-22 13:28:30.757] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:28:30.758] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:28:30.768] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:28:30.769] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:28:30.787] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:28:30.787] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:28:30.804] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:28:30.804] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:29:19.843] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 22, isSystemEvent: false }
[2024-08-22 13:30:30.763] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:30:30.773] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:30:30.788] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:30:30.788] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:30:52.674] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2024-08-22 13:31:53.289] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 9, isSystemEvent: false }
[2024-08-22 13:32:53.829] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 1, isSystemEvent: false }
[2024-08-22 13:33:30.755] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:33:30.765] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:33:30.781] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:33:30.781] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:33:54.383] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 48, isSystemEvent: false }
[2024-08-22 13:34:30.762] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:34:30.762] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:34:30.772] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:34:30.772] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:34:30.786] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:34:30.787] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:34:30.801] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:34:30.801] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:36:16.298] [debug] [App.Intercom] handleMentionNotification {
  channelId: '6qd51xzhhpgsbk8rp4sf81eooy',
  teamId: '',
  url: '/TEST/channels/4tt3fy81b3fjjdpgh5s3fz68py__8ok6g7ymoprxuf8fqtk83s6riw',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 13:36:16.299] [debug] [Notifications] displayMention {
  channelId: '6qd51xzhhpgsbk8rp4sf81eooy',
  teamId: '',
  url: '/TEST/channels/4tt3fy81b3fjjdpgh5s3fz68py__8ok6g7ymoprxuf8fqtk83s6riw',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 13:36:16.299] [debug] [Notifications] should not notify for this view 4
[2024-08-22 13:36:16.385] [debug] [App.Intercom] handleMentionNotification {
  channelId: '6qd51xzhhpgsbk8rp4sf81eooy',
  teamId: '',
  url: '/TEST/channels/4tt3fy81b3fjjdpgh5s3fz68py__8ok6g7ymoprxuf8fqtk83s6riw',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 13:36:16.386] [debug] [Notifications] displayMention {
  channelId: '6qd51xzhhpgsbk8rp4sf81eooy',
  teamId: '',
  url: '/TEST/channels/4tt3fy81b3fjjdpgh5s3fz68py__8ok6g7ymoprxuf8fqtk83s6riw',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 13:36:16.386] [debug] [PermissionsManager] doPermissionRequest notifications { requestingUrl: 'https://mm.example.com/', isMainFrame: false }
[2024-08-22 13:36:16.406] [debug] [Notifications] displayMention.show TEST 9054186c-9fb7-417e-b6db-4e72f6f18333
[2024-08-22 13:36:21.899] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2024-08-22 13:36:22.050] [debug] [Notifications] notification click TEST 9054186c-9fb7-417e-b6db-4e72f6f18333
[2024-08-22 13:36:22.055] [debug] [ViewManager] handleBrowserHistoryPush 3 /TEST/channels/4tt3fy81b3fjjdpgh5s3fz68py__8ok6g7ymoprxuf8fqtk83s6riw
[2024-08-22 13:36:22.056] [debug] [ServerManager] [0fd5a740-a2f3-48b...] getOrderedTabsForServer
[2024-08-22 13:36:22.223] [debug] [ViewManager] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] showById 8f510ce4-77c6-4fee-90b2-fbfddcd71298
[2024-08-22 13:36:22.241] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] did-start-navigation https://mm.example.com/TEST/channels/4tt3fy81b3fjjdpgh5s3fz68py__8ok6g7ymoprxuf8fqtk83s6riw
[2024-08-22 13:36:22.249] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [TEST] [TAB_MESSAGING] did-start-navigation https://mm.example.com/TEST/messages/@a.bcdefgh
[2024-08-22 13:36:22.263] [debug] [ViewManager] handleSetCurrentViewBounds { x: 0, y: 0, width: 2560, height: 1400 }
[2024-08-22 13:36:22.264] [debug] [ModalManager] handleResizeModal {
  bounds: { x: 0, y: 0, width: 2560, height: 1400 },
  modalQueueLength: 0
}
[2024-08-22 13:36:22.265] [debug] [ViewManager] focusCurrentView
[2024-08-22 13:36:30.772] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] computer woke up - reconnecting (7204.2ea8231c62adcdb2e04d.js:1)
[2024-08-22 13:36:30.782] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] Reconnecting WebSocket (5064.e03346219565f51b94bf.js:1)
[2024-08-22 13:36:30.799] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: websocket reconnect handler (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:36:30.800] [debug] [WebContentsEventM...] [5b0e1688-03cd-434...] [TEST SRV] [TAB_MESSAGING] [renderer] com.mattermost.calls: resetting state (com.mattermost.calls_f3ed54dc95aad70d_bundle.js:2)
[2024-08-22 13:36:33.238] [debug] [ViewManager] handleSetCurrentViewBounds { x: 0, y: 0, width: 2560, height: 1400 }
[2024-08-22 13:36:33.238] [debug] [ModalManager] handleResizeModal {
  bounds: { x: 0, y: 0, width: 2560, height: 1400 },
  modalQueueLength: 0
}
[2024-08-22 13:36:33.239] [debug] [MainWindow] saving window state {
  x: -8,
  y: -8,
  width: 2576,
  height: 1416,
  maximized: true,
  fullscreen: false
}

Additional Information

It's important to note that this issue is intermittent and difficult to reproduce consistently. I haven't been able to identify a specific pattern or set of conditions that consistently lead to this behavior.

@Reydan46
Copy link

Reydan46 commented Aug 22, 2024

We are facing the same issue, and we haven't identified a consistent pattern to reproduce it.

[2024-08-22 14:54:08.443] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 37, isSystemEvent: false }
[2024-08-22 14:54:32.850] [debug] [ViewManager] handleSetCurrentViewBounds { x: 2560, y: 0, width: 1920, height: 1040 }
[2024-08-22 14:54:32.851] [debug] [ModalManager] handleResizeModal {
  bounds: { x: 2560, y: 0, width: 1920, height: 1040 },
  modalQueueLength: 0
}
[2024-08-22 14:54:32.867] [debug] [MainWindow] saving window state {
  x: 2552,
  y: -8,
  width: 1936,
  height: 1056,
  maximized: true,
  fullscreen: false
}
[2024-08-22 14:55:08.928] [debug] [App.Initialize] UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2024-08-22 14:55:10.466] [debug] [App.Intercom] handleMentionNotification {
  channelId: 'usgrqphcbjyojfxh1uank974xh',
  teamId: '',
  url: '/main/channels/3x56k5pkitr5ze99ay5njdtp8c__4tt3fy81b3fjjdpgh5s3fz68py',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 14:55:10.466] [debug] [Notifications] displayMention {
  channelId: 'usgrqphcbjyojfxh1uank974xh',
  teamId: '',
  url: '/main/channels/3x56k5pkitr5ze99ay5njdtp8c__4tt3fy81b3fjjdpgh5s3fz68py',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 14:55:10.467] [debug] [Notifications] should not notify for this view 4
[2024-08-22 14:55:10.572] [debug] [App.Intercom] handleMentionNotification {
  channelId: 'usgrqphcbjyojfxh1uank974xh',
  teamId: '',
  url: '/main/channels/3x56k5pkitr5ze99ay5njdtp8c__4tt3fy81b3fjjdpgh5s3fz68py',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 14:55:10.573] [debug] [Notifications] displayMention {
  channelId: 'usgrqphcbjyojfxh1uank974xh',
  teamId: '',
  url: '/main/channels/3x56k5pkitr5ze99ay5njdtp8c__4tt3fy81b3fjjdpgh5s3fz68py',
  silent: false,
  soundName: 'Bing'
}
[2024-08-22 14:55:10.574] [debug] [PermissionsManager] doPermissionRequest notifications { requestingUrl: 'https://mattermost.tps.net/', isMainFrame: false }
[2024-08-22 14:55:10.591] [debug] [Notifications] displayMention.show MAIN b85b16e2-aa6a-4394-871b-04b9ca6e4766
[2024-08-22 14:55:10.591] [debug] [Notifications] close :usgrqphcbjyojfxh1uank974xh
[2024-08-22 14:55:12.499] [debug] [Notifications] notification click MAIN b85b16e2-aa6a-4394-871b-04b9ca6e4766
[2024-08-22 14:55:12.501] [debug] [ViewManager] handleBrowserHistoryPush 3 /main/channels/3x56k5pkitr5ze99ay5njdtp8c__4tt3fy81b3fjjdpgh5s3fz68py
[2024-08-22 14:55:12.501] [debug] [ServerManager] [0fd5a740-a2f3-48b...] getOrderedTabsForServer
[2024-08-22 14:55:12.684] [debug] [ViewManager] [8f510ce4-77c6-4fe...] [MAIN] [TAB_MESSAGING] showById 8f510ce4-77c6-4fee-90b2-fbfddcd71298
[2024-08-22 14:55:12.694] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [MAIN] [TAB_MESSAGING] did-start-navigation https://mattermost.tps.net/main/channels/3x56k5pkitr5ze99ay5njdtp8c__4tt3fy81b3fjjdpgh5s3fz68py
[2024-08-22 14:55:12.706] [debug] [WebContentsEventM...] [8f510ce4-77c6-4fe...] [MAIN] [TAB_MESSAGING] did-start-navigation https://mattermost.tps.net/main/messages/@testas
[2024-08-22 14:55:12.713] [debug] [ViewManager] handleSetCurrentViewBounds { x: 2560, y: 0, width: 1920, height: 1040 }
[2024-08-22 14:55:12.714] [debug] [ModalManager] handleResizeModal {
  bounds: { x: 2560, y: 0, width: 1920, height: 1040 },
  modalQueueLength: 0
}
[2024-08-22 14:55:12.715] [debug] [ViewManager] focusCurrentView
[2024-08-22 14:55:17.207] [debug] [ViewManager] handleSetCurrentViewBounds { x: 2560, y: 0, width: 1920, height: 1040 }
[2024-08-22 14:55:17.208] [debug] [ModalManager] handleResizeModal {
  bounds: { x: 2560, y: 0, width: 1920, height: 1040 },
  modalQueueLength: 0
}
[2024-08-22 14:55:17.211] [debug] [MainWindow] saving window state {
  x: 2552,
  y: -8,
  width: 1936,
  height: 1056,
  maximized: true,
  fullscreen: false
}

image

@devinbinnie
Copy link
Member

I've seen this before - but have never been able to reproduce. Can someone take a video for me just so I can see exactly what the steps look like?

@ZarenOFF
Copy link
Author

issue.mp4

Here is the video with the error. It was very difficult to reproduce.
Sorry for the blur, I cannot disclose confidential data.

@devinbinnie
Copy link
Member

@ZarenOFF Thanks for the video! No worries about the blur, so it looks like we're seeing a mention badge in the Desktop App at the top, but as said the view literally isn't navigating.

One more request - can you turn on Debug logging in the Settings modal, reproduce one more time and send me the logs? (you may want to sanitize those before sending as well)

@ZarenOFF
Copy link
Author

@devinbinnie Here is the full log with debug enabled. The issue occurred when the message arrived at 15:34:51.
Also, the log in the first message is also a log with this problem and debug enabled.
main.log

@devinbinnie
Copy link
Member

Thanks @ZarenOFF. I'll have to investigate and get back to you.

@devinbinnie
Copy link
Member

@ZarenOFF I spent some time trying to reproduce this but unfortunately got nowhere. I have a couple theories as to what might be going on, but unfortunately nothing I can act on since I can't get reproduce the issue.

My leading theory is: The tab has gone to sleep (which is why we see websocket reconnecting messages) and is not waking up correctly until some kind of user interaction happens, which is why it's not navigating until you click somewhere. It's probably happening intermittently due to some race condition between methods that unminimize/unhide the app and navigate to the correct channel.

I think there might be a way to force that to happen, but I've been unsuccessful doing so so far. I'll hopefully be able to spend more time on it eventually, but right now I don't have the time to focus on it.

Thanks for all the feedback :)
Created a JIRA ticket so we don't lose track of this: https://mattermost.atlassian.net/browse/MM-60305

@ZarenOFF
Copy link
Author

@devinbinnie I would also like to add that we are using HAProxy as a reverse proxy for Mattermost, which might be important. Today, we slightly adjusted the HAProxy configuration based on this article, and we will see if it has any effect.
In any case, thank you for your help.

@ZarenOFF
Copy link
Author

ZarenOFF commented Nov 19, 2024

@devinbinnie Finally, we were able to find the reason leading to the error. Here are the exact steps to reproduce the problem:

  1. Open Mattermost.
  2. Now, do not minimize Mattermost, but open another application on top of Mattermost (or drag it so that it overlaps the Mattermost window).
  3. Send yourself a message from another account (it does not matter if it is a personal or group message).
  4. Open Mattermost by clicking on the Windows notification.
  5. The window will be frozen, and you will not see the new message until you click inside the window.
issue2.mp4

It is important not to minimize or close Mattermost, this only occurs when another window is on top of it!

This issue is reproducible on Windows 10 22H2, however, our tests on Windows 11 22H3 did not reveal this issue.
I hope this helps.

@devinbinnie
Copy link
Member

Thanks for the video @ZarenOFF, unfortunately given your exact steps I am still unable to reproduce your issue. This is starting to feel like less of a Desktop App issue and more than likely an issue on your machine. Is this consistently reproducible across multiple Windows 10 machines? Do you have any window management software on those machines?

@Reydan46
Copy link

@devinbinnie
After internal testing, it was determined that the issue occurs exclusively when using three or more monitors. It is also important to note that not all applications above the Mattermost client exhibit this problem. The issue definitely occurs if Explorer or Chrome is open above the client.

Additionally, the problem only appears on Windows 10. Everything works fine on Windows 11. Tests were conducted on several computers with different hardware.

If it matters: Testing was done only on NVidia graphics cards with Intel processors.

@devinbinnie
Copy link
Member

@Reydan46 Thanks, that might be helpful, I have been mostly testing in VMs for Windows 10 (all my other Windows machines are Windows 11). I will see if I can reproduce given those conditions.

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

No branches or pull requests

3 participants