ex_ncurses icon indicating copy to clipboard operation
ex_ncurses copied to clipboard

[error] Bad input fd in erts_poll()!

Open samsonoveu opened this issue 6 years ago • 2 comments

When I execute any of provided examples it shows error on terminal screen. [error] Bad input fd in erts_poll()! fd=0, port=#Port<0.3>, driver=fd, name=0/1

Most simple example to reproduce the error:

Application.ensure_started(:ex_ncurses)

ExNcurses.initscr()
ExNcurses.getch()
ExNcurses.endwin()

I enabled DEBUG option in ex_ncurses.c file and log file contains next lines:

load
ex_newterm
newterm done
ex_poll
enif_select -> 0
ex_read
ex_read calling enif_select
ex_read enif_select returned 0
ex_read returning 10
endwin
rt_stop called DIRECT, polling=0
endwin done

samsonoveu avatar Nov 22 '18 13:11 samsonoveu

I am having the same issue.

kyrelldixon avatar Feb 22 '19 17:02 kyrelldixon

This appears to be on the first use of ExNcurses.getch()

All uses after the first appear to work fine.

cboebel avatar Mar 05 '19 18:03 cboebel