@mrainone @daniel Behavior confirmed. I added a few print statements between the lines to see where it fails. Sometimes it passed through the script, sometimes it just stalled, sometimes I get an guru mediation error. In case of failure, it happened at the statement:
sd = SD()
Pasting the scripts into REPL always works.
The core dump starts with (calling for saint Daniel):
/Users/danicampora/Code/Pycom/esp-idf-2017-03-12/components/freertos/./queue.c:1444 (xQueueGenericReceive)- assert failed!
abort() was called at PC 0x40085501
Guru Meditation Error: Core 0 panic'ed (abort)
Backtrace: 0x40008155:0x3ffc5670 0x40007d16:0x3ffc5690 0x40125065:0x3ffc56d0 0x4019e230:0x3ffc5700 0x401977b4:0x3ffc5720 0x40197ba6:0x3ffc5770 0x400e0ee0:0x3ffc57a0 0x400df756:0x3ffc57f0 0x400f2b8e:0x3ffc5830 0x400eace0:0x3ffc5850 0x400f62e8:0x3ffc5870 0x400ee697:0x3ffc5910 0x400eace0:0x3ffc5990 0x400eb776:0x3ffc59b0 0x400f3d46:0x3ffc5a40 0x400f40b5:0x3ffc5a70 0x400eb602:0x3ffc5b50 0x400f65d4:0x3ffc5b90 0x400ee697:0x3ffc5c30 0x400eace0:0x3ffc5cb0 0x400ead09:0x3ffc5cd0 0x400d8c38:0x3ffc5cf0 0x400d8eb3:0x3ffc5d80 0x400d7f76:0x3ffc5dc0
================= CORE DUMP START =================
YCgAAAwAAABsAQAA
6D38P7BV/D9QX/w/
wFT8P/Be/D8ubAAA7Dr8P+w6/D/oPfw/5Dr8PxQAAAAMf/s/DH/7P+g9/D8AAAAA
BQAAAFQ//D9NaWNyb1B5AAAAAAAAAAAAAAAAAFBf/D8AAAAAIQAGAAUAAAABAAAA
AAAAAMhm/D8AAAAAAAAAAAAAAAC4MPs/IDH7P4gx+z8AAAAAAAAAAAEAAAAAAAAA
iKNCPwAAAABIHQBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAA==
KYEIgFWBAEA2BwYAFn0AgHBW/D97AAAAewAAABAAAAD/////AAAAAOv///9UOfw/
AQAAACQAAAAkAAAACAAAAP////8AAAAA/////wUAAAABAAAAAAAAAODCAED2wgBA
AAAAAAgAAAD/////aBAIQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA