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

Cannot establish a connection to the visualizer in Julia v1.8 #234

Closed
samufi opened this issue Apr 24, 2023 · 3 comments · Fixed by #235
Closed

Cannot establish a connection to the visualizer in Julia v1.8 #234

samufi opened this issue Apr 24, 2023 · 3 comments · Fixed by #235
Labels
bug Something isn't working

Comments

@samufi
Copy link

samufi commented Apr 24, 2023

The following simple code runs on Julia v1.6 but not on v1.8.

using MeshCat

visualizer = Visualizer()
open(visualizer)
setvisible!(visualizer, true)
wait(visualizer)

With Julia 1.8, I get the following error message:

┌ Info: MeshCat server started. You can open the visualizer by visiting the following URL in your browser:
└ http://127.0.0.1:8700
ERROR: LoadError: Could not establish a connection to the visualizer.
Stacktrace:   
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] wait_for_server(core::MeshCat.CoreVisualizer, timeout::Int64)
   @ MeshCat C:\Users\user\.julia\packages\MeshCat\QqqKF\src\servers.jl:24  
 [3] wait_for_server
   @ C:\Users\user\.julia\packages\MeshCat\QqqKF\src\servers.jl:10 [inlined]
 [4] #open#91
   @ C:\Users\user\.julia\packages\MeshCat\QqqKF\src\servers.jl:31 [inlined]
 [5] open
   @ C:\Users\user\.julia\packages\MeshCat\QqqKF\src\servers.jl:30 [inlined]
 [6] #open#90
   @ C:\Users\user\.julia\packages\MeshCat\QqqKF\src\servers.jl:7 [inlined]
 [7] open(::Visualizer)
   @ MeshCat C:\Users\user\.julia\packages\MeshCat\QqqKF\src\servers.jl:7
 [8] top-level scope
   @ C:\Users\user\Project\src\visualize.jl:5
in expression starting at C:\Users\user\Project\src\visualize.jl:5

I am using a fresh Julia environment on Windows 10.

@janbruedigam
Copy link
Contributor

I think that's a similar issues as #233

@ferrolho ferrolho added the bug Something isn't working label May 13, 2023
@ferrolho
Copy link
Collaborator

ferrolho commented May 13, 2023

On macOS, I can kinda reproduce this issue. The Julia REPL, seems to halt when doing open(visualizer). Interestingly, from a Jupyter notebook (on Jupyter lab) this is not an issue.

Edit: I've found that the issue is not that we can't establish a connection with the server; instead, the server is not even starting. This seems to have started from WebSockets version 1.6.

@ferrolho
Copy link
Collaborator

ferrolho commented May 13, 2023

This should be solved in MeshCat.jl v0.15.1. Please check it out and re-open this issue if that is not the case. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants