Log_e message more precise #276
GitHubLionel
started this conversation in
Support
Replies: 1 comment
-
Arduino logs display the origin file and line numbers so you should be able to know where the log line comes from. Also, an error to allocate means the library is degrading itself because you do not have enough heap anymore. this is an application issue to fix first - you need to verify your memory usage. of you see this message, do not expect the lib to work correctly: like I said, it is degrading itself to avoid as much as possible a crash, but you might run into issues / bugs as a consequence of that in your app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
ESP32
IDE / Tooling
Arduino (IDE/CLI)
What happened?
Sometimes I have the message: "Failed to allocate" in my log.
Problem, this message come from
log_e("Failed to allocate");
and is the same in several files (WebSocket, WebHandlers, WebRequest, WebResponces, ...). So I can not find where the message is created.Is it possible to add the name of the function in the message like:
Failed to allocate in ...
Stack Trace
no stack trace
Minimal Reproductible Example (MRE)
General code
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions