mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2.03k stars 829 forks source link

Mattermost opens the calculator !!! #1588

Closed mahdiyari closed 1 month ago

mahdiyari commented 3 years ago

When I close Mattermost desktop application on windows (not entirely, just minimizing), it sometimes (very rare) opens the calculator.

It's somehow a funny and weird bug/feature. It happens very very rare so it's not easy to reproduce.

svelle commented 3 years ago

Hi @mahdiyari would you mind adding the version you're seeing this on?

You can check this if you go to the top right menu and go to Help.

Thanks!

mahdiyari commented 3 years ago

4.4.1

svelle commented 3 years ago

@mahdiyari since that version is almost one year and unsupported old I highly recommend upgrading to the latest release (4.6.2).

Feel free to reopen of the issue persists on the latest verion :)

mahdiyari commented 3 years ago

Updated to v4.6.2 since last discussion here and today it happened again. After closing mattermost window by clicking on the X, the calculator just opened up.

Qwaz commented 3 years ago

Experienced the same thing, the desktop app version is 4.7.1 and the server was 5.34.2 enterprise. Could you re-open the issue?

mahdiyari commented 3 years ago

It sometimes opens another app too. It's too rare tho.

Willyfrog commented 3 years ago

hi @Qwaz and @mahdiyari would you be open to record a video of it happening? I've never experienced that and maybe I'm missing something for repro steps

mahdiyari commented 3 years ago

It happens only sometimes. You can't just reproduce it. It might not happen for days or weeks.

Qwaz commented 3 years ago

I don't have a video, but the symptom is that calc.exe GUI pops up when I click the close button of Mattermost desktop app (which minimizes the app to the tray). It only happens once a few weeks for me as well, but I didn't see any other apps opening other than calc.exe.

mahdiyari commented 3 years ago

This time it opened up Alarms & Clock. I just used alarms recently so it must be the recently used apps just like calculator.

devinbinnie commented 2 years ago

@mahdiyari Can you tell us which OS you're running and if this still happens on v5.0.2?

infacto commented 2 years ago

I can confirm. It's weird. Sometimes random apps like Calc, Alarm or Weather open when I click X (close to systray). Mostly the calculator. Why? I haven't seen anything like that with other Electron apps. Not sure but I think it mostly happens after system startup. I cannot reproduce by show / hide (click on systray icon and X again). ... Windows 10 (20H2), Mattermost 4.6.1 - I've updated now to 5.0.4. Since this bug rarely occurs, I have to wait and watch.

infacto commented 2 years ago

Just happened: I closed Mattermost (v.5.0.4) window (sent to systray) and the Windows settings overview window opened. Why? In this case: A fresh Windows start at morning. I wrote something to the Town Square channel and clicked on X to close the window. And the Windows settings popped up. Spooky... Once it happened, it's impossible to reproduce again. Click on the systray icon and close again is not triggering this bug again. Maybe quit (exit) Mattermost and close the window again? But I can't reproduce it. It only happens sometimes after system startup. Does anyone have any idea why this mysterious behavior is occurring?

infacto commented 2 years ago

Again today. It opens the Windows settings overview window. Btw. the issue title can be changed. It's not only the calculator.

infacto commented 2 years ago

And again. Mattermost has open the alarm & clock app from Windows on closing. Nope, it's not an april fool.

devinbinnie commented 2 years ago

@infacto @mahdiyari So this has never been reproduced by anyone internally, so here's what I would like to do. Recently we've added an option to the Settings window to increase the logging level of the Desktop App. It's currently on the latest v5.1 nightly build which can be found here: https://community-daily.mattermost.com/core/channels/desktop-builds

If you could download the latest nightly from there, install it, and then go to Settings and set the Logging Level to Debug, we might be able to gather some more information. From there, once it happens, I'll need you to send me your log file (on Windows, it's located at C:\Users\<username>\AppData\Roaming\Mattermost\logs.

Thanks in advance for your assistance in helping to debug this :)

infacto commented 2 years ago

