AnswerBun.com

Electron `chrome --type=renderer --field-trial-handle=...` won't shut down, eats up Memory

Ask Ubuntu Asked by webelo on January 6, 2022

I am trying to build an app with electron. When I do this, however, it appears that several chrome processes are created that don’t shut down after closing electron. These processes eat up a lot of memory that slow down my computer. Most of the processes are called something like chrome --type=renderer --field-trial-handle=....

They occur even when I try to run the electron quick start app. I cannot figure out a way to stop these processes besides restarting the computer.

Here is a screenshot of these processes from my system monitor:

Here is a screenshot of these processes from my system monitor

This is what happens when I try to end the process. Some sort of weird non-functioning dialogue box pops up:

enter image description here

Questions.

  1. Is this problem in fact created by electron?
  2. Is there a way to shut these down within electron (e.g. via a flag)?
  3. Is there a way to shut these processes down without restarting?
  4. Would it just be better to submit an issue to the electron repo?

Info.

  • OS: Ubuntu 16.04 LTS
  • Electron Version: v1.7.9
  • Chrome Version: Version 61.0.3163.100 (Official Build) (64-bit)

2 Answers

There might be a couple of reasons for this.

You can try disabling the 'background apps' - In Chrome Settings, click on the 'Advanced' button in the navigation menu on the left. Under 'System' uncheck

Continue running background apps when Google Chrome is closed

You can also try to clear the Cache. On Ubuntu-based systems, it is located in

~/.config/google-chrome/Default/Application Cache

on Windows it is usually under

C:WindowsSystem32configsystemprofileAppDataLocalGoogleChromeUser DataDefaultCache

As noted here, you can open the Chrome Task Manager to check which tabs consume the most CPU/Memory.

Answered by egelev on January 6, 2022

It is not caused by Electron. I was searching for what they were doing consuming my memory when I ran across your question. But I am not using or even have Electron installed. I instead run Brave browser which is built upon chromium. So this must be some chrome shit. I am new to this too.

Answered by swatantra on January 6, 2022

Add your own answers!

Related Questions

Firewall won’t work on Ubuntu

1  Asked on December 29, 2021 by jack94

   

Upgrade from 18.04 to 20.04 but retain specific kernel (4.9)

0  Asked on December 29, 2021 by walter-zambotti

       

Installing system on file?

0  Asked on December 29, 2021 by ctm-8400

     

Why is my browser leaving out so much space in both sides?

8  Asked on December 29, 2021 by moshrekul-islam

     

Log files fill up too fast

0  Asked on December 29, 2021 by hardik-katehara

       

Can’t see Wi-Fi settings in Ubuntu 20.04 LTS

2  Asked on December 27, 2021 by nova1323

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir