Electron crashing when opening more than one application

0

I'm going through a little problem: c

Whenever I open more than one Electron application and it starts loading a new main window for the user to start using the application, the entire operating system gets extremely slow for a few seconds until the page is fully loaded. >

This happens only when you open more than one Electron application. In my case, I'm using Windows 10.

Question update

Mysteriously other applications that run Electron such as Discord, do not make that problem happen.

This happens only between my applications developed on Electron.

Update 2

Modules used in preload:

const { remote, ipcRenderer, shell } = require('electron');
const Tray = remote.Tray;
const Menu = remote.Menu;
const app = remote.app;
const dialog = remote.dialog;

const download = require('./download');
const exec = require('child_process').execFile;
const empty = require('empty-folder');
const JSZip = require("jszip");
const path = require('path');
const fs = require('fs');
const osLocale = require('os-locale');
const ioHook = require('iohook');
const chokidar = require('chokidar');
const md5 = require('md5');
const md5File = require('md5-file');

const config = require('../../config.json');
const package = require('../../package.json');
const languagelist = require('../_locales/list.json');

const appUserModelId2 = remote.getGlobal("appUserModelId2");
const isAsar = remote.getGlobal("isAsar");
const tinyDir = remote.getGlobal("tinyDir");
    
asked by anonymous 03.07.2018 / 07:24

2 answers

1

I discovered the problem on my own. It was a conflict going on when the ioHook module was loaded by another application.

Thank you for trying to help me.

    
03.07.2018 / 08:18
0

Electron is very heavy. The reason for this is that it uses Google Chrome underneath the cloths, and Chrome is a voracious devourer of memory, processing and disk IO.

Here are some references to this:

03.07.2018 / 07:39