Arduino while loop no brackets3/1/2024 ![]() Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception) So IMO it probably cannot happen because of the Chess() variables on the stack (CMIIW).Ĥ ply, searched: 5316. ![]() OTOH, I meanwhile tested the Chess subprogram also on my Mega2560 too (because of smaller RAM than on Due or Raspi), and also over there it always runs fine, That actually makes me doubt that it's a RAM size issue. Sometimes after the 7th auto move generation ply, sometimes even after the 3rd, or perhaps after the 8th or 9th,Īlways by identical boardsettings and identical move series. So all runs fine > untill Chess() is run.īut also the first couples of chess moves are always fine though, so also Chess() does not violate the RAM size limit when starting.Īlso manual moves are apllied correctly, calling the auto move generator just for move legality checks, and then also the first couples of auto moves, too.įurthermore for Chess(), the error happens not always and not reproducably, The error never occurs with different sub-programs, just with the subprogram "chess".Īll subprograms are using the same global variables which are used by setup() and loop(). Sometimes it runs fine through the 7th recursive ply by more than 1 or 2 millions move computations and returns a valid and smart move, e.g.:ĭifferent game by different moves, but similar error after a while - still no clue what's happening here: ![]() Sometimes the move generator crashes already at the 2nd or 5th recursive ply after ~50000 move computations or even less, So IMO the issue here on my ESP32 is probably not related to the chess algorithm itself as far as I can see. The chess program (i.e., the move generator) is the same as for my Arduino Due and for my Raspberry Pi, and there it works absolutely fine without any problem ever. The error happens sometimes when running the "chess" subroutine. Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception)ĭebug exception reason: Stack canary watchpoint triggered (loopTask) Generally my program runs fine, but sometimes, unexpectedly, I get this error. ESP32 board 1.0.6 (edit meanwhile updated to 2.0.1)
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |