mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #200] Executing barrierc makes terminal line invisible #163
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @htamop on GitHub (Dec 17, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/200
Originally assigned to: @AdrianKoshka on GitHub.
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
@AdrianKoshka commented on GitHub (Dec 17, 2018):
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?
@AdrianKoshka commented on GitHub (Dec 17, 2018):
fwiw, I'll run an ubuntu 18.04 vm, and test
barriercto see if it does what you say it does. Seems easily reproducible.@AdrianKoshka commented on GitHub (Dec 17, 2018):
Seems running
barriersmade terminal input invisible... (haven't testedbarriercyet, just an observation while setting upbarrierson the same VM)@htamop commented on GitHub (Dec 17, 2018):
@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.
According to your test, both barriers and barrierc have the invisible problem regardless using vm.
If I'm available sometime, I will try to fix this..
Or, if there is someone who is kind, please fix this non-fatal issue
@AdrianKoshka commented on GitHub (Dec 17, 2018):
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.
@memecode commented on GitHub (Dec 17, 2018):
This is also an issue on mac os x, reproduced on 10.13.4.
@jwestfall69 commented on GitHub (Jan 1, 2019):
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.
@p12tic commented on GitHub (Jan 1, 2019):
@jwestfall69 This makes sense to me, feel free to do a PR :-)
@jwestfall69 commented on GitHub (Jan 1, 2019):
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
@EvanEdwards commented on GitHub (Aug 20, 2019):
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.
@bb00 commented on GitHub (Aug 27, 2019):
Or
stty -raw echo@zouyonghao commented on GitHub (Mar 26, 2020):
I have the same issue, any updates for this?
@bb00 commented on GitHub (Mar 31, 2020):
You can also run with the -f flag set if I recall correctly which will run the client in the background.