I'm using canvas 2.80. So my program, worked perfectly before I turned off my PC. To the next day, without change nothing on the code, the input stream error appeared to me when I ran the program.
My code is based on this, the main.js is the one that handle all the canvas printing here: Link