It happened again. This time with debug log. It opened the Windows 10 Calculator on Mattermost Desktop window close click.

  1. Fresh PC start.
  2. Mattermost automatically started. (Windows autostart)
  3. I wrote a greeting in the main channel.
  4. Just closed the Mattermost client to minimize into systry simply by red close button.

In this case the client window was an the second monitor. I don't know if this matter.

winver: Windows 10 Version 20H2 (Build 19042.746)

Mattermost Version 5.1.0-nightly.20220428 commit: c6bf661e

...
[2022-05-16 09:54:28.659] [debug] TeamDropdownView.handleClose
[2022-05-16 09:54:32.865] [debug] MainWindow.on.close
[2022-05-16 09:54:32.892] [debug] Utils.flushCookiesStore
[2022-05-16 09:54:36.367] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
[2022-05-16 09:54:42.549] [info]  restoreMain
[2022-05-16 09:54:42.566] [debug] WindowManager.focusBrowserView
[2022-05-16 09:54:42.637] [debug] Utils.flushCookiesStore
[2022-05-16 09:54:44.214] [debug] WindowManager.focusBrowserView
[2022-05-16 09:54:44.296] [debug] Intercom.handleOpenAppMenu
[2022-05-16 09:54:44.306] [debug] WindowManager.focusBrowserView
[2022-05-16 09:54:44.307] [debug] TeamDropdownView.handleClose
[2022-05-16 09:54:44.307] [debug] TeamDropdownView.handleClose
[2022-05-16 09:54:47.929] [debug] WindowManager.focusBrowserView
[2022-05-16 09:54:50.023] [debug] Intercom.handleOpenAppMenu
[2022-05-16 09:54:50.048] [debug] WindowManager.focusBrowserView
[2022-05-16 09:54:50.055] [debug] TeamDropdownView.handleClose
[2022-05-16 09:54:50.056] [debug] TeamDropdownView.handleClose
[2022-05-16 09:54:56.887] [debug] WindowManager.focusBrowserView
[2022-05-16 09:54:56.896] [debug] WindowManager.showSettingsWindow
[2022-05-16 09:54:56.914] [debug] App.handleAppBrowserWindowCreated
[2022-05-16 09:54:56.916] [debug] Utils.resizeScreen.handle
[2022-05-16 09:54:56.952] [debug] Utils.flushCookiesStore
[2022-05-16 09:54:57.061] [debug] Config.handleGetLocalConfiguration undefined
[2022-05-16 09:55:07.750] [debug] Utils.flushCookiesStore
[2022-05-16 09:55:36.727] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false }
Full log - Click to expand! **main.log** ```log -- START -- 2022-05-16 - Replaced some data with e.g. "localhost" and "xxx". [2022-05-16 09:51:33.546] [info] Log level set to: debug [2022-05-16 09:51:33.549] [debug] Utils.handleUpdateMenuEvent [2022-05-16 09:51:33.776] [info] Autoupgrade disabled: true [2022-05-16 09:51:33.836] [debug] WindowManager.showMainWindow undefined [2022-05-16 09:51:33.882] [debug] App.handleAppBrowserWindowCreated [2022-05-16 09:51:33.882] [debug] Utils.resizeScreen.handle [2022-05-16 09:51:33.911] [info] BrowserView created for server localhost___TAB_MESSAGING [2022-05-16 09:51:33.915] [info] [localhost___TAB_MESS...] Loading https://localhost/ [2022-05-16 09:51:33.917] [debug] viewManager.showByName localhost___TAB_MESSAGING [2022-05-16 09:51:33.921] [warn] couldn't show localhost___TAB_MESSAGING, not ready [2022-05-16 09:51:33.954] [debug] Utils.handleUpdateMenuEvent [2022-05-16 09:51:34.003] [info] config.autostart has been configured: true [2022-05-16 09:51:34.008] [info] Added Extension: React Developer Tools [2022-05-16 09:51:34.243] [verbose] Config.loadRegistry { registryData: { teams: [] } } [2022-05-16 09:51:34.245] [debug] App.Config.handleConfigUpdate [2022-05-16 09:51:34.245] [debug] viewManager.showByName localhost___TAB_MESSAGING [2022-05-16 09:51:34.246] [debug] WindowManager.showMainWindow undefined [2022-05-16 09:51:34.277] [info] Can't send reload-config, will retry [2022-05-16 09:51:34.290] [info] Log level set to: debug [2022-05-16 09:51:34.291] [debug] Utils.handleUpdateMenuEvent [2022-05-16 09:51:34.295] [debug] Config.handleGetConfiguration undefined [2022-05-16 09:51:34.297] [debug] WindowManager.focusBrowserView [2022-05-16 09:51:34.305] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false } [2022-05-16 09:51:34.306] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false, serverVersion: '5.31.9' } [2022-05-16 09:51:34.314] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false } [2022-05-16 09:51:34.315] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false, serverVersion: '5.31.9' } [2022-05-16 09:51:34.317] [debug] App.Config.handleConfigUpdate [2022-05-16 09:51:34.318] [debug] viewManager.showByName localhost___TAB_MESSAGING [2022-05-16 09:51:34.333] [info] Log level set to: debug [2022-05-16 09:51:34.334] [debug] Utils.handleUpdateMenuEvent [2022-05-16 09:51:34.340] [info] config.autostart has been configured: true [2022-05-16 09:51:34.350] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false } [2022-05-16 09:51:34.351] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false, serverVersion: '5.31.9' } [2022-05-16 09:51:34.376] [info] config.autostart has been configured: true [2022-05-16 09:51:34.389] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false } [2022-05-16 09:51:34.391] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false, serverVersion: '5.31.9' } [2022-05-16 09:51:34.394] [debug] App.Config.handleConfigUpdate [2022-05-16 09:51:34.395] [debug] viewManager.showByName localhost___TAB_MESSAGING [2022-05-16 09:51:34.408] [info] Log level set to: debug [2022-05-16 09:51:34.409] [debug] Utils.handleUpdateMenuEvent [2022-05-16 09:51:34.413] [debug] Config.handleGetConfiguration undefined [2022-05-16 09:51:34.424] [debug] Config.handleGetConfiguration undefined [2022-05-16 09:51:34.425] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false } [2022-05-16 09:51:34.428] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false, serverVersion: '5.31.9' } [2022-05-16 09:51:34.447] [info] config.autostart has been configured: true [2022-05-16 09:51:34.456] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false } [2022-05-16 09:51:34.464] [debug] ServerInfo.trySendRemoteInfo localhost { name: 'localhost', hasFocalboard: false, hasPlaybooks: false, serverVersion: '5.31.9' } [2022-05-16 09:51:34.580] [debug] MattermostView.did-finish-load localhost___TAB_MESSAGING [2022-05-16 09:51:34.581] [info] [localhost___TAB_MESS...] finished loading https://localhost/ [2022-05-16 09:51:34.585] [debug] viewManager.activateView localhost___TAB_MESSAGING [2022-05-16 09:51:34.585] [debug] viewManager.showByName localhost___TAB_MESSAGING [2022-05-16 09:51:34.934] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 22, isSystemEvent: false } [2022-05-16 09:51:34.973] [debug] webContentEvents.did-start-navigation { webContentsId: 3, url: 'https://localhost/mattermost/channels/xxx1' } [2022-05-16 09:51:35.254] [debug] WindowManager.handleReactAppInitialized localhost___TAB_MESSAGING [2022-05-16 09:51:35.255] [debug] EindowManager.handleBrowserHistoryButton localhost___TAB_MESSAGING [2022-05-16 09:51:35.273] [debug] MattermostView.handleTitleUpdate { tabName: 'localhost___TAB_MESSAGING', title: '(9) localhost1' } [2022-05-16 09:51:35.412] [debug] Config.handleGetConfiguration undefined [2022-05-16 09:51:35.450] [debug] MattermostView.handleTitleUpdate { tabName: 'localhost___TAB_MESSAGING', title: 'localhost1' } [2022-05-16 09:51:36.770] [debug] WindowManager.handleLoadingScreenAnimationFinished [2022-05-16 09:51:44.562] [debug] Utils.flushCookiesStore [2022-05-16 09:52:18.036] [debug] WindowManager.focusBrowserView [2022-05-16 09:52:19.465] [debug] Utils.flushCookiesStore [2022-05-16 09:52:35.408] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 9, isSystemEvent: false } [2022-05-16 09:53:03.850] [debug] WindowManager.focusBrowserView [2022-05-16 09:53:05.469] [debug] Utils.flushCookiesStore [2022-05-16 09:53:06.544] [debug] WindowManager.focusBrowserView [2022-05-16 09:53:07.126] [debug] Utils.flushCookiesStore [2022-05-16 09:53:35.910] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false } [2022-05-16 09:54:07.894] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:10.370] [debug] webContentEvents.did-start-navigation { webContentsId: 3, url: 'https://localhost/mattermost/channels/xxx2' } [2022-05-16 09:54:10.408] [debug] MattermostView.handleTitleUpdate { tabName: 'localhost___TAB_MESSAGING', title: 'localhost2' } [2022-05-16 09:54:10.420] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:10.830] [debug] webContentEvents.did-start-navigation { webContentsId: 3, url: 'https://localhost/mattermost/channels/xxx3' } [2022-05-16 09:54:10.853] [debug] MattermostView.handleTitleUpdate { tabName: 'localhost___TAB_MESSAGING', title: 'localhost3' } [2022-05-16 09:54:10.863] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:12.304] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:13.006] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:20.556] [debug] webContentEvents.did-start-navigation { webContentsId: 3, url: 'https://localhost/mattermost/channels/xxx1' } [2022-05-16 09:54:20.615] [debug] MattermostView.handleTitleUpdate { tabName: 'localhost___TAB_MESSAGING', title: 'localhost1' } [2022-05-16 09:54:20.631] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:21.464] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:22.240] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:28.580] [debug] webContentEvents.did-start-navigation { webContentsId: 3, url: 'https://localhost/mattermost/channels/xxx3' } [2022-05-16 09:54:28.647] [debug] MattermostView.handleTitleUpdate { tabName: 'localhost___TAB_MESSAGING', title: 'localhost3' } [2022-05-16 09:54:28.659] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:32.865] [debug] MainWindow.on.close [2022-05-16 09:54:32.892] [debug] Utils.flushCookiesStore [2022-05-16 09:54:36.367] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false } [2022-05-16 09:54:42.549] [info] restoreMain [2022-05-16 09:54:42.566] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:42.637] [debug] Utils.flushCookiesStore [2022-05-16 09:54:44.214] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:44.296] [debug] Intercom.handleOpenAppMenu [2022-05-16 09:54:44.306] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:44.307] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:44.307] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:47.929] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:50.023] [debug] Intercom.handleOpenAppMenu [2022-05-16 09:54:50.048] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:50.055] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:50.056] [debug] TeamDropdownView.handleClose [2022-05-16 09:54:56.887] [debug] WindowManager.focusBrowserView [2022-05-16 09:54:56.896] [debug] WindowManager.showSettingsWindow [2022-05-16 09:54:56.914] [debug] App.handleAppBrowserWindowCreated [2022-05-16 09:54:56.916] [debug] Utils.resizeScreen.handle [2022-05-16 09:54:56.952] [debug] Utils.flushCookiesStore [2022-05-16 09:54:57.061] [debug] Config.handleGetLocalConfiguration undefined [2022-05-16 09:55:07.750] [debug] Utils.flushCookiesStore [2022-05-16 09:55:36.727] [debug] Initialize.UserActivityMonitor.on(status) { userIsActive: true, idleTime: 0, isSystemEvent: false } -- END -- ```

I just see "handleClose" and "on.close". ... I doubt that helps.

devinbinnie commented 2 years ago

@infacto Thanks for the log! Yeah unfortunately there doesn't seem to be any indication that our app is starting another process, so the oddness of this issue continues :P

I'm wondering if there's some mechanism in Windows that tries to open an app that was recently opened but opens the wrong app? Just spitballing here...

devinbinnie commented 1 year ago

Is this still an issue for anyone on v5.3 or the latest nightly?

devinbinnie commented 1 month ago

Closing as stale. Hopefully this is no longer an issue anymore, but if so let me know and i'll work with our security team on this.