ffd8 / P5LIVE

p5.js collaborative live-coding vj environment!
https://p5live.org
GNU General Public License v3.0
229 stars 35 forks source link

osc server crash... #20

Closed ffd8 closed 4 years ago

ffd8 commented 5 years ago

node.js server crashes at odd times (usually on page refresh) when using the develop branch w/ OSC implementation. pretty sure it has to do with osc server/port not being properly disconnected.. but maybe it's an issue with the node-osc module?

error message:

dgram.js:827
    throw new ERR_SOCKET_DGRAM_NOT_RUNNING();
    ^

Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
....
ffd8 commented 5 years ago

Simple fix.. update node-osc package!

ffd8 commented 4 years ago

Just kidding... updating package helped reduce it – but still occurs at random times (especially on page refresh)... any ideas out there??

MylesBorins commented 4 years ago

@ffd8 I've pushed an update to node-osc which should fix the new issue you were having with experimental module features... I think updates between 2.x -> 4.x should have fixed the disconnect error, but if you are still seeing it and can reproduce please let me know and I'll see how we can fix it!

ffd8 commented 4 years ago

@MylesBorins Thanks for chiming in and the updates – unfortunately, still an issue... Really curious how/why this occurs. There must be something additional I need to do to properly close() or whatnot before a reconnection occurs?

ffd8 commented 4 years ago

Solved (hopefully) with #39 and continuing conversation on more detailed thread.