• Run fs.readFileSync before fs.statSync will cause ESP32 exception.
    example:
    var fs=require("fs");
    fs.writeFileSync("temp.txt", "hello 123");
    fs.readFileSync("temp.txt");
    fs.statSync("temp.txt");

    espruino version 1v92
    console output:

    fs.statSync("temp.txt")
    Guru Meditation Error of type StoreProhibited occurred on core 0. Exception was unhandled.
    Register dump:
    PC : 0x401145cf PS : 0x00060430 A0 : 0x801158e6 A1 : 0x3ffd2840
    A2 : 0x00000001 A3 : 0x00000000 A4 : 0x00000001 A5 : 0x0000ffff
    A6 : 0x3ffd2948 A7 : 0x00000038 A8 : 0x0000ffff A9 : 0x0000000a
    A10 : 0x00000013 A11 : 0x3ffd2991 A12 : 0x3ffcb950 A13 : 0x00000019
    A14 : 0x000000ff A15 : 0x3ffd2890 SAR : 0x00000010 EXCCAUSE: 0x0000001d
    EXCVADDR: 0x00000001 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
    Backtrace: 0x401145cf:0x3ffd2840 0x401158e6:0x3ffd2860 0x40133332:0x3ffd2940 0x40105df6:0x3ffd29f0 0x40108728:0x3ffd2a70 0x40106f0e:0x3ffd2bb0 0x40106fbc:0x3ffd2be0 0x40107083:0x3ffd2c00 0x40107332:0x3ffd2c20 0x40107346:0x3ffd2c40 0x40107356:0x3ffd2c60 0x40107c87:0x3ffd2c80 0x401081f3:0x3ffd2ca0 0x40108fb3:0x3ffd2cc0 0x401095c6:0x3ffd2ce0 0x4010bd3c:0x3ffd2d00 0x4010e4b5:0x3ffd2de0 0x4010e9b9:0x3ffd2e10 0x4010ea27:0x3ffd2e40 0x4010ea80:0x3ffd2e60 0x4010f2b1:0x3ffd2ed0 0x4012a817:0x3ffd2ef0
    ================= CORE DUMP START =================
    ...


    1 Attachment

    • fs.statSyncCrashESP3220170509.PNG
  • @LawrenceDon2014

    This has been fixed, it will be in a Travis build.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Run fs.readFileSync before fs.statSync will cause ESP32 exception

Posted by Avatar for LawrenceDon2014 @LawrenceDon2014

Actions