OS build errors

I am getting the following error when building a package. Any idea? It seems the OS is running out of memeory!

[76.549s] ERROR:colcon.colcon_core.event_reactor:Exception in event handler extension ‘event_log’: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/colcon_core/event_reactor.py”, line 78, in _notify_observers
retval = observer(event)
File “/usr/lib/python3/dist-packages/colcon_output/event_handler/event_log.py”, line 50, in call
self._file_handle.flush()
OSError: [Errno 12] Cannot allocate memory

Hello @z4ziad ,

Is this happening in the academy? Or on your local computer?

It was happening in academy or course virtual machine.

Apologies for that. Is it still happening? If so, please let us know because then it could mean there could be something about your code that’s causing that.

Thanks for your reply. I had to reduce the number of executable files in my CMakeLists.txt for Unit 4 to avoid the error. I think the compiler was running out of memory, although I am clear why this would happen.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.