sbinet / go-python

naive go bindings to the CPython2 C-API
Other
1.53k stars 138 forks source link

MemoryError #57

Open cmullenmm opened 6 years ago

cmullenmm commented 6 years ago

Hi

We are experiencing a MemoryError while running a function in Python from your go library. Increasing the amount of memory works fine to solve this issue when the Python is run directly. When run through this library we receive the MemoryError no matter how much we make available to the process. Is there some configuration which dictates the amount of memory Go is allocating for the Python process? If so can we change it?

Thanks for your help

halegreen commented 5 years ago

Same as me. I just run a simple python script, while the go exit with the error :

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
Jasminetyt commented 4 years ago

I have meet the same question

sbinet commented 4 years ago

It's hard to help without a simple reproducer. At face value, I would say you're all missing calls to 'Decref'.