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

Stuck in upload status, web page not displayed. #171

Closed
dkerr64 opened this issue May 4, 2024 · 5 comments
Closed

Stuck in upload status, web page not displayed. #171

dkerr64 opened this issue May 4, 2024 · 5 comments

Comments

@dkerr64
Copy link
Collaborator

dkerr64 commented May 4, 2024

User reported this in Discord with attached crashlog.
crash.pdf

@dkerr64
Copy link
Collaborator Author

dkerr64 commented May 4, 2024

Decoding a couple of the stacks...

Exception Cause: 9  [LoadStoreAlignmentCause: Load or store to an unaligned address]

0x40202741: q_push at ??:?
0x40228214: homekit_server_on_url(http_parser*, char const*, unsigned int) at ??:?
0x4021b2e8: homekit_characteristic_notify at ??:?
0x4021e12f: notify_homekit_obstruction() at ??:?
0x4021e5a8: obstruction_timer() at ??:?
0x4021e5e0: service_timer_loop() at ??:?
0x4023373c: user_init at ??:?
0x401007d1: cont_wrapper at ??:?

and...

Exception Cause: 28  [LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads]

0x4020272f: q_push at ??:?
0x4022820c: homekit_server_on_url(http_parser*, char const*, unsigned int) at ??:?
0x4021b2e8: homekit_characteristic_notify at ??:?
0x4021e12f: notify_homekit_obstruction() at ??:?
0x4021e5a8: obstruction_timer() at ??:?
0x4021e5e0: service_timer_loop() at ??:?
0x4023373c: user_init at ??:?
0x401007d1: cont_wrapper at ??:?

@dkerr64
Copy link
Collaborator Author

dkerr64 commented May 4, 2024

Observations...

  1. User ask how to reboot when web page not displayed. Can do this with...
    curl -X POST http://<ipaddr>/reboot
  2. Stack decode highlights that we should not call service_timer_loop() if we are in updateUnderway state. Reason is that we have shutdown the HomeKit server, and that loop attempts to send a HomeKit notification which feels like a bad idea. Made that change here.
  3. Not sure why the logs show Firmware update underway, reject request. unless that is from another browser requesting the web page while an update is underway.

@dkerr64
Copy link
Collaborator Author

dkerr64 commented May 16, 2024

Traced this problem to our use of IRAM heap. Unfortunately. Combination of this and this backs it out.

@dkerr64
Copy link
Collaborator Author

dkerr64 commented May 21, 2024

Fixed in 1.3.6

@dkerr64 dkerr64 closed this as completed May 21, 2024
@jgstroud
Copy link
Collaborator

I tagged the build v1.4.0. It's currently pre-release. If we see good feedback, I'll rebuild as an official release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants