Skip to content

mDNS causes assertion when switching for STA to AP mode when mDNS is active #1926

Closed
@jeroenst

Description

@jeroenst

When switching from station mode to access point mode when mDNS is active the esp32 crashes with the following error:

assertion "igmp_lookup_group: first group must be allsystems" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/core/ipv4/igmp.c", line 269, function: igmp_lookup_group
abort() was called at PC 0x400dbd03 on core 1

Backtrace: 0x4008f49c:0x3ffb4ee0 0x4008f671:0x3ffb4f00 0x400dbd03:0x3ffb4f20 0x400fe0b2:0x3ffb4f50 0x400fe296:0x3ffb4f70 0x400da3be:0x3ffb4f90 0x400da52c:0x3ffb4fd0 0x400da58d:0x3ffb4ff0 0x400f3828:0x3ffb5010 0x4008b525:0x3ffb5040

Rebooting...

When enabling verbose logging, the error doesn't occur:

rst:0x1 (POWERON_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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1496
load:0x40078000,len:8596
load:0x40080400,len:6980
entry 0x400806f4
[D][WiFiGeneric.cpp:342] _eventCallback(): Event: 13 - AP_START
[D][WiFiGeneric.cpp:342] _eventCallback(): Event: 13 - AP_START
[D][WiFiGeneric.cpp:342] _eventCallback(): Event: 0 - WIFI_READY
[D][WiFiGeneric.cpp:342] _eventCallback(): Event: 14 - AP_STOP
[E][WiFiSTA.cpp:211] begin(): connect failed!
[D][WiFiGeneric.cpp:342] _eventCallback(): Event: 13 - AP_START

Code I used to reproduce this bug:

#include <WiFi.h>
#include <WiFiUdp.h>
#include <ESPmDNS.h>

void setup() 
{  
  MDNS.begin("esp32");
  WiFi.mode(WIFI_STA);
  WiFi.begin();
  WiFi.softAP("HELLO_WORLD","",6,0);
}

void loop() {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions