electron / packager

Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI
https://npm.im/@electron/packager
BSD 2-Clause "Simplified" License
178 stars 17 forks source link

White color screen on Debian Linux armv7l #778

Closed patriciovergaratobar closed 6 years ago

patriciovergaratobar commented 6 years ago

Hello there,

I have a problem with my application building for Linux armv7l. The problem comes after approximately three days of working application. The screen went blank.

electronpantallaerror

In the operating system proccess I see the next:

electronproccerror

When the application is working good the proccess are:

electronproccok

my temporary solution for this problem is have a bash script in the operating systema which is checking the proccess of my application where "--type=renderer" and restart the application when is not working.

the name of my application is consolaview, and the main script is:

const electron = require('electron');
const app = electron.app;
const BrowserWindows = electron.BrowserWindow;
const path = require('path');
const url = require('url');
var mainWindow;
app.on('ready', () => {
    app.commandLine.appendSwitch('disable-web-security');
    let configuracion = {
        width: 840,
        height: 440,
        backgroundColor: '#ededed',
        devTools: false,
        contextIsolation: false,
        autoHideMenuBar: true,
        'node-integration': 'iframe',
        'webPreferences': {
                   'webSecurity': false,
               'defaultFontSize': 12,
                   'defaultMonospaceFontSize': 13,
               'zoomFactor': 0.98
        },
        fullscreen: true
    };
    mainWindow = new BrowserWindows(configuracion);
    let conexion = () => {
            mainWindow.loadURL('file://' +  __dirname + '/main.html', {
                mode: 'no-cors'
            });
    };
    mainWindow.on('closed', () => {
        mainWindow = null;
    });
    conexion();
});

app.on('window-all-closed', () => {
  app.quit()
})

The version of Electron is: electron "1.7.9", electron-packager "10.1.0"

The info of my environment is:

info1

My question is: Exist other solutions for this problem?

welcome[bot] commented 6 years ago

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

malept commented 6 years ago

Does this happen in any other target platform/arch, or just armv7l?

patriciovergaratobar commented 6 years ago

only happens in armv7l

malept commented 6 years ago

This doesn't sound like an Electron Packager specific problem, but rather an issue with Electron proper, because it's a rendering issue on a specific platform/arch. I would suggest seeing if anyone else in the Electron community has this problem, and if necessary, filing a bug in the Electron issue tracker.

Camixxx commented 5 years ago

I met same problem on raspberrypi. armv7l.

malept commented 5 years ago

This is likely https://github.com/electron/electron/issues/12937 (and not caused by Electron Packager itself).