-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Executing barrierc makes terminal line invisible #200
Comments
Could I get more information? (Probably not related, but, I'm going to assume you've added barrier to the windows firewall?)
Correct me if I'm wrong, but I thought the barrier (GUI) client had an autostart option? |
fwiw, I'll run an ubuntu 18.04 vm, and test |
Seems running |
@AdrianKoshka I already have added barrier to the windows 10 firewall (I wasted a lot time to solve that by myself a month ago) I should had uploaded my solving story. |
if you want a temporary work around (I noticed the GUI doesn't work OOTB on ubuntu 18.04), I can give you one:
This doesn't solve the whole disappearing input, but it does solve the GUI not working. |
This is also an issue on mac os x, reproduced on 10.13.4. |
I have this issue too and looked into the cause. barrier is setup to always check if there is input on stdin. The only thing its looking for is to see if the user pressed 'S', which will trigger a shutdown/exit. The code that is making stdin non-blocking is the thing messing up the terminal (NonBlockingStream). When you daemonize its common practice to re-open stdin/stdout/stderr as /dev/null, which barrier is doing. This however causes a problem because its still trying to read input from stdin for the 'S' check. This ends up triggering the assert() in
The read() of stdin (/dev/null) is returning 0. Personally I think it would make the most sense to just remove the stdin monitoring code. The user can just do ctrl-c if they wanna kill barrier when its in non-daemon mode. If you are ok with that I can make a PR removing it. |
@jwestfall69 This makes sense to me, feel free to do a PR :-) |
Looks like this will be a little more involved. The GUI app spawns the cli then is using the 'S' char when it wants the cli to shutdown. I will see if I can come up with something to still fix the issue |
Incidentally, the classic way to fix this as a user is to type (blindly) the commandline:
Which fixes just about all tty issues. Hopefully that's a useful tip for people running into this and needing a quick fix. |
Or |
I have the same issue, any updates for this? |
You can also run with the -f flag set if I recall correctly which will run the client in the background. |
Operating Systems
Server: Microsoft 10 Enterprise
Client: Ubuntu 18.04
Barrier Version
Windows 10 : 2.1.0-release-0b2dfd80
Ubuntu 18.04 : 2.1.0-snapshot-8b69f9fe
Steps to reproduce bug
Bug 1 : Terminal output becomes invisible.
Bug 2 : Client doesn't work.
Other info
However, when executing command with --no-daemon option, it worked.
I'd like to add barrierc into Ubuntu Startup Applications Preferences instead of manually starting barrier whenever I start ubuntu.
Please share your thought
The text was updated successfully, but these errors were encountered: