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

IOError: malloc error #11

Closed
tauqs opened this issue Jan 26, 2017 · 4 comments
Closed

IOError: malloc error #11

tauqs opened this issue Jan 26, 2017 · 4 comments

Comments

@tauqs
Copy link

tauqs commented Jan 26, 2017

Code:
import pyedflib
import numpy as np
f = pyedflib.EdfReader("example.edf")
n = f.signals_in_file
signal_labels = f.getSignalLabels()
sigbufs = np.zeros((n,f.getNSamples()[0]))
for i in np.arange(n):
sigbufs[i,:] = f.readSignal(i)
print sigbufs

####################

Error:

/usr/bin/python2.7 "/media/tauqs/main_partition/Tauqueer/Academics/8th Sem/BTP/Preprocessing.py"
Traceback (most recent call last):
File "/media/tauqs/main_partition/Tauqueer/Academics/8th Sem/BTP/Preprocessing.py", line 3, in
f = pyedflib.EdfReader("example.edf")
File "_pyedflib.pyx", line 91, in pyedflib._extensions._pyedflib.CyEdfReader.init (pyedflib/_extensions/_pyedflib.c:2519)
File "_pyedflib.pyx", line 125, in pyedflib._extensions._pyedflib.CyEdfReader.open (pyedflib/_extensions/_pyedflib.c:3076)
File "_pyedflib.pyx", line 101, in pyedflib._extensions._pyedflib.CyEdfReader.check_open_ok (pyedflib/_extensions/_pyedflib.c:2679)
IOError: malloc error

Process finished with exit code 1

@bollaking
Copy link

I can recreate with:

import pyedflib
f = pyedflib.EdfReader("example.edf")

my file is ~25MB
I am using python3.4

@fwahl711
Copy link

same issue here.

@holgern
Copy link
Owner

holgern commented Apr 28, 2017

Can you retry with the newest version?
Does it work with smaller files?

@holgern
Copy link
Owner

holgern commented May 10, 2017

I thinkt this issue can be closed.

@holgern holgern closed this as completed May 10, 2017
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

4 participants