You have been subscribed to a public bug: ubuntu20041:/usr/share/gnome-shell/extensions/d...@rastersoft.com$ ding.js
Kept incrementing blocks of memory using gjs. I would include a JPG of the system monitor showing gjs at 2.8GB of memory usage before the operating system stopped working. In the file listed below I did edit the file so my computer is now running smoothly and the gjs is no longer showing in the system monitor as the highest use of memory. *#!/usr/bin/env gjs /* DING: Desktop Icons New Generation for GNOME Shell * * Copyright (C) 2019 Sergio Costas (rasters...@gmail.com) * Based on code original (C) Carlos Soriano * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ * imports.gi.versions.Gtk = '3.0'; * const Gtk = imports.gi.Gtk; * const Gio = imports.gi.Gio; * const GLib = imports.gi.GLib; *let desktops = []; *let lastCommand = null; *let codePath = '.'; *let errorFound = false; *let asDesktop = false; *let primaryIndex = 0; *for(let arg of ARGV) { if (lastCommand == null) { switch(arg) { case '-E': // run it as a true desktop (transparent window and so on) asDesktop = true; break; case '-P': case '-D': case '-M': lastCommand = arg; break; default: print(`Parameter ${arg} not recognized. Aborting.`); errorFound = true; break; } continue; } if (errorFound) { break; } switch(lastCommand) { case '-P': codePath = arg; break; case '-D': let data = arg.split(":"); desktops.push({x:parseInt(data[0]), y:parseInt(data[1]), width:parseInt(data[2]), * height:parseInt(data[3]), zoom:parseFloat(data[4])}); break; case '-M': primaryIndex = parseInt(arg); break; } lastCommand = null; } *if (desktops.length == 0) { /* if no desktop list is provided, like when launching the program in stand-alone mode, * configure a 1280x720 desktop */ desktops.push({x:0, y:0, width: 1280, height: 720, zoom: 1}); } // this allows to import files from the current folder imports.searchPath.unshift(codePath); *const Prefs = imports.preferences; *const DesktopManager = imports.desktopManager; *if (!errorFound) { Gtk.init(null); Prefs.init(codePath); var desktopManager = new DesktopManager.DesktopManager(desktops, codePath, asDesktop, * primaryIndex); Gtk.main(); // return value 0; } else { // return value 1; } ** Affects: evolution (Ubuntu) Importance: Undecided Status: New -- Loaded Evolution found gjs repeat calls from ding.js overloaded memory froze 21.04 https://bugs.launchpad.net/bugs/1954478 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evolution in Ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs