• I'm using WebIDE, there is possible to use "console" also :) But, still no luck. I recompiled without Graphics and still same behavior. Using this following test code:

    function onInit(){
      console.log(JSON.stringify(process.env))­;
      console.log('A: ', process.memory());
      require("ESP8266").logDebug(true);
      require("ESP8266").setLog(2);
      console.log(require("ESP8266").getState(­));
      console.log('B: ', process.memory());
      var fs = require("fs");
      console.log('C: ', process.memory());
      SPI1.setup({ sck:NodeMCU.D5, miso:NodeMCU.D6, mosi:NodeMCU.D7 });
      E.connectSDCard(SPI1, NodeMCU.D8 /*CS*/);
      console.log('D: ', process.memory());
      console.log(fs.readdirSync());
      console.log('E: ', process.memory());
      console.log(fs.readFileSync("test.txt"))­;
      console.log('F: ', process.memory());
    }
    

    And here is a result:

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v04 (c) 2019 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:1024/1024, manuf 0x5e chip 0x4016
    {"VERSION":"2v04","GIT_COMMIT":"3956264e­","BOARD":"ESP8266_4MB","FLASH":0,"RAM":­81920,"SERIAL":"500291c3-483d","CONSOLE"­:"Serial1","MODULES":"Flash,Storage,heat­shrink,fs,net,dgram,http,NetworkJS,Wifi,­ESP8266,TelnetServer,crypto,neopixel","E­XPTR":1073643640}
    A:  { "free": 1508, "usage": 92, "total": 1600, "history": 62,
      "gc": 0, "gctime": 1.913 }
    {
      "sdkVersion": "2.2.0-dev(9422289)",
      "cpuFrequency": 160, "freeHeap": 12888, "maxCon": 10,
      "flashMap": "4MB:1024/1024",
      "flashKB": 4096,
      "flashChip": "0x5e 0x4016"
     }
    B:  { "free": 1505, "usage": 95, "total": 1600, "history": 62,
      "gc": 0, "gctime": 1.915 }
    C:  { "free": 1502, "usage": 98, "total": 1600, "history": 62,
      "gc": 0, "gctime": 1.897 }
    D:  { "free": 1479, "usage": 121, "total": 1600, "history": 62,
      "gc": 0, "gctime": 1.934 }
    [
      "System Volume Information",
      "test.txt"
     ]
    E:  { "free": 1479, "usage": 121, "total": 1600, "history": 62,
      "gc": 0, "gctime": 1.936 }
     53313> Fatal exception 3(LoadStoreErrorCause):
    ÿ53314> epc1=0x4000bdcb, epc2=0x00000000, epc3=0x00000000, excvaddr=0x4026e0d0, depc=0x00000000
     ets Jan  8 2013,rst cause:2, boot mode:(3,6)
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    2nd boot version : 1.6
      SPI Speed      : 80MHz
      SPI Mode       : DIO
      SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
    jump to run user1 @ 1000
    âägä{ón|ìldll`cÛ|slgàoãd`ãsllþ
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v04 (c) 2019 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:1024/1024, manuf 0x5e chip 0x4016
    > 
    

    And xtensa doc says that error "Fatal exception 3(LoadStoreErrorCause)" is described as "Processor internal physical address or data error during load or store [Exception Option]".

    http://0x04.net/~mwk/doc/xtensa.pdf

About