Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERR_NO_BUFFER_SPACE error on M1 Macbook Pro

I have been using the Macbook Pro M1 for web development for the past 7 months.

Lately, after about 1-2 minutes of starting my dev server (React with Vite and Gatsby), I get an ERR_NO_BUFFER_SPACE in Chrome, and I don't have an internet connection.

My co-workers with non-M1 Macbooks do not have the same issue.

like image 765
Stavros Avatar asked Oct 24 '25 08:10

Stavros


2 Answers

For me the error was produced by an Extension in VSCode, I had "Console Ninja" installed which attempts to grab console messages and errors and display them in line with the code. Once the extension was uninstalled everything went back to normal.

like image 172
Luis Suarez Avatar answered Oct 26 '25 23:10

Luis Suarez


So looking for this error in Chromium we get a reference to ENOBUFS in the source code here:

https://chromium.googlesource.com/chromium/src/+/HEAD/net/base/net_errors_posix.cc

According to this https://www.encyclo.co.uk/meaning-of-ENOBUFS the error is due to:

In programming, ENOBUFS is a POSIX error code defined in . This condition caused by lack of memory in the OS`s buffers. Typically occurs in socket programming

I would suspect that there's a bug in the socket programming in Chrome that is mostly manifested in the ARM version of the operating system. This could either be a Chrome bug or an OS bug.

In this message https://groups.google.com/g/nodejs/c/ahVUQHRVhAo?pli=1 it suggests that it could be caused by excessive writes. Could something in your React code be overloading a network buffer?

like image 26
AminM Avatar answered Oct 26 '25 23:10

AminM