Guru Meditation Error
Closed this issue · 1 comments
acb18fl commented
cgreening commented
Looks like it's run out of memory.
Lines 16-21 of NeuralNetwork.cpp
m_tensor_arena = (uint8_t *)malloc(kArenaSize);
if (!m_tensor_arena)
{
TF_LITE_REPORT_ERROR(m_error_reporter, "Could not allocate arena");
return;
}
We're really on the edge of what's possible with stock ESP32 devices. Does your device support PSRAM? If it does then enabling that and making it available for malloc would really help.
Alternatively we'll have to look for ways of reducing the amount of memory being used. One of the problems is that making an HTTPS request uses up a lot of memory that does not get returned.