rohitvarkey / ThreeJS.jl

Julia interface to WebGL using Three-js custom elements and Patchwork.jl
https://rohitvarkey.github.io/ThreeJS.jl
Other
56 stars 15 forks source link

Does not work on Safari #22

Open StreetLevel opened 8 years ago

StreetLevel commented 8 years ago

Hey there, i tried to get this interface running, but i get only the error above for the examples. Is this my fault or is the package broken at the moment? Is there a working version i can move back to?

Here is the full error text from escher:

Listening on 0.0.0.0:5555...
ERROR (unhandled task failure): write: broken pipe (EPIPE)
 in yieldto at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in wait at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in stream_wait at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in uv_write at stream.jl:944
 in buffer_or_write at stream.jl:954
 in write at stream.jl:993
 in write at ascii.jl:99
 in write at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:181
 in on_message_complete at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:420
 in on_message_complete at /Users/max/.julia/v0.4/HttpServer/src/RequestParser.jl:104
 in http_parser_execute at /Users/max/.julia/v0.4/HttpParser/src/HttpParser.jl:92
 in process_client at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:365
 in anonymous at task.jl:447
Failed to push!WARNING: lift(f,s::Signal...; kwargs...) is deprecated, use map(f,s...; kwargs...) instead.

     in (depwarn" at Tdeprecated.jlh:r73e
e in JliftS at "deprecated.jl,:"50t
h in rmaine at e/Volumes/Data HD/Workspace/ElementalExt/src/ThreeJS/examples/rotatingcube.jlj:s11"
) in 
anonymous at /Users/max/.julia/v0.4/Escher/src/cli/serve.jlto node
    :WeakRef168(
Signal{Any}(("ThreeJS","threejs"), nactions=1) in )anonymous
 at Asset file /Users/max/.julia/v0.4/ThreeJS/assets/threejs.html doesn't exist/Users/max/.julia/v0.4/Mux/src/Mux.jl
:15
 in error at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib in 
anonymous at /Users/max/.julia/v0.4/Mux/src/Mux.jl in resolve_asset at /Users/max/.julia/v0.4/Escher/src/basics/window.jl:8
:26
 in splitquery at /Users/max/.julia/v0.4/Mux/src/basics.jl in import_cmd at /Users/max/.julia/v0.4/Escher/src/cli/serve.jl:28
:68
 in anonymous at /Users/max/.julia/v0.4/Mux/src/Mux.jl in anonymous at /Users/max/.julia/v0.4/Escher/src/cli/serve.jl:8
:161
 in wcatch at /Users/max/.julia/v0.4/Mux/src/websockets_integration.jl in anonymous at /Users/max/.julia/v0.4/Reactive/src/operators.jl:12
:36
 in anonymous at /Users/max/.julia/v0.4/Mux/src/Mux.jl in do_action at /Users/max/.julia/v0.4/Reactive/src/core.jl:8
:135
 in todict at /Users/max/.julia/v0.4/Mux/src/basics.jl in send_value! at /Users/max/.julia/v0.4/Reactive/src/core.jl:21
:130
 in anonymous at /Users/max/.julia/v0.4/Mux/src/Mux.jl in send_value! at /Users/max/.julia/v0.4/Reactive/src/core.jl:12 (repeats 2 times)
:133
 in anonymous at /Users/max/.julia/v0.4/Mux/src/Mux.jl in run at /Users/max/.julia/v0.4/Reactive/src/core.jl:8
:190
 in anonymous at /Users/max/.julia/v0.4/Mux/src/server.jl in run at /Users/max/.julia/v0.4/Reactive/src/core.jl:38
:181
 in  [inlined code] from handle/Users/max/.julia/v0.4/Reactive/src/core.jl at /Users/max/.julia/v0.4/WebSockets/src/WebSockets.jl:228
 in anonymous at task.jl:447
:382
 in on_message_complete at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:393
 in on_message_complete at /Users/max/.julia/v0.4/HttpServer/src/RequestParser.jl:104
 in http_parser_execute at /Users/max/.julia/v0.4/HttpParser/src/HttpParser.jl:92
 in process_client at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:365
 in anonymous at task.jl:447
while loading /Users/max/.julia/v0.4/Escher/bin/escher, in expression starting on line 48

Thank you in advance.

Best Max

rohitvarkey commented 8 years ago

Hi Max,

The examples were broken before with the latest version of Escher, but I've just pushed revised examples which should work without any of the depwarns you see above.

The broken pipe error seems to be a websocket closed problem, refreshing the page or restarting the server should solve it!

What worries me from the traceback above is at Asset file /Users/max/.julia/v0.4/ThreeJS/assets/threejs.html doesn't exist

Can you check if that file is there? Also, please try running the examples again and let me know if you have problems.

Regards, Rohit

StreetLevel commented 8 years ago

Hi Rohit,

many thanks for the prompt answer. I have tested your new examples. The depwarns are removed but i still got an error:

Maximilians-MBP:examples max$ ~/.julia/v0.4/Escher/bin/escher --serve
Listening on 0.0.0.0:5555...
ERROR (unhandled task failure): write: broken pipe (EPIPE)
 in yieldto at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in wait at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in stream_wait at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in uv_write at stream.jl:944
 in buffer_or_write at stream.jl:954
 in write at stream.jl:993
 in write at ascii.jl:99
 in write at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:181
 in on_message_complete at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:420
 in on_message_complete at /Users/max/.julia/v0.4/HttpServer/src/RequestParser.jl:104
 in http_parser_execute at /Users/max/.julia/v0.4/HttpParser/src/HttpParser.jl:92
 in process_client at /Users/max/.julia/v0.4/HttpServer/src/HttpServer.jl:365
 in anonymous at task.jl:447

reloading the browser produces following error:

ERROR (unhandled task failure): EOFError: read end of file
 in read at stream.jl:911
 in read_frame at /Users/max/.julia/v0.4/WebSockets/src/WebSockets.jl:262
 in read at /Users/max/.julia/v0.4/WebSockets/src/WebSockets.jl:310
 [inlined code] from /Users/max/.julia/v0.4/Escher/src/cli/serve.jl:184
 in anonymous at task.jl:447

I am able to see the sliders and some text in the browser but unfortunately no graphics.

Best, Max

rohitvarkey commented 8 years ago

Hmm. That's weird. BTW What browser are you using? I'd recommend Chrome or Firefox.

StreetLevel commented 8 years ago

I'm using Safari on Mac OSX Captain. Using Chrome solved the problem for me. Many thanks

rohitvarkey commented 8 years ago

Thanks for the error report! I'll look into fixing this and do let me know if you need any help.

Regards, Rohit