shadorki / vrc-owo-suit

A python application for VRChat players to use OWO Suits in game
https://twitter.com/shadoki_/status/1621277795828781056?s=20&t=GLwZNh9L0sTm-pCOqjlmig
25 stars 9 forks source link

App silently crashes if ports are already taken (OSError gets ignored) #11

Open EinDev opened 1 year ago

EinDev commented 1 year ago

If the default server port is already taken, a user is unable to start the application.

How to reproduce: Have another OSC app running while starting this app.

Expected Behaviour: When the app is unable to bind, show an error message explaining the situatin like: "The OSC port (UDP ) is already taken. Please change the port or close the other application listening to that port. If you want to run multiple OSC applications, consider running VOR (https://github.com/SutekhVRC/VOR/tree/main)"

Bonus points: Generate the default port dynamically on the first start based on what is available.

I would volunteer to open a PR to implement this, feel free to let me know if this solution is acceptable. I will start working on it as soon as i get a response :)

shadorki commented 12 months ago

Go ahead and implement and I'll have a look! :+1: