The error "Memory error: cannot allocate 0 bytes of memory "