Skip to content
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

Window() just freezes (in a docker) #266

Open
kforner opened this issue Jun 18, 2020 · 2 comments
Open

Window() just freezes (in a docker) #266

kforner opened this issue Jun 18, 2020 · 2 comments

Comments

@kforner
Copy link

kforner commented Jun 18, 2020

Hi,

In a docker with remote x11, when I run:

using Blink
w = Window()

an empty window appears on my screen. But the julia REPL seems to be waiting, it does not print the prompt so that I can not type any further command.

If I close the window (with the cross), nothing happens.

If I type CTRL+C in the console, I get:

^CERROR: Unexpected end of input
 ...when parsing byte with value '0'InterruptException:
Stacktrace:
Stacktrace:

 [1]  [1] errortry_yieldto((::::Stringtypeof()Base at ../error.jl:33ensure_rescheduled
) [2] , _error::(Base::.StringRefValue, {::TaskJSON.Parser}.)StreamingParserState at {./task.jl:654Sockets
. [2] TCPSocketwait} at )./task.jl:710 at  [inlined]/usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:150

 [3]  [3] waitbyteat((::::BaseJSON.Parser..GenericConditionStreamingParserState{{Base.ThreadsSockets..SpinLockTCPSocket}})) at  at ./condition.jl:106/usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:59

 [4]  [4] _waitcurrent( at ::/usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:72Task [inlined])
 at  [5] ./task.jl:238chomp_space!
 at  [5] /usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:117wait [inlined] at 
./task.jl:265 [6]  [inlined]parse_value
( [6] ::waitJSON.Parser(.::ParserContextWindow{)Dict at {/usr/local/julia_depot/packages/Blink/u1xcH/src/AtomShell/window.jl:114String
, [7] AnyWindow}(,::Int64Electron,, true::,Pagenothing, }::, Dict::{JSON.ParserAny.,StreamingParserStateAny{}Sockets; .asyncTCPSocket::}Bool)) at  at /usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:160/usr/local/julia_depot/packages/Blink/u1xcH/src/AtomShell/window.jl:72

 [7]  [8] parseWindow((::::SocketsElectron., TCPSocket::; Dictdicttype{::AnyType,{AnyT}};  where asyncT::, Boolinttype):: at Type/usr/local/julia_depot/packages/Blink/u1xcH/src/AtomShell/window.jl:45{
Int64 [9] }Window,  at allownan/usr/local/julia_depot/packages/Blink/u1xcH/src/AtomShell/window.jl:45:: [inlined]Bool (repeats , 2null times)::
Nothing [10] )#Window#14 at  at /usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:494/usr/local/julia_depot/packages/Blink/u1xcH/src/AtomShell/window.jl:89
 [inlined] [8] 
parse [11]  at Window/usr/local/julia_depot/packages/JSON/d89fA/src/Parser.jl:492( [inlined])
 at  [9] /usr/local/julia_depot/packages/Blink/u1xcH/src/AtomShell/window.jl:89macro expansion
 at  [12] /usr/local/julia_depot/packages/Lazy/KYseE/src/macros.jl:268top-level scope [inlined] at 
REPL[2]:1 [10] 
macro expansion

julia version 1.4.2
Blink v0.12.3
Debian GNU/Linux 9.11

@twavv
Copy link
Member

twavv commented Jul 1, 2020

I'm not entirely sure what In a docker with remote x11 means, but the main issue with Docker is that it's not usually running an X11 server. Does it work if you run with xvfb-run?

@kforner
Copy link
Author

kforner commented Jul 1, 2020

docker with remote x11

means that you use the local host X11 server by binding the x11 socker inside the container.
With this all usual x11 applications work (xeyes, evince, firefox, eclipse...).

Does it work if you run with xvfb-run?

I did not try, but here the point is to see the window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants