• Here is the output after 30 power cycles:

    Loading 7981 bytes from flash...
    Running onInit()...
    299 { "free": 468, "usage": 932, "total": 1400, "history": 1 }
    ERROR: Out of Memory!
    WARNING: Truncating string as not enough memory
    Execution Interrupted during event processing.
    at line 1 col 127
    ...[0]]=this.flash.read(t,r+4)),r+=t+7&-4,a=this.flash.read(4,r...
                                  ^
    in function "readAll" called from line 1 col 24
    var t,e,r=this.readAll();this.flash.erasePage(this.addr),t=t...
                           ^
    in function "cleanup" called from line 1 col 208
    ...dAddr&&(r.end=this.cleanup(),r.end+e.length+4>=this.endAddr)...
                                  ^
    in function "write" called from line 1 col 96
    ...f.write(this.fileNo,pack(e)),sleep(3,function(){return Confi...
                                  ^
    in function "write" called from line 1 col 83
    ...return inpCounter.write(++n),n}catch(o){return e=o,console.l...
                                  ^
    in function "incInput" called from line 1 col 22
    console.log(incInput(),process.memory()),sleep(5,function(){...
                         ^
    in function "n" called from line 1 col 4
    n(e)
       ^
    in function called from system
    ESSID:  aea
    ESSID:  aktos-elektronik
    ESSID:  Enopan
    trying to connect to wifi... { 
    

    The Out of memory error is thrown right after onInit() runs. How could it be possible?

    Edit

    Program is not starting at all afterwards. Giving the following error:

    Loading 7981 bytes from flash...
    Running onInit()...
    ERROR: Out of Memory!
    WARNING: Truncating string as not enough memory
    Execution Interrupted during event processing.
    at line 1 col 127
    ...[0]]=this.flash.read(t,r+4)),r+=t+7&-4,a=this.flash.read(4,r...
                                  ^
    in function "readAll" called from line 1 col 24
    var t,e,r=this.readAll();this.flash.erasePage(this.addr),t=t...
                           ^
    in function "cleanup" called from line 1 col 208
    ...dAddr&&(r.end=this.cleanup(),r.end+e.length+4>=this.endAddr)...
                                  ^
    in function "write" called from line 1 col 96
    ...f.write(this.fileNo,pack(e)),sleep(3,function(){return Confi...
                                  ^
    in function "write" called from line 1 col 83
    ...return inpCounter.write(++n),n}catch(o){return e=o,console.l...
                                  ^
    in function "incInput" called from line 1 col 22
    console.log(incInput(),process.memory()),sleep(5,function(){...
                         ^
    in function called from line 1 col 110
    ...return n(e)})}(function(){})
                                  ^
    in function "sim2" called from line 1 col 44
    ...mitFilter(),setupIo(),sim2(),sleep(1e3,function(){return con...
                                  ^
    in function called from system
    WARNING: Truncating string as not enough memory
    Execution Interrupted during event processing.
    at line 1 col 127
    ...[0]]=this.flash.read(t,r+4)),r+=t+7&-4,a=this.flash.read(4,r...
                                  ^
    in function "readAll" called from line 1 col 24
    var t,e,r=this.readAll();this.flash.erasePage(this.addr),t=t...
                           ^
    in function "cleanup" called from line 1 col 208
    ...dAddr&&(r.end=this.cleanup(),r.end+e.length+4>=this.endAddr)...
                                  ^
    in function "write" called from line 1 col 37
    Config.f.write(this.raidFile,pack(e))
                                        ^
    in function called from system
    
About

Avatar for ceremcem @ceremcem started