Score:0

Gnome-shell uses more than 2GB when idle, with gnome calendar found in error logs

pl flag

I found that whenever I leave my laptop idle for a while (no suspend because of Caffeine)it gets stuck and I need to force reboot the system by the power button. I tried disabling all the startup applications, disabling and even uninstalling the extensions which appear on syslog, etc. I enabled a system monitor extension and I found whenever I leave the system idle, RAM usage is getting higher until everything gets stuck. So, before I lose control of everything I used system monitor and found that Gnome-shell is using 2.3GB RAM! I restarted the shell (alt-F2 then r) and the RAM usage reduced down to 237MB. using tail -f /var/log/syslog gives me errors like this:

gnome-shell[4646]: #0   5572a9982f20 i resource:///org/gnome/shell/ui/dateMenu.js

and using pmap pgrep gnome-shell | grep -v -i deleted > /tmp/gnome-pmap1.dump will give me errors like this related to the calendar:

2057:   /usr/libexec/gnome-shell-calendar-server

Using memstat (mentioned here I found that the problem is mostly made by chrome_crashpad_handler and when I kill this process everything is fine. but I dont know how to disable or totally remove it, and I dont know what it is at all!

Before-after picture is attached.

P.S. Ubuntu 22.10, Gnome 43.1, X11, on a Dell thinkpad Inspiron 7348: 4GB RAM, Core i5 CPU, Intel Graphics

before restarting shell

after

Max Ballard avatar
id flag
Does this answer your question? [Gnome-shell is taking a lot of ram](https://askubuntu.com/questions/1266498/gnome-shell-is-taking-a-lot-of-ram)
Masoud Borbor avatar
pl flag
@MaximilianBallard nope. even disabling all extensions doesnt fix the problem. but reviewing the logs makes me beleive it is somehow related to the gnome calendar. I will edit my question to add the notes
Max Ballard avatar
id flag
Run `top` or `htop` in terminal and sort by memory usage, and you might also want to set it to tree mode which will indent child processes making it easier to view. The subprocesses of gnome-shell should be shown, if not then it could be a memory leak. In that situation you might want to look at [this](https://askubuntu.com/questions/152716/how-to-detect-a-memory-leak) question.
karel avatar
sa flag
Does this answer your question? [How to detect a memory leak?](https://askubuntu.com/questions/152716/how-to-detect-a-memory-leak)
Masoud Borbor avatar
pl flag
@karel I couldn't understand how to use memprof but using memstat I found that the problem is mostly made by chrome_crashpad_handler and when I kill this process everything is fine. but I don`t know how to disable or totally remove it
karel avatar
sa flag
@MasoudBorbor I found a question on Ask Ubuntu about this topic: [Ubuntu 21.10 Chrome won't open](https://askubuntu.com/questions/1403003/ubuntu-21-10-chrome-wont-open). An answer to this question said that deleting `~/.config/google-chrome` with `rm -rf ~/.config/google-chrome` worked.
Score:0
pl flag

After disabling everything suspicious, I still had the issue but before getting ram usage too much that I can't check anything, I used tail -f /var/log/syslog and faced too many errors like this:

Feb 26 20:46:46 thinkpad-lap gnome-shell[2087]: #0   55c0fea1a048 i   resource:///org/gnome/shell/ui/dateMenu.js:370 (34058da3b830 @ 55)

Feb 26 20:46:45 thinkpad-lap gnome-shell[2087]: Object .Gjs_ui_dateMenu_EventsSection (0x55c0f7150cd0), has been already disposed — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.

Feb 26 20:46:46 thinkpad-lap gnome-shell[2087]: == Stack trace for context 0x55c0f38d1190 ==

there was a lot of errors and things like these, so I started to search one by one, and found this bug and solution

after backing up my clock setting:

dbus-launch dconf dump / > gnome-desktop.dconf

I did reset all clocks settings with:

dbus-launch dconf reset -f /org/gnome/clocks/

dbus-launch dconf reset -f /org/gnome/shell/world-clocks/

and it relieved me of an old disgusting problem.

Masoud Borbor avatar
pl flag
now I have only this error in log (which is not a bothering problem yet, just eager to know about it): gnome-shell[2087]: Ignoring length property that isn't a number at line 1, col 67
ar flag
You may want to come a bug report so that it gets fixed for Ubuntu.
vn flag
[Better use](https://askubuntu.com/questions/249887/gconf-dconf-gsettings-and-the-relationship-between-them) `gsettings reset`/`reset-recursively`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.