Skip to content

master 版本子节点内存泄漏 (AEGHB-1098) #174

Open
@raspi404

Description

@raspi404

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

  • 这是 ## v1.0.1 - 2024-12-16 的:

Image

Actual behavior (suspected bug)

  • 这是 master 版本的:

Image

Error logs or terminal output

Steps to reproduce the behavior

void mesh_lite_init(void) {
  static char softap_ssid[32] = {0};

  snprintf(softap_ssid, sizeof(softap_ssid), "%.31s", CONFIG_BRIDGE_SOFTAP_SSID);

  esp_mesh_lite_set_softap_info(softap_ssid, CONFIG_BRIDGE_SOFTAP_PASSWORD);


  wifi_config_t wifi_config = {0};
  esp_bridge_wifi_set_config(WIFI_IF_STA, &wifi_config);
  snprintf((char *)wifi_config.ap.ssid, sizeof(wifi_config.ap.ssid), "%s", softap_ssid);
  strlcpy((char *)wifi_config.ap.password, CONFIG_BRIDGE_SOFTAP_PASSWORD,
          sizeof(wifi_config.ap.password));


  wifi_config.ap.channel = 0;

  ESP_ERROR_CHECK(esp_bridge_wifi_set_config(WIFI_IF_AP, &wifi_config));


  esp_mesh_lite_config_t mesh_lite_config = ESP_MESH_LITE_DEFAULT_INIT();

  mesh_lite_config.join_mesh_ignore_router_status = true;
  mesh_lite_config.join_mesh_without_configured_wifi = global_is_mesh_root ? false : true;

  esp_mesh_lite_init(&mesh_lite_config);
}

Project release version

v1.0.2 - 2025-4-21

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

esp32 c3

Shell

ZSH

Additional context

即使 mesh 内没有任何通信,即使根节点单独退回 v1.0.1 ,只要子节点使用的还是 master 版本的 mesh lite,内存泄漏就会持续发生,直到报错或者崩溃重启

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