So if we use bigger value is it affects stack issue.Try with an even bigger number, maybe 10000.
bacause I am using 7 to 8 tasks may it affects on other tasks.
So if we use bigger value is it affects stack issue.Try with an even bigger number, maybe 10000.
If stack size is less then esp gives "stack overflow" error. but it is not giving that oneIt will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
If stack size is less then esp gives "stack overflow" error. but it is not giving that oneIt will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
Hey,If stack size is less then esp gives "stack overflow" error. but it is not giving that oneIt will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
Sometime it will display a stack overflow error but sometimes it won't. For example, the code posted above results in the stack overflowing. However, the error message doesn't indicate that there is a stack overflow. It says:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
...
Code: Select all
void extract_between(const char *str, char saveStr[] , const char *p1, const char *p2)
{
const char *i1 = strstr(str, p1);
if(i1 != NULL)
{
const size_t pl1 = strlen(p1);
const char *i2 = strstr(i1 + pl1, p2);
if(p2 != NULL)
{
const size_t mlen = i2 - (i1 + pl1);
memcpy(saveStr, i1 + pl1, mlen);
saveStr[mlen] = '\0';
}
}
else {
saveStr[0] = '0';
saveStr[1] = '\0';
}
}Code: Select all
if(p2 != NULL)Code: Select all
if(i2 != NULL)it returns NULL not "0".It looks like there's a typo.
Replace:with:Code: Select all
if(p2 != NULL)to see if it works.Code: Select all
if(i2 != NULL)
It works,Did you make the change that was suggested here to your code? I'm fairly sure that if this change is made there will be no "guru meditation errors".
Users browsing this forum: Applebot, Bytespider, Google [Bot], MicroController and 8 guests