LoPy4 keeps crashing/rebooting! #166
Description
Using: sysname='LoPy4', nodename='LoPy4', release='1.17.3.b1', version='v1.8.6-849-83e2f7f on 2018-03-19', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1'
Have an application with the main thread and two service threads (see in some older issues similar problems as I have). Dispite the fact my main thread does have:
while True:
try:
[ My app code]
except Exception as exc:
pycom.rgbled(0x800000) # Mid red
I get unhandled exceptions!
Application sometimes runs for day's but then starts to 'crash/reboot'. In case of a crash a reboot is acceptable (if device recovers recovers) but most of the time the LoPy keeps crashing over and over again. I see that the first Register dump is different from all the following! Also the core dump from first scrash is bigger that the following onces.
Output:
[My program normal print statements]
Guru Meditation Error: Core 1 panic'ed (LoadProhibited)
Exception was unhandled.
Register dump:
PC : 0x400f8505 PS : 0x00060830 A0 : 0x800f85d8 A1 : 0x3ffe3550
A2 : 0xffffffff A3 : 0x00000000 A4 : 0x00000000 A5 : 0xffffffff
A6 : 0x00000001 A7 : 0x00017fa3 A8 : 0xffffffff A9 : 0xffffffc0
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000010 A13 : 0x3face5d0
A14 : 0xffffffc0 A15 : 0x00000001 SAR : 0x0000001a EXCCAUSE: 0x0000001c
EXCVADDR: 0xffffffff LBEG : 0x4009b490 LEND : 0x4009b49b LCOUNT : 0x00000000
Backtrace: 0x400f8505:0x3ffe3550 0x400f85d5:0x3ffe3580 0x400f2ef3:0x3ffe35b0 0x400fbe2d:0x3ffe35d0 0x400f4c38:0x3ffe3670 0x400f1545:0x3ffe36b0 0x400fb95f:0x3ffe36d0 0x400dd5f1:0x3ffe3760
================= CORE DUMP START =================
vD0AABEAAABsAQAA
3Nj7PzDX+z/U2Ps/
MNf7P3DY+z/nyf+LdFL8P3RS/D/c2Ps/bFL8PwIAAABswvs/bML7P9zY+z8AAAAA
........
........
[Lots of chars!!!!]
........
........
AAAAAIDl/T8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAACM5f0/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
================= CORE DUMP END =================
Rebooting...
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited)
. Exception was unhandled.
Register dump:
PC : 0x00000000 PS : 0x00060031 A0 : 0x400836a4 A1 : 0x3ffc13f0
A2 : 0x3ffc559c A3 : 0x00800000 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x3ffd595c A7 : 0x00000060 A8 : 0x800840a2 A9 : 0x00000070
A10 : 0x3ffd2944 A11 : 0x3ffd59c9 A12 : 0x8008e9a4 A13 : 0x3ffdae40
A14 : 0x3ffd2934 A15 : 0x00000004 SAR : 0x00000013 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4009b490 LEND : 0x4009b49b LCOUNT : 0xffffffff
Backtrace: 0x00000000:0x3ffc13f0 0x400836a1:0x3ffc1410 0x4000bfed:0x00000000
================= CORE DUMP START =================
5BoAAAkAAABsAQAA
7Ff9P8BW/T/kV/0/
wFb9P4BX/T8AAAAAJFT8PwxR/D/sV/0/BFH8PxQAAAAAAAAAAAAAAOxX/T8AAAAA
BQAAAOhP/T9TZXJ2ZXJzAAAAAAAAAAAAAQAAAORX/T8AAAAAAAAAAAUAAAAAAAAA
........
........
[Lots of chars!!!!]
........
........
AAAAAEk2CEAAAAAAqNgIQABw+j8AAAAAAAAAAAAAAAD//z+zAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwDT9PyRP/D8AAAAA
AAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAOA0/T8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAADsNP0/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
================= CORE DUMP END =================
E (1124) esp_core_dump: Skipped 1 tasks with bad TCB!
E (1129) esp_core_dump: Crashed task has been skipped!
Rebooting...
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited)
Exception was unhandled.
Register dump:
PC : 0x00000000 PS : 0x00060031 A0 : 0x400836a4 A1 : 0x3ffc13f0
A2 : 0x3ffc559c A3 : 0x00800000 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x3ffd595c A7 : 0x00000060 A8 : 0x800840a2 A9 : 0x00000070
A10 : 0x3ffd2944 A11 : 0x3ffd59c9 A12 : 0x8008e9a4 A13 : 0x3ffdae40
A14 : 0x3ffd2934 A15 : 0x00000004 SAR : 0x00000013 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4009b490 LEND : 0x4009b49b LCOUNT : 0xffffffff
Backtrace: 0x00000000:0x3ffc13f0 0x400836a1:0x3ffc1410 0x4000bfed:0x00000000
================= CORE DUMP START =================
5BoAAAkAAABsAQAA
7Ff9P8BW/T/kV/0/
wFb9P4BX/T8AAAAAJFT8PwxR/D/sV/0/BFH8PxQAAAAAAAAAAAAAAOxX/T8AAAAA
BQAAAOhP/T9TZXJ2ZXJzAAAAAAAAAAAAAQAAAORX/T8AAAAAAAAAAAUAAAAAAAAA
........
........
[Lots of chars!!!!]
........
........
AAAAAOA0/T8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAADsNP0/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
================= CORE DUMP END =================
E (1124) esp_core_dump: Skipped 1 tasks with bad TCB!
E (1129) esp_core_dump: Crashed task has been skipped!
Rebooting...
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited)
. Exception was unhandled.
Register dump:
PC : 0x00000000 PS : 0x00060031 A0 : 0x400836a4 A1 : 0x3ffc13f0
A2 : 0x3ffc559c A3 : 0x00800000 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x3ffd595c A7 : 0x00000060 A8 : 0x800840a2 A9 : 0x00000070
A10 : 0x3ffd2944 A11 : 0x3ffd59c9 A12 : 0x8008e9a4 A13 : 0x3ffdae40
A14 : 0x3ffd2934 A15 : 0x00000004 SAR : 0x00000013 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4009b490 LEND : 0x4009b49b LCOUNT : 0xffffffff
Backtrace: 0x00000000:0x3ffc13f0 0x400836a1:0x3ffc1410 0x4000bfed:0x00000000
================= CORE DUMP START =================
5BoAAAkAAABsAQAA
7Ff9P8BW/T/kV/0/
wFb9P4BX/T8AAAAAJFT8PwxR/D/sV/0/BFH8PxQAAAAAAAAAAAAAAOxX/T8AAAAA
BQAAAOhP/T9TZ
The LoPy can't recover!!!!!
Please advice.