Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Sensor Plotter Tutorial Throws Out of Memory Exception
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Sensor Plotter Tutorial Throws Out of Memory Exception

by dsheeran on Tue Jul 28, 2020 5:36 pm

I just received Adabox 15 today and am playing around with the tutorials. The Sensor Plotter starts by briefly showing the Sensor Plotter title bar but then throws an out-of-memory exception allocating 1616 bytes and hangs.

Is there a fix for this? I see another thread that looks like something's been done but I cannot find a file with the fix in it.

Please advise.

Thanks.

dsheeran
 
Posts: 181
Joined: Wed Aug 02, 2017 1:20 pm

Re: Sensor Plotter Tutorial Throws Out of Memory Exception

by adafruit_support_carter on Tue Jul 28, 2020 7:07 pm

Hmmm. Not sure. This looks like the other thread you mention:
viewtopic.php?f=65&t=165178#p818203
That thread mentions this issue, which I added a comment to:
https://github.com/adafruit/Adafruit_Ci ... -665335398
And it looks like maybe it's now this issue:
https://github.com/adafruit/Adafruit_Ci ... /issues/76
which is still open.

So it may be that things are still currently broken for that demo.

adafruit_support_carter
 
Posts: 20354
Joined: Tue Nov 29, 2016 2:45 pm

Re: Sensor Plotter Tutorial Throws Out of Memory Exception

by adafruit_support_carter on Wed Jul 29, 2020 11:06 am

There may be some work still ongoing to fix the main underlying issue. But for now, a simple code tweak seems to be enough to get the plotter code working again:
https://github.com/adafruit/Adafruit_Le ... /pull/1192

If you go back to the Learn page:
https://learn.adafruit.com/clue-sensor- ... or-plotter
and re-download the plotter.py file, it should have the new changes. Replace the old version with the new version and it should hopefully work.

adafruit_support_carter
 
Posts: 20354
Joined: Tue Nov 29, 2016 2:45 pm

Re: Sensor Plotter Tutorial Throws Out of Memory Exception

by dsheeran on Wed Jul 29, 2020 3:16 pm

That fixed it. Thanks.

dsheeran
 
Posts: 181
Joined: Wed Aug 02, 2017 1:20 pm

Please be positive and constructive with your questions and comments.