Page 1 of 1

a problem with thonny or µPython???

Posted: Wed Nov 04, 2020 6:44 pm
by BL007
Hello,

I want open a file. This file is r.a.120kB. Because I have a ESP with 8/4MB SPI-RAM. I open the file, read it with readlines(), determinate the numbers of lines and show that in the shell. SC1

All in butter.

Maby a half minutes later the completly content of the variabe lines/file appears in the shell. The ESP hangs up(I must reset him) and the Thonny is 1 minute blocked. SC2

I suspect this is related to the size of the variable. Or ist his a problem of Thonny?

Re: a problem with thonny or µPython???

Posted: Thu Nov 05, 2020 8:24 am
by aivarannamaa
This is probably Thonny's fault. Please try https://github.com/thonny/thonny/releases/tag/v3.3.0b7, which shortens the repr-s of the values for the variable browser.

Actually, before you upgrade, please try whether you experience the same problem if you close the variable browser.

Re: a problem with thonny or µPython???

Posted: Fri Nov 06, 2020 10:33 am
by BL007
Thank you very mutch!
If you are in Thuringia the next time, I owe you:

Re: a problem with thonny or µPython???

Posted: Fri Nov 06, 2020 12:25 pm
by aivarannamaa
BL007 wrote:
Fri Nov 06, 2020 10:33 am
If you are in Thuringia the next time, I owe you:
Wow! I'll keep this in mind :)