Closed mahdiyari closed 1 month 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!
4.4.1
@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 :)
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.
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?
It sometimes opens another app too. It's too rare tho.
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
It happens only sometimes. You can't just reproduce it. It might not happen for days or weeks.
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.
This time it opened up Alarms & Clock. I just used alarms recently so it must be the recently used apps just like calculator.
@mahdiyari Can you tell us which OS you're running and if this still happens on v5.0.2?
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.
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?
Again today. It opens the Windows settings overview window. Btw. the issue title can be changed. It's not only the calculator.
And again. Mattermost has open the alarm & clock app from Windows on closing. Nope, it's not an april fool.
@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 :)
It happened again. This time with debug log. It opened the Windows 10 Calculator on Mattermost Desktop window close click.
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 }
I just see "handleClose" and "on.close". ... I doubt that helps.
@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...
Is this still an issue for anyone on v5.3 or the latest nightly?
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.
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.