{"action":"opened","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1428","repository_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1428/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1428/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/1428/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/1428","id":168520783,"number":1428,"title":"exception reset since aa5fd1445d40d2d3f2846d1b876ab388492e57d0","user":{"login":"eku","id":418685,"avatar_url":"https://avatars.githubusercontent.com/u/418685?v=3","gravatar_id":"","url":"https://api.github.com/users/eku","html_url":"https://github.com/eku","followers_url":"https://api.github.com/users/eku/followers","following_url":"https://api.github.com/users/eku/following{/other_user}","gists_url":"https://api.github.com/users/eku/gists{/gist_id}","starred_url":"https://api.github.com/users/eku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eku/subscriptions","organizations_url":"https://api.github.com/users/eku/orgs","repos_url":"https://api.github.com/users/eku/repos","events_url":"https://api.github.com/users/eku/events{/privacy}","received_events_url":"https://api.github.com/users/eku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-31T14:38:56Z","updated_at":"2016-07-31T14:38:56Z","closed_at":null,"body":"I recently updated my nodemcu project to the HEAD of the dev branch. Unfortunately I got an immediately execption reset when executing Lua file with dofile('filename.lc'). I run git bisect to find the patch thathas broken my setup. Previous version has no problems.\r\n\r\n### Expected behavior\r\nno exception reset\r\n\r\n### Actual behavior\r\nexception reset since [aa5fd1445d40d2d3f2846d1b876ab388492e57d0] Change 'formatting file system' message (#1413) \r\n\r\n```\r\nlua: cannot open init.lua\r\n> =node.bootreason()\r\n2       2       0       1076011944      0       0       1076219773      0\r\n```\r\n\r\n### Test code\r\n\r\nThis is a snippet from my Lua initialization script, which runs fine till aa5fd1445d40d2d3f2846d1b876ab388492e57d0.\r\n\r\n```Lua\r\ncfg={\r\n hostname=\"esp1\",\r\n sta={\r\n  mac=\"00:cb:00:66:df:ab\",\r\n  ip={\r\n   ip=\"192.168.33.131\",\r\n   netmask=\"255.255.255.0\",\r\n   gateway=\"192.168.33.1\"\r\n  },\r\n  ssid=\"STATION\",\r\n  pwd=\"1234567890123456\"\r\n },\r\n ap={\r\n  mac=\"1a:fe:43:2a:83:aa8\",\r\n  ip={\r\n   ip=\"172.22.1.1\",\r\n   netmask=\"255.255.255.0\",\r\n   gateway=\"172.22.1.1\"\r\n  },\r\n  ssid=\"ESP\",\r\n  pwd=\"password\"\r\n },\r\n dns=\"192.168.22.1\",\r\n}\r\n\r\nfunction setupSTA(ssid,pwd,mac,ipinfo)\r\n wifi.sta.setmac(mac)\r\n wifi.setmode(wifi.STATION)\r\n wifi.sta.config(ssid,pwd,1)\r\n wifi.sta.setip(ipinfo)\r\nend\r\n\r\nfunction setupAP(ssid,pwd,mac,ipinfo)\r\n wifi.ap.setmac(mac)\r\n wifi.setmode(wifi.STATIONAP)\r\n wifi.ap.config({ssid=ssid,pwd=pwd,auth=wifi.AUTH_WPA2_PSK})\r\n wifi.ap.setip(ipinfo)\r\nend\r\n\r\nsetupSTA(cfg.sta.ssid,cfg.sta.pwd,cfg.sta.mac,cfg.sta.ip)\r\nsetupAP(cfg.ap.ssid,cfg.ap.pwd,cfg.ap.mac,cfg.ap.ip)\r\n\r\n```\r\n### NodeMCU version\r\nNodeMCU 1.5.4.1 build 20160731 powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32)\r\n\r\n```\r\n$ grep \"^#define\" src/app/include/user_modules.h\r\n#define __USER_MODULES_H__\r\n#define LUA_USE_BUILTIN_STRING          // for string.xxx()\r\n#define LUA_USE_BUILTIN_TABLE           // for table.xxx()\r\n#define LUA_USE_BUILTIN_COROUTINE       // for coroutine.xxx()\r\n#define LUA_USE_BUILTIN_MATH            // for math.xxx(), partially work\r\n#define LUA_USE_BUILTIN_DEBUG_MINIMAL // for debug.getregistry() and debug.traceback()\r\n#define LUA_USE_MODULES_FILE\r\n#define LUA_USE_MODULES_NET\r\n#define LUA_USE_MODULES_NODE\r\n#define LUA_USE_MODULES_PWM\r\n#define LUA_USE_MODULES_TMR\r\n#define LUA_USE_MODULES_UART\r\n#define LUA_USE_MODULES_WIFI\r\n```\r\n\r\n### Hardware\r\nESP-12\r\n\r\n\r\n"}}
{"actor":{"display_login":"eku"}}