-
Notifications
You must be signed in to change notification settings - Fork 7.6k
handle website: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. #4091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Client may be null in loop is the only thing I can see. You will need to decide the backtrace to know for certain where the null dereference is happening. |
tbh, I do not understand. |
repeating how it works on 8266 will not help you much. decoding the issue with the ExceptionDecoder might actually help. Link and instructions were in the issue template that you edited. Also can be found in the readme. And since you so much "works on 8266 for ages" 8266 uses the same exception decoder. |
I don't know how to do that decoding with the ExceptionDecoder. |
then maybe good time to learn to use it if you want help. |
I do not understand that, that is way too complicated https://github.com/me-no-dev/EspExceptionDecoder - any help highly appreciated! |
ok, let me try to say it more clear. We can not give you any help unless you decode your backtraces. There are tutorials, youtube videos and more on how to install and use the exception decoder. Also in your code you did not show |
yes, a c+p error. |
PS, |
you need to paste the backtrace into the window... and the sketch to be compiled and running. Did you look at any video? |
I don't get a window, just a file to select (which is not existent). Can please test this thing anyone who is experienced? |
You open the sketch in Arduino IDE, you compile and upload the sketch to the board, then open the serial monitor so you can receive the error. Now open the exception decoder, it will not ask you for file, paste the error in the top half and you will get the result. |
I did all that, I created a new empty file, then I opened that file, then I pasted the code, but I don't get a result. |
In your first post, there is a debug part. Guru Meditation Error.... |
yes, I copied the line Backtrace, but got no result. |
Find and fix issue. |
@dsyleixa you must compile your sketch in the same ardunio ide as you are using the backtrace decoder. Copy/paste the trace from the serial monitor in the ide into the trace window and it should produce a meaningful decode output. The decoder has a required dependency on the binary produced by the ide in order to decode the trace. |
yes, I did that, but no result.
|
Can please test my code anyone who is experienced? |
Then you probably not installed correctly the decoder. It gives me result if i put your backtrace to my decoder but thats not gives the good result because i havent got your code, and i have different operating system, file system etc... |
Then I don't think we can help narrow down the cause for the failure if the decoding is not happening. From a very quick read of the code it doesn't look like there is any error checking being done in handleWebsite() which would include checking that wifiserver.available() returned a valid client object (if none are available it can return nullptr). Also assigning script at the end of that method is not necessary. The variable will go out of scope and be cleaned up automatically upon exit from the function. You could also improve the function a bit by directly calling client.print() directly |
You may dislike my answer, but its only correct. |
chegewara, if you cannot provide a reasonable fix, please troll somewhere else. |
@dsyleixa he isn't trolling. He is staying fact. There are many ways to encounter such crashes and often times they are due to simple mistakes |
I do not understand what to do now, I am just an Arduino hobby-user.
|
No, because you will never learn to use backtrace decoder and will get back here with every single crash. |
chegewara, if you cannot provide a reasonable fix, please troll somewhere else. |
@me-no-dev Please close this issue |
@me-no-dev Please block chegewara. |
and what does that mean now? |
well, it looks like it hasn't accepted a connection. You may need to turn up the core debug log level to see what might be going on in the underlying layers. Set your board type to the ESP32 Dev board (should be one of the first ones in the list) and you will find a core debug log level menu option, set it to DEBUG and reflash the sketch. @usane1 has decoded the backtrace and it points to using a null client object which you have a fix for now. |
what is a null client object and how to use that? |
which i pointed here:
|
chegewara, stop your superior attitude and move along! |
@atanisoft: |
The listener did not have a connected client so it defaulted to return a null value. It is always a good idea to validate the return values from APIs to ensure they did not report an error condition (which this could be taken as).
We are all trying to help you and continued attacks will result in no further help. Please reign it in a bit. |
I don't understand a word, I never needed that for Arduino Wifi oder esp8266. |
|
He is right, im not trying to help him to solve that issue. All he is is doing is wining to test his code and this is not his first issue like that: If someone does not want to learn then does not deserve help and attention. |
chegewara, troll somewhere else! |
I highly appreciate help from people who want to help though. |
I still don't understand. What is the null client code there? |
Chekt the line in the example code: |
i doubt |
ok, so I just have to wrap edit: |
That only solve the Meditation error, but doesnt't solve why the client cannot connect to the ESP, that what is need to figure out. |
Now i have to go. Hope you will have a solution. |
Just a quick thought... you are connecting to port 8080 and not 8081 correct? I see you have a WebServer instance configured for 8081 and the handlers are stubbed off to not do anything which could give you the results you are seeing. But if you are connecting to 8081 I would expect it to work, perhaps you can add some Serial.println() statements in your handleWebsite() method to see where it is getting to? |
yes, ports 8080 for wifiserver and 8081 for webserver work fine with esp8266: WiFiServer wifiserver(8080); I will add some prints. |
runs through, no client connection:
|
update:
|
PS, @atanisoft |
That is the port that the WebServer instance is using, though you won't get a webpage from it since the handlers are stubbed off in the code you have posted.
You will need to decode the new backtrace to get further on this. |
what is the code to connect to 8081? I still don't get a result if I c+p the backtrace into the Exception Decoder window, no reaction then. |
@dsyleixa the only troll here is you. You refuse to comply to the norms for posting issues. Refuse to take some time and get the exception decoder working. Insulting fellow users. Should I continue? Novice, not novice, does not matter. There are minimum requirements for you to read and follow instructions. I am closing this issue. Do not want another 60+ emails on this. |
what an idiotic moderation! |
@dsyleixa you are welcome to start a new issue with new attitude. |
setup() code for wifiserver and webserver works fine on ESP8266 and appearently also is fine for ESP32, but then it crashes when creating the website.
What is wrong with the website code?
What is it not esp8266-compatible but crashes?
The text was updated successfully, but these errors were encountered: