You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var gui = require('nw.gui');
gui.Window.get().showDevTools();
var fs = require("fs");
var fileName = 'config.ini';
var canvas;
var context;
var canvasOverlay;
var contextOverlay;
fs.readFile(fileName, "utf8", function(error, data) {
if(!error){
var result = data.split( "\r\n" );
config.loadSettings( result );
}
//uncomment the setTimeout to make it not crash
// setTimeout(function(){
canvas = document.createElement('canvas');
context = canvas.getContext('2d');
canvasOverlay = document.createElement('canvas');
contextOverlay = canvasOverlay.getContext('2d');
contextOverlay.clearRect(0,0,1,1);
// 0);
});
The text was updated successfully, but these errors were encountered:
Issue Type
bug report, crashing.
Crash caused when a context operation is performed inside a fs.readFile() after creating a canvas element.
It works fine prior to 0.90.0
Additional Info
The text was updated successfully, but these errors were encountered: