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]: Electron/Chromium window's memory is not freed when the window is closed #1580

Open
Markus-included opened this issue Feb 28, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Markus-included
Copy link

Can you reproduce this bug in the website/PWA?

Not applicable

Describe the bug

I've recently looked into htop while teams was minimized to the tray (!not a single window open!) and I saw that it still was between 300MB - 400MB. I'm assuming this is due to Electron/TeamsForLinux not freeing memory when the window is minimized to the tray. This might be an optimization on your part, if that's the case, please make able to be disabled

What package are you using?

deb

Version

1.12.7

Reproduction steps

1. Close the window
2. Compare memory usage with the memory usage before the window was closed
3. See that it's still in the hundreds of megabytes

Expected Behavior

1. Close the window
2. Compare memory usage with the memory usage before the window was closed
3. See that it's been freed

Debug

No config file found, using default values
all good with appLogLevels you aren't using them
Initialising logger with config: "{}"
10:05:14.405 › File logging at /home/markus/.config/teams-for-linux/logs/main.log with level silly
10:05:14.407 › Console logging enabled with level silly
10:05:14.407 › Logger initialised
10:05:14.407 › configPath: /home/markus/.config/teams-for-linux
10:05:14.408 › configFile: {}
10:05:14.410 › Running under Wayland, switching to PipeWire...
10:05:14.731 › processArgs: [
  '/opt/teams-for-linux/teams-for-linux',
  '--webDebug',
  '--logConfig={}'
]
10:05:14.733 › testing RegExp processArgs false
10:05:14.733 › testing RegExp processArgs false
10:05:14.734 › testing RegExp processArgs false
10:05:14.735 › Waiting for network...
10:05:14.735 › Testing network using net.request() for https://teams.microsoft.com
10:05:14.738 › Spellchecker is disabled!
[25136:0228/100514.900727:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[25136:0228/100514.900895:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[25136:0228/100514.900991:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[25136:0228/100514.901058:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[25136:0228/100514.903600:ERROR:browser_main_loop.cc(279)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[25136:0228/100514.956768:ERROR:nss_util.cc(345)] After loading Root Certs, loaded==false: NSS error code: -8018
10:05:15.016 › Network test successful with method https
10:05:15.017 › Loading initial URL...
10:05:15.611 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
[25136:0228/100515.614111:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented
10:05:16.047 › did-frame-finish-load {} true
10:05:16.048 › did-finish-load
10:05:17.733 › cookie changed cause: overwrite 
 removed?: true 

10:05:17.733 › cookie: authtoken 
 expirationDate: 1740812069.034738 
 domain: teams.microsoft.com
10:05:17.735 › cookie changed cause: explicit 
 removed?: false 

10:05:17.735 › cookie: authtoken 
 expirationDate: 1740812067.733219 
 domain: teams.microsoft.com
10:05:18.254 › Badge count set to '0'
10:05:18.315 › Badge count set to '0'
10:05:20.214 › Badge count set to '0'
10:05:22.327 › did-frame-finish-load {} false
10:05:22.388 › Badge count set to '3'
[25253:0228/100524.912116:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
10:05:25.638 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
10:05:27.404 › window close
10:05:36.058 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
10:05:37.609 › window close
10:05:37.771 › window closed
10:05:37.773 › before-quit
10:05:37.773 › will-quit
10:05:37.773 › quit

Additional context

No response

@Markus-included Markus-included added the bug Something isn't working label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants