编译esp-idf小智报错
asyncio.exceptions.LimitOverrunError: Separator is found, but chunk is longer than limit
ValueError: Separator is found, but chunk is longer than limit
G:\espidf\v5.5.1\esp-idf\tools\idf_py_actions\tools.py 红色为增加部分,修正内存不足的问题
修改398行函数:
async def read_stream() -> Optional[str]:
try:
if hasattr(input_stream, '_limit'):
original_limit = input_stream._limit
input_stream._limit = original_limit * 2 ** 20 # 增加到1M
output_b = await input_stream.readline()
return output_b.decode(errors='ignore')
except (asyncio.LimitOverrunError, asyncio.IncompleteReadError) as e:
print(e, file=sys.stderr)
print(output_filename,file=sys.stderr)
return None
except AttributeError:
print(output_filename,file=sys.stderr)
return None