Skip to content
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

Handle crashdump #2

Closed
dkerr64 opened this issue Nov 30, 2024 · 5 comments
Closed

Handle crashdump #2

dkerr64 opened this issue Nov 30, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@dkerr64
Copy link
Collaborator

dkerr64 commented Nov 30, 2024

The ESP32 does not have a crash callback like ESP8266 but it does have crash dump... a 64KB block of flash into which process data is dumped at time of crash.

The firmware currently detects that a crash dump exists, and allows for erasing it. But does not yet provide any way to view or download the contents of the crash dump.

@dkerr64 dkerr64 added the enhancement New feature or request label Nov 30, 2024
@mullender
Copy link

I am noticing the esp32 crashes a few times per day, I suspect it happens when the push button detects motion.

Is there a way I could capture the crash logs to facilitate debugging?

@dkerr64
Copy link
Collaborator Author

dkerr64 commented Jan 1, 2025

ok, so it is concerning that you are seeing this... mine has been very stable. As you probably can tell from this issue, the ESP32 is saving the crash information (and the web page should note this at the very bottom). But we have not implemented any way to retrieve the saved crash data.

If you are seeing frequent crashes, then that is motivation for us to work on that.

In the meantime, if you can figure out a way to reliably recreate the crash, I can try it here.

Oh... and are you using Sec+ 2.0, 1.0 or dry contact?

Thanks.

@mullender
Copy link

I’m using sec+ 2.0

I will keep trying to figure a consistent repro. But right now it’s been running 7+hours without issue. So that’s promising.

dkerr64 added a commit to dkerr64/homekit-ratgdo32 that referenced this issue Jan 3, 2025
@dkerr64
Copy link
Collaborator Author

dkerr64 commented Jan 3, 2025

Support for retrieving crash log data is added in PR #26

dkerr64 added a commit to dkerr64/homekit-ratgdo32 that referenced this issue Jan 3, 2025
dkerr64 added a commit to dkerr64/homekit-ratgdo32 that referenced this issue Jan 4, 2025
dkerr64 added a commit to dkerr64/homekit-ratgdo32 that referenced this issue Jan 4, 2025
@dkerr64
Copy link
Collaborator Author

dkerr64 commented Jan 5, 2025

Fixed in v3.0.5

@dkerr64 dkerr64 closed this as completed Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants