Skip to main content
gamedev.net
🔒 Locked

MemoryError in python

Started by kikkler 0 replies 1k views
Original Post
kikkler
kikkler
i'm trying to read a big numpy array (about 3,000,000 float values) from file using cPickle . it works OK when i'm writing a program that just read this array. however in another program trying to read generates a MemoryError exception. i've looked in my memory usage in Task Manager and it's no where near the limit (the exception is being thrown when about 700MB are being consumed, while i have 2GB) any idea why this happens?
God is a concept by which we measure our pain
kikkler
kikkler
ok , i solved it by separating the array to little chunks and reading them in sequence
God is a concept by which we measure our pain

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.