Open annndruha opened 5 months ago
Thanks for the quality bug report. I will look into your stack trace this week. Could you share your sketch code or its simplified version that produces the stack trace?
this week.
Of course, this can be a bug in this decoder extension, but for now, you might want to look into https://github.com/dankeboy36/esp-exception-decoder/issues/12.
Shure, full code: NodeMCU_BPM180_DHT11.ino.txt (NodeMCU + BPM180+ DHT11)
Thanks for reply, feel free to close issue because i don't sure that is decoder problem.
I was able to reproduce the error with a smaller traceback!
Because of the server layer, I didn’t find error right away. The error was in this function
float value = bmp.readTemperature();
After move this function in simple loop block:
void loop() {
auto value = bmp.readTemperature();
Serial.println(value);
}
I have a smaller traceback
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (6):
epc1=0x40203ea4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
>>>stack>>>
ctx: cont
sp: 3ffffe40 end: 3fffffd0 offset: 0150
3fffff90: 3fffdad0 00000004 3ffee944 402040c4
3fffffa0: 3fffdad0 00000000 3ffeeacc 402011fe
3fffffb0: 3fffdad0 00000000 3ffeeb44 40205e28
3fffffc0: feefeffe feefeffe 3fffdab0 40101095
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
which was successfully decoded:
Exception 6: IntegerDivideByZero: QUOS, QUOU, REMS, or REMU divisor operand is zero
PC: 0x40203ea4: Adafruit_BMP085::computeB5(int) at ...path...
EXCVADDR: 0x00000000
Decoding stack results
0x402040c4: Adafruit_BMP085::readTemperature() at ...path...
0x402011fe: loop() at ...path...
0x40205e28: loop_wrapper() at ...path...
I think, if you want to reproduce full error backtrace you don't need BPM180, because error is shown if wiring is wrong (or missing BPM180).
I have a similar issue. No matter what I copy/paste, it does not recognize the stack trace. It would be nice if the extension could output some progress, like
successfully detected the cut marker start
successfully detected the cut marker end
successfully detected the exception context
successfully detected the stack trace marker start
successfully detected the stack trace marker end
[...]
or, in an error case
missing the cut marker start
missing the cut marker end
missing the stack trace marker start
missing the stack trace marker end
[...]
In my case, I think the bug is in Arduino IDE, because it only copies what is currently visible on the screen, and not what actually has been selected [probably this bug]. That's a pity. My traceback is several dozens of lines long.
Also,
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
is not very helpful, because I don't know whether this is the start or the end of the cut.
Hi, while i debug my
NodeMCU
i have a error with stacktrace, i download extension but it seems like it cannot recognize the error format.I tried different copy+paste segments of full exception text, but it seems like cut off exception to fixed lines.
Exception Decoder log:
Can the extension recognize this format?