Open harryxu opened 4 days ago
@alhirzel Would it work correctly if we replace float('Inf')
with sys.maxsize
as the maxlen
parameter?
@alhirzel Would it work correctly if we replace
float('Inf')
withsys.maxsize
as themaxlen
parameter?
I tried; it won’t work and will cause a memory error.
Env:
Error:
Through investigation, I found that the issue was caused by patch_deque in pysm using float('Inf') as the maxlen parameter for deque.
https://github.com/pgularski/pysm/blob/b48cbc79c06a70b84454bcbb24a5ac2095652c0b/pysm/pysm.py#L47-L48
The following is the code I ran in the ESP32 shell, which resulted in the same error.