Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

MemoryError: ("cairo returned CAIRO_STATUS_NO_MEMORY: b'out of memory'", 1) #151

Open
antoney1998 opened this issue May 28, 2020 · 1 comment

Comments

@antoney1998
Copy link

(pcb_test) C:\Python37-32\internsh\pcb-tools\examples>python cairo_example.py
Traceback (most recent call last):
File "cairo_example.py", line 63, in
ctx.dump(os.path.join(os.path.dirname(file), 'cairo_example.png'))
File "C:\Python37-32\internsh\pcb_test\lib\site-packages\pcb_tools-0.1-py3.7.egg\gerber\render\cairo_backend.py", line 150, in dump
File "C:\Python37-32\internsh\pcb_test\lib\site-packages\cairocffi\surfaces.py", line 597, in write_to_png
self._pointer, encode_filename(target)))
File "C:\Python37-32\internsh\pcb_test\lib\site-packages\cairocffi_init
.py", line 69, in _check_status
raise exception(message, status)
MemoryError: ("cairo returned CAIRO_STATUS_NO_MEMORY: b'out of memory'", 1)

@antoney1998 antoney1998 changed the title memory error MemoryError: ("cairo returned CAIRO_STATUS_NO_MEMORY: b'out of memory'", 1) May 28, 2020
@antoney1998
Copy link
Author

I get this error while running the example file

This line throws error

ctx.dump(os.path.join(os.path.dirname(file), 'cairo_example.png'))

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

No branches or pull requests

1 participant