Loaded Evolution found gjs repeat calls from ding.js overloaded memory froze 21.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
evolution (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
ubuntu20041:/<email address hidden>$ 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 (<email address hidden>)
* 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://
*/
* imports.
* 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)
break;
case '-P':
case '-D':
case '-M':
break;
default:
break;
}
continue;
}
if (errorFound) {
break;
}
switch(
case '-P':
codePath = arg;
break;
case '-D':
let data = arg.split(":");
break;
case '-M':
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.
}
// this allows to import files from the current folder
imports.
*const Prefs = imports.
*const DesktopManager = imports.
*if (!errorFound) {
Gtk.init(null);
Prefs.
var desktopManager = new DesktopManager.
Gtk.main();
// return value
0;
} else {
// return value
1;
}
affects: | canonical-identity-provider → evolution (Ubuntu) |
Can you put the specific changes that you did to the code?