#19359·esphome

尝试加载不兼容的模型时 mWW 发生崩溃

作者: kahrendt创建于 2025年7月30日更新于 2026年9月17日
标签stale

在尝试添加不兼容的模型(如 openWakeWord)时,设备会崩溃,而不是进行优雅处理。Jesse 将崩溃追踪到此处: if (this->interpreter_->AllocateTensors() != kTfLiteOk) { ESP_LOGE(TAG, "Failed to allocate tensors for the streaming model"); return false; } 通过分析,我猜想这里还需要释放 this->interpreter_,因为它尝试调用 this->interpreter_.reset(); 来卸载模型,而后者又调用析构函数,从而导致问题出现,因为一开始就没有正确设置。

内容来源: esphome/esphome