TetrisAnimation icon indicating copy to clipboard operation
TetrisAnimation copied to clipboard

Getting a Kernel panic when trying to use it with EzTime library

Open witnessmenow opened this issue 6 years ago • 9 comments

More info to follow

witnessmenow avatar May 31 '19 10:05 witnessmenow

I have traced these panics to using a timer or ISR and doing too much inside it. Post anything different if you see it

tablatronix avatar Jun 13 '19 18:06 tablatronix

Will try out your changes on the Matrix panel when I get a change

witnessmenow avatar Jun 18 '19 09:06 witnessmenow

I do not know the underlying cause but I was able to circumvent the problem by copying core_esp_main.cpp from C:\Users<USER>\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266 into the sketch directory then commenting out the 'panic()' on line 103 of the copied file.

ROSW6341 avatar Jul 26 '19 19:07 ROSW6341

Yeah its strange because it is specifically calling panic exception because of the 'in interrupt' check, not sure what the other 2 checks are. Its odd

afaik , this is not in an interrupt

tablatronix avatar Jul 26 '19 19:07 tablatronix

Someone has a workaround for this on the WiFi Tetris clock repo

https://github.com/witnessmenow/WiFi-Tetris-Clock/issues/8

On Fri, 26 Jul 2019, 20:22 Shawn A, [email protected] wrote:

Yeah its strange because it is specifically calling panic exception because of the 'in interrupt' check, not sure what the other 2 checks are. Its odd

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/toblum/TetrisAnimation/issues/3?email_source=notifications&email_token=AAL5PQTTVAGI5F67IZXQWU3QBNFILA5CNFSM4HRYMVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD25PXZQ#issuecomment-515570662, or mute the thread https://github.com/notifications/unsubscribe-auth/AAL5PQXYCEK47ENTKVYBAZTQBNFILANCNFSM4HRYMVCQ .

witnessmenow avatar Jul 26 '19 19:07 witnessmenow

Worked for me and much cleaner than the core_esp_main.cpp hack I posted above

ROSW6341 avatar Jul 26 '19 19:07 ROSW6341

That is what I did also, but it did still wdt now and then during long draws, but it is probably the easiest fix. Of course you can just not use a timer or use a timer library that just uses timekeeping and a process()

tablatronix avatar Jul 26 '19 19:07 tablatronix

Is it possible to compile with no-exceptions build flag and bypass this also ?

tablatronix avatar Jul 26 '19 20:07 tablatronix

aha

https://github.com/esp8266/Arduino/issues/6283

tablatronix avatar Jul 26 '19 20:07 tablatronix