The-Modular-Mind / oscelot

OSC Mapping module for VCV Rack
GNU General Public License v3.0
20 stars 1 forks source link

Bug: Deleting an OSC'elot instance does not release the receive port #8

Open jamshark70 opened 2 years ago

jamshark70 commented 2 years ago

I'm testing in Linux, not sure if it will happen in Mac/Windows too.

Steps to reproduce:

  1. Add OSC'elot to a patch.
  2. Turn on "receive." (Here, I'm using the default port 8881.)
  3. Turn it off again.
  4. Delete the OSC'elot instance.
  5. Create another instance, without closing and relaunching Rack.
  6. Turn on "receive." The light will refuse to change color (can't enable).
  7. Change the port number and try again to enable "receive." Now it works.
  8. Delete the OSC'elot instance.
  9. Create another instance, without closing and relaunching Rack.
  10. Now both ports that you had previously used will be unavailable.
  11. Close and relaunch Rack. Now the original default port number is fine (so ports are closed when Rack goes down).

It suggests that the module destructor is not releasing the receive port.

I also tested the "send" button but couldn't reproduce the same problem with it.

The-Modular-Mind commented 2 years ago

Works fine on Windows, I'll try it on Linux at some point. What flavor are you using.

jamshark70 commented 2 years ago

I'm using Ubuntu Studio 20.04.