hey, thanks for answering!
yes, it keeps manifesting itself.
I share the host's internet connection via USB.
The moment that I disable Wifi, things go wrong.
Here some actions, and the resulting errors in the Web consoles:
These are reproducible steps & errors:
1) I run the Trill square-visual example; shared WIFI of Mac is on.
The GUI works.
I clear the dev-consoles of both the IDE and the GUI window.
2) I switch WIFI on the host computer OFF
on Bela console:
Bela has disconnected. Any changes you make will not be saved. Check your USB connection and reboot Bela.
on IDE dev console:
[Log] disconnect reason: – "transport error" (bundle.js, line 713)
[Log] disconnected (bundle.js, line 1368)
[Error] WebSocket network error: The operation couldn’t be completed. Socket is not connected
[Log] running on – "Bela↵" (bundle.js, line 640)
on GUI (doesn't work anymore) dev console:
[Log] Error: undefined (BelaWebSocket.js, line 52)
[Log] Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …} (BelaWebSocket.js, line 53)
[Error] WebSocket network error: The operation couldn’t be completed. Socket is not connected (x2)
[Log] Error: undefined (BelaWebSocket.js, line 52)
[Log] Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …} (BelaWebSocket.js, line 53)
[Error] WebSocket network error: The operation couldn’t be completed. Socket is not connected
[Log] Socket closed (BelaWebSocket.js, line 41)
[Log] Reconnecting(1)... (BelaWebSocket.js, line 45)
[Log] BelaControl {port: 5555, address: "gui_control", ip: "bela.local", ws: WebSocket, connectInterval: 1500, …} (BelaWebSocket.js, line 46)
[Log] Socket closed (BelaWebSocket.js, line 41)
[Log] Reconnecting(1)... (BelaWebSocket.js, line 45)
[Log] BelaData {port: 5555, address: "gui_data", ip: "bela.local", ws: WebSocket, connectInterval: 1500, …} (BelaWebSocket.js, line 46)
[Log] Retrying connection in 1,500 ms (BelaWebSocket.js, line 27, x2)
3) I clear the console again; switch Wifi on Host ON again:
On IDE dev console:
[Error] WebSocket network error: The operation couldn’t be completed. Socket is not connected
[Log] disconnect reason: – "transport error" (bundle.js, line 713)
[Log] disconnected (bundle.js, line 1368)
[Error] WebSocket network error: The operation couldn’t be completed. Socket is not connected
[Log] running on – "Bela↵" (bundle.js, line 640)
On GUI dev console:
[Log] Socket opened on ws://bela.local:5555/gui_control (BelaWebSocket.js, line 67)
[Log] _____NEW_CONNECTION_____ (BelaControl.js, line 113)
[Log] Project name: exampleTempProject (BelaControl.js, line 115)
[Log] ____LOADED____ (GuiHandler.js, line 174, x8)
[Log] Socket opened on ws://bela.local:5555/gui_data (BelaWebSocket.js, line 67)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (main.html, line 0)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] request rejected (utils.js, line 39)
[Log] HTML not loaded... (GuiHandler.js, line 156)
[Log] ... try loading script (GuiHandler.js, line 157)
[Log] Loading exampleTempProject ... (GuiHandler.js, line 187)
[Log] ... /projects/exampleTempProject/sketch.js loaded (GuiHandler.js, line 199)
GUI works again.
Hope this provides a hint...
Best,
Jan