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

crashes especially after firmware update at tcp_update_rcv_ann_wnd #2180

Closed
3 tasks done
AloisKlingler opened this issue Aug 1, 2024 · 5 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@AloisKlingler
Copy link

What happened?

reproduceable with two ESP32-D0WD-V3:

after firmware update I can see web browser (chrome) trying to redirect to the start page.

it looks like, if the requests come too early, the ES likes to crash, especially with the following trace:

WiFi connected
WiFi got ip: 192.168.0.133
Network connected

assert failed: tcp_update_rcv_ann_wnd IDF/components/lwip/lwip/src/core/tcp.c:951 (new_rcv_ann_wnd <= 0xffff)

Backtrace: 0x40083a65:0x3ffb2cc0 0x4008ee3d:0x3ffb2ce0 0x40095151:0x3ffb2d00 0x40134bfe:0x3ffb2e30 0x40134cac:0x3ffb2e50 0x401a82ee:0x3ffb2e70 0x40131464:0x3ffb2e90

ELF file SHA256: 191a2d1569b60854

E (8912) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
E (682) esp_core_dump_flash: No core dump partition found!

Starting OpenDTU

regarding this I found:

mathieucarbou/AsyncTCP#14

just fixed a few days ago.

To Reproduce Bug

after firmware update on browser redirecting to openDTU start page

Expected Behavior

should not crash. :-)

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

v24.6.29

Relevant log/trace output

No response

Anything else?

No response

Please confirm the following

  • I believe this issue is a bug that affects all users of OpenDTU, not something specific to my installation.
  • I have already searched for relevant existing issues and discussions before opening this report.
  • I have updated the title field above with a concise description.
@AloisKlingler AloisKlingler added the bug Something isn't working label Aug 1, 2024
@tbnobody
Copy link
Owner

tbnobody commented Aug 1, 2024

Yes. I know. Thats either a issue in the ESP32 TCP stack or another library. Nothing which can be fixed in OpenDTU.

@AloisKlingler
Copy link
Author

Yes. I know. Thats either a issue in the ESP32 TCP stack or another library. Nothing which can be fixed in OpenDTU.

the fix from mathieucarbou/AsyncTCP#14 in asynctcp does also not help?

@tbnobody
Copy link
Owner

tbnobody commented Aug 1, 2024

Looks like the right solution. Will check soon

@tbnobody
Copy link
Owner

tbnobody commented Aug 1, 2024

Thanks for the hint. Implemented in 03137e1 and seems to fix the issue.

@tbnobody tbnobody closed this as completed Aug 1, 2024
Copy link

github-actions bot commented Sep 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants