-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nerves uart terminating with port_timed_out
when used from iex
#37
Comments
Thanks for the detailed bug report. Do you know whether this is related to the 50 millisecond timeout? Also, could you turn on debug prints in the C code to see if there's a clue there? |
You are welcome. I don't get much in the log. The content after the crash:
|
I tried, 30, 60, and 600 for the timeout value and still get the crash. |
I'm trying to reproduce, but can't. I'm typing $ iex -S mix
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.6.0) - press Ctrl+C to exit (type h() ENTER for help)
Loaded ~/.iex.exs
iex(1)> NervesUartBug.bug()
%Task{
owner: #PID<0.154.0>,
pid: #PID<0.157.0>,
ref: #Reference<0.4196568369.3516137479.205605>
}
iex(2)>
!/1 !=/2
!==/2 %/2
... Here's some info about my system:
Also, I'm running Erlang 20.2. Could you let me know what you're running? Also do you have any more clues? This is really weird. |
Are you using https://github.com/freemed/tty0tty.git ?
I am using Erlang 20.1.1. It is not really necessary to type quickly tabs. |
When reading a port in a read loop with nerves uart and testing the program from iex, nerves uart crashes when typing twice
<tab>
:I have a demo code showing the problem: https://github.com/pallix/nerves_uart_bug
The text was updated successfully, but these errors were encountered: