janLo / EspArduinoExceptionDecoder

Python Script to decode ESP8266 Exceptions.
GNU General Public License v3.0
59 stars 25 forks source link

Fails miserably with addr2line not being found #6

Open v2xsami opened 6 years ago

v2xsami commented 6 years ago

The tool fails miserably and prints the following error:

ERROR: addr2line not found (/home/user/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line) ERROR: Parser not complete

PProvost commented 5 years ago

I got the same error, but was able to make some headway by adding the -s flag.

I do wish the example in the readme (without -s) worked properly though, as I'm not sure what I'm missing this way.

mijnmodelbaan commented 4 years ago

Tried it, and also the same error: addr2line not found. The path is correct and the file is present, so, why this error?

The -s option is giving a bit more info, but not the info I'm looking for. Please fix it.

thuongshoo commented 4 years ago

Tried it, and also the same error: addr2line not found. The path is correct and the file is present, so, why this error?

The -s option is giving a bit more info, but not the info I'm looking for. Please fix it. "bin/xtensa-" + PLATFORMS[args.platform] + "-elf-addr2line") ==> "bin/xtensa-" + PLATFORMS[args.platform] + "-elf-addr2line.exe")

seems the author only tested on Linux

Nathan-ma commented 2 years ago

Wow, I don't know what makes me sadder.

If you are facing the same issue, the solution is simple! The CLI expect you to pass the tool folder.

The tool fails miserably and prints the following error:

ERROR: addr2line not found (/home/user/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line) ERROR: Parser not complete

In the post above, he is passing the addr2line file, a.k.a :

/home/user/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line)

Change the Path to the toolchain folder and it will work:

/home/user/.platformio/packages/toolchain-xtensa

there you go, fixed. 2 years later.

dhebbeker commented 11 months ago

This may also fail if the path to your toolchain is not

~/.platformio/packages/toolchain-xtensa-esp32

but

~/.platformio/packages/toolchain-xtensa-esp32s3

Because there the path to the file is

.platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-addr2line

Note the additional s3 in the file name.

FileNotFoundError: [Errno 2] No such file or directory: '~/.platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32-elf-addr2line'
janLo commented 11 months ago

I'm very sorry for the lack of support - but this tool was mailny built to serve my needs of the time. Sadly I have noch much spare time for tinkering these days due to job and family.

If you have helpful changes, please consider open a PR and I will do my best to review and integrate. I'm also happy to refer to a new location in the README if someone wants to pick-up (fork) this and maintain it.

dhebbeker commented 11 months ago

Thank you janLo for implementing and publishing this tool! Also for clarifying the current plans for development.