Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not create epoll instance. errno=24

what does this runtime-error mean?

I already googled it, some say, it belongs to timers, other say its a socket error and more say, it belongs to pictures. I have sockets and timers (lot of timers) and i have no idea, which of these causes it. SOmetimes it works for over an hour, and other times just for 5 minutes. Any Ideas?

A basic impression of what this error is about is enough. If i would post all the code, where it could happen, this page would be multiple kilometres long ( a little extreme of course, but it is lot of code.)

Found right now, it could belong to too many open files but im not using any extern files in my app.

Seems to be a memory leak, belonging to this part:

public static Runnable connection() throws IOException {
    Log.e("Communication", "connection");

    new Thread(new Runnable() {
        public void run() {
            Looper.prepare();
            try {
                serv = new ServerSocket(port);                                                                      sock = serv.accept();
                reader();                                                                               } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }).start();
    return null;
like image 291
Eveli Avatar asked Mar 21 '26 03:03

Eveli


1 Answers

After deleting a part of the code above everything works fine again. Deleted the looper.prepare() and my app does not die anymore.

like image 67
Eveli Avatar answered Mar 23 '26 17:03

Eveli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!