-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
ESP8266mDNS crash when doing MDNS.queryService("arduino", "tcp") #2248
Comments
what is the exception number/cause? |
Soft WDT ets Jan 8 2013,rst cause:2, boot mode:(3,6) I've got the crash with MDNS.queryService("http", "tcp") too. |
that is not the cause :) the cause was at the top of the stack trace (above the actual trace) |
Is that what you means (just above the stacktrace) ? Soft WDT reset ctx: sys |
BTW, with HTTP, it is intermittent, sometimes it doesn't crash. |
Glad to see that I'm not the only one facing this bug ... |
Can you guys test this PR?
|
Hi me-no-dev, |
can you please enable RX debug in the cpp file in the lib and post some output? |
Here is some output with the MDNS_DEBUG_RX : `Reading answers RX: REQ, ID:0, Q:0, A:5, NS:0, ADD:0 type: 0010 rdlength: 38 Soft WDT reset ctx: sys |
Adding some debug print, I figured where it stalling in a loop until WDT : EDIT : I've figured out ! PR sent : #2347 |
One year later and I still get the same problem.
Board manager shows: |
The 2.3.0 version has been released on Jun 23 2016, well, a month before this fix has been merged. |
Perfect! Thanks for the info. Switched to 2.4.0-rc1 and it works now! |
Basic Infos
Hardware
Hardware: Wemos-D1 Mini (ESP-12)
Core Version: Stable 2.3.0
Description
ESP8266mDNS crash when doing MDNS.queryService("arduino", "tcp")
but doesn't with other service like MDNS.queryService("telnet", "tcp")
Settings in IDE
Module: ?Generic ESP8266 Module?
Flash Size: ?4MB/1MB?
CPU Frequency: ?80Mhz?
Flash Mode: ?qio?
Flash Frequency: ?40Mhz?
Upload Using: ?OTA / SERIAL?
Reset Method: ?ck / nodemcu?
Stacktrace
x4020e551: MDNSResponder::_parsePacket() at /home/martin/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS/ESP8266mDNS.cpp:656
0x4020e489: MDNSResponder::_parsePacket() at /home/martin/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS/ESP8266mDNS.cpp:611
0x40101daa: pp_post at ??:?
0x40101daa: pp_post at ??:?
0x40105087: lmacRxDone at ??:?
0x40101daa: pp_post at ??:?
0x40102abd: trc_NeedRTS at ??:?
0x40102c4c: trc_NeedRTS at ??:?
0x40102c4c: trc_NeedRTS at ??:?
0x40102c4c: trc_NeedRTS at ??:?
0x4010308a: wDev_ProcessFiq at ??:?
0x4000050c: ?? ??:0
0x40102e24: wDev_ProcessFiq at ??:?
0x402215a5: ieee80211_ht_updateparams at ??:?
0x40244668: etharp_send_ip at /Users/igrokhotkov/espressif/arduino/tools/sdk/lwip/src/netif/etharp.c:435
0x40101daa: pp_post at ??:?
0x40105087: lmacRxDone at ??:?
0x4024494d: etharp_output_to_arp_index at /Users/igrokhotkov/espressif/arduino/tools/sdk/lwip/src/netif/etharp.c:890
0x40102c4c: trc_NeedRTS at ??:?
0x40101daa: pp_post at ??:?
0x40101a55: ppEnqueueRxq at ??:?
0x4010193e: ppEnqueueRxq at ??:?
0x4010170b: ppProcessTxQ at ??:?
0x40101daa: pp_post at ??:?
0x40105087: lmacRxDone at ??:?
0x40102abd: trc_NeedRTS at ??:?
0x4010020c: _umm_free at /home/martin/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/umm_malloc/umm_malloc.c:1287
0x40102b6f: trc_NeedRTS at ??:?
0x4000050c: ?? ??:0
0x40102e24: wDev_ProcessFiq at ??:?
0x4020e88d: MDNSResponder::update() at /home/martin/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS/ESP8266mDNS.cpp:219
0x4021689b: std::_Function_handler<void (), std::_Bind<std::Mem_fn<void (MDNSResponder::*)()> (MDNSResponder)> >::M_invoke(std::Any_data const&) at /home/martin/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/functional:2073
0x40000f58: ?? ??:0
0x4020c6e4: UdpContext::s_recv(void, udp_pcb, pbuf, ip_addr*, unsigned short) at /home/martin/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266mDNS/ESP8266mDNS.cpp:225
0x40244140: udp_input at /Users/igrokhotkov/espressif/arduino/tools/sdk/lwip/src/core/udp.c:343
0x401070a4: pvPortMalloc at /home/martin/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/heap.c:13
0x4024588c: ip_input at /Users/igrokhotkov/espressif/arduino/tools/sdk/lwip/src/core/ipv4/ip.c:553
0x40244c85: ethernet_input at /Users/igrokhotkov/espressif/arduino/tools/sdk/lwip/src/netif/etharp.c:1379
0x4021b483: pp_tx_idle_timeout at ??:?
0x4021b3f6: pp_tx_idle_timeout at ??:?
0x4022f487: ets_snprintf at ??:?
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0
The text was updated successfully, but these errors were encountered: