LeprovostQuentin / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

Cannot unregister Tuio2DCursorInputSource and Tuio2dObjectInputSource #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build a new MTApplication (I did it with something like this : public class 
MyApp extends MTApplication)
2. In the StartUp method, try to unregister all default input sources :
for (AbstractInputSource source : registeredInputSources)
    this.getInputManager().unregisterInputSource(source);

What is the expected output?
Nothing...

What do you see instead?
An exception...

TUIO client connected: port 3333
java.net.SocketException: Socket closed
    at java.net.PlainDatagramSocketImpl.receive0(Native Method)
    at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:145)
    at java.net.DatagramSocket.receive(DatagramSocket.java:725)
    at com.illposed.osc.OSCPortIn.run(OSCPortIn.java:64)
    at java.lang.Thread.run(Thread.java:662)
Exception in thread "Animation Thread" java.lang.NullPointerException
    at org.tuio4j.TuioClient.disconnect(TuioClient.java:65)
    at org.mt4j.input.inputSources.Tuio2dObjectInputSource.onUnregistered(Tuio2dObjectInputSource.java:42)
    at org.mt4j.input.InputManager.unregisterInputSource(InputManager.java:128)
    at atol.example.diamondtouch.mt4j.basic.dtCursor.StartDTCursor.startUp(StartDTCursor.java:28)
    at org.mt4j.MTApplication.setup(MTApplication.java:328)
    at processing.core.PApplet.handleDraw(PApplet.java:1580)
    at processing.core.PApplet.run(PApplet.java:1502)
    at java.lang.Thread.run(Thread.java:662)

What version of the product are you using? On what operating system?
0.98 under Linux Debian x86

Original issue reported on code.google.com by frederic...@gmail.com on 30 May 2011 at 11:52

GoogleCodeExporter commented 8 years ago

Original comment by sirhc.f...@gmail.com on 1 Jun 2011 at 8:56

GoogleCodeExporter commented 8 years ago
should be fixed in the latest branches/new

Original comment by sirhc.f...@gmail.com on 10 Jun 2011 at 9:09