Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Error #30

Open
TheChymera opened this issue Jul 30, 2018 · 0 comments
Open

Memory Error #30

TheChymera opened this issue Jul 30, 2018 · 0 comments

Comments

@TheChymera
Copy link
Member

Apparently COSplay fails with larger sequence files.

Given the following sequence protocol:

onset	duration	frequency	pulse_width	amplitude	out_channel	wavelength	strength	strength_unit
50.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
51.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
52.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
53.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
54.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
55.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
56.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
57.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
100.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
101.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
102.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
103.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
104.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
105.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
106.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
107.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
150.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
151.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
152.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
153.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
154.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
155.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
156.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
157.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
200.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
201.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
202.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
203.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
204.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
205.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
206.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
207.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
250.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
251.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
252.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
253.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
254.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
255.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
256.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
257.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
300.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
301.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
302.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
303.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
304.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
305.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
306.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
307.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
350.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
351.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
352.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
353.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
354.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
355.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
356.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
357.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
400.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
401.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
402.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
403.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
404.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
405.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
406.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
407.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
450.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
451.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
452.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
453.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
454.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
455.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
456.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
457.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
500.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
501.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
502.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
503.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
504.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
505.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
506.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW
507.0	0.4	25	0.01	1.0	1.0	488.0	30.0	mW

I get:

[mri@pharmascan70 ~]$ COSplay 

Press Ctrl+c when you are done to close the program.

Searching port...
Connection to /dev/ttyACM0 established.

Sequences found on computer:
None
Size of sequence library: 1

Error on pyboard:
Traceback (most recent call last):
  File "main.py", line 323, in <module>
  File "main.py", line 190, in main
  File "/flash/lib/tsv.py", line 94, in dumps
MemoryError: memory allocation failed, allocating 2066 bytes

This is in spite of there being plenty of free space on the pyboard (40kB free, whereas the file is about 3.3kB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant