Bug #282

JTorX 1.3.0 may hang (at least on Mac) when clicking delete button (not only when a run is active)

Added by Axel Belinfante over 10 years ago.

Status:NewStart date:28 Jan 2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

This shows debug prints when we close (delete) JTorX while testing a (real-time) program connected via stdin/stdout.
At some point it hangs, until we hit ^C (control-c).
Then we see: StdInOut-Adapter suberr: Exception in thread "TestInput" java.lang.NullPointerException

step 43
compound-t: 212 -- Delta ! 42333.0 -> 215
compound-s-state: 215
PrimerState-menu-already-expanded 241
PrimerState-menu-already-expanded 241
PrimerState-menu-already-expanded 241
PrimerState-menu-already-expanded 241
closed
TorX-Explorer dbg: in done
TorX-Explorer-factory (244)(0)
logmux utwente.fmt.jtorx.logger.mux.LogMux@d2fb67 done: false
Animation animsc.kit done starting=false running=true srvPort=51370
suberr: animscsrv:3582 Connection accepted from client tcp!127.0.0.1!51932
Animation anidot.kit done starting=false running=true srvPort=51369
logmux utwente.fmt.jtorx.logger.mux.LogMux@d2fb67 done: mc.done: utwente.fmt.jtorx.logger.mux.Multicast@773a14
mc: ServerSocket[addr=localhost/127.0.0.1,port=0,localport=51375] : done:
mc ServerSocket[addr=localhost/127.0.0.1,port=0,localport=51375] : end: closing listen socket
logmux utwente.fmt.jtorx.logger.mux.LogMux@d2fb67 done: mc.done: utwente.fmt.jtorx.logger.mux.Multicast@860315
mc: ServerSocket[addr=localhost/127.0.0.1,port=0,localport=51380] : done:
mc ServerSocket[addr=localhost/127.0.0.1,port=0,localport=51380] : end: closing listen socket
mc: ServerSocket[addr=localhost/127.0.0.1,port=0,localport=51380] ListenThread io exception Socket closed
Animation animsc.kit run io exception: Socket closed
Animation anidot.kit run io exception: Socket closed
mc: done: closing client socket Socket[addr=/127.0.0.1,port=51384,localport=51380]
mc: done: closing client socket Socket[addr=/127.0.0.1,port=51383,localport=51380]
ChildStarter cleanup: "Torx-Instantiator" utwente.fmt.jtorx.utils.ChildStarter@ed54a0
ChildStarter cleanup: "Torx-Explorer" utwente.fmt.jtorx.utils.ChildStarter@9d2f6b
ChildStarter cleanup: "Torx-Instantiator" utwente.fmt.jtorx.utils.ChildStarter@dd8664
ChildStarter cleanup: "StdInOut-Adapter" utwente.fmt.jtorx.utils.ChildStarter@2e879
mc: Socket[addr=/127.0.0.1,port=51384,localport=51380] run reader/loop io exception Socket closed
mc: Socket[addr=/127.0.0.1,port=51384,localport=51380] cleaned up in MultiServerThread
mc: Socket[addr=/127.0.0.1,port=51383,localport=51380] run reader/loop io exception Socket closed
mc: Socket[addr=/127.0.0.1,port=51383,localport=51380] cleaned up in MultiServerThread
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@9d2f6b stop
suberr: anidotsrv:3583: Connection accepted from client tcp!127.0.0.1!51933: sock13
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@9d2f6b onProcessComplete: 0
errreporter: eot: Torx-Explorer child-starter exits: 0
ChildStarter: in done: activatedDestroyer was interrupted:
suberr: anidotsrv:3583: exiting
java.lang.InterruptedException: sleep interrupted
ErrorReporter (display already disposed): Torx-Explorer child-starter exits: 0
at java.lang.Thread.sleep(Native Method)
at utwente.fmt.jtorx.utils.ChildStarter$1.run(ChildStarter.java:158)
ErrorReporter (display already disposed): ChildStarter: killing program (expect failure result)
ErrorReporter (display already disposed): ChildStarter: killing program (expect failure result)
Torx-Instantiator child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@dd8664 stop
Torx-Instantiator child-starter utwente.fmt.jtorx.utils.ChildStarter@dd8664 onProcessFailed: Process exited with an error: 143(Exit value: 143)
errreporter: eot: Torx-Instantiator child-starter exits with failure (not unexpectedly, because we had to kill the process): Process exited with an error: 143(Exit value: 143)
ErrorReporter (display already disposed): Torx-Instantiator child-starter exits with failure (not unexpectedly, because we had to kill the process): Process exited with an error: 143(Exit value: 143)
Torx-Instantiator child-starter utwente.fmt.jtorx.utils.ChildStarter@dd8664 reported onProcessFailed error
Torx-Instantiator child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@ed54a0 stop
Torx-Instantiator child-starter utwente.fmt.jtorx.utils.ChildStarter@ed54a0 onProcessFailed: Process exited with an error: 143(Exit value: 143)
errreporter: eot: Torx-Instantiator child-starter exits with failure (not unexpectedly, because we had to kill the process): Process exited with an error: 143(Exit value: 143)
ErrorReporter (display already disposed): Torx-Instantiator child-starter exits with failure (not unexpectedly, because we had to kill the process): Process exited with an error: 143(Exit value: 143)
Torx-Instantiator child-starter utwente.fmt.jtorx.utils.ChildStarter@ed54a0 reported onProcessFailed error
StreamHandler anidot.kit stop
StreamHandler animsc.kit stop
Animation anidot.kit onProcessComplete: 0
Animation animsc.kit onProcessComplete: 0
^C2010-01-28T17:03:50.948+0100 StdInOut-Adapter suberr: Exception in thread "TestInput" java.lang.NullPointerException
2010-01-28T17:03:50.948+0100 StdInOut-Adapter suberr: Exception in thread "TestInput" java.lang.NullPointerException
ErrorReporter (display already disposed): StdInOut-Adapter suberr: Exception in thread "TestInput" java.lang.NullPointerException
ErrorReporter (display already disposed): StdInOut-Adapter: Exception in thread "TestInput" java.lang.NullPointerException
2010-01-28T17:03:50.948+0100 StdInOut-Adapter suberr: at com.uppaal.smartlamp.JTorXIOHandler.run(JTorXIOHandler.java:57)
2010-01-28T17:03:50.949+0100 StdInOut-Adapter suberr: at com.uppaal.smartlamp.JTorXIOHandler.run(JTorXIOHandler.java:57)
ErrorReporter (display already disposed): StdInOut-Adapter suberr: at com.uppaal.smartlamp.JTorXIOHandler.run(JTorXIOHandler.java:57)
ErrorReporter (display already disposed): StdInOut-Adapter: at com.uppaal.smartlamp.JTorXIOHandler.run(JTorXIOHandler.java:57)
StdInOut-Adapter child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@2e879 stop
StdInOut-Adapter child-starter utwente.fmt.jtorx.utils.ChildStarter@2e879 onProcessFailed: Process exited with an error: 130(Exit value: 130)
errreporter: eot: StdInOut-Adapter child-starter exits with failure: Process exited with an error: 130(Exit value: 130)
ErrorReporter (display already disposed): StdInOut-Adapter child-starter exits with failure: Process exited with an error: 130(Exit value: 130)
StdInOut-Adapter child-starter utwente.fmt.jtorx.utils.ChildStarter@2e879 reported onProcessFailed error
ChildStarter: in done: activatedDestroyer was interrupted:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at utwente.fmt.jtorx.utils.ChildStarter$1.run(ChildStarter.java:158)
[LaunchRunner Error] utwente.fmt.jtorx.testgui.Testgui.main(String[]) threw an exception:
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
at java.util.AbstractList$Itr.next(AbstractList.java:420)
at utwente.fmt.jtorx.utils.ChildStarter.cleanup(ChildStarter.java:318)
at utwente.fmt.jtorx.testgui.Testgui.cleanup(Testgui.java:2003)
at utwente.fmt.jtorx.testgui.Testgui.access$20(Testgui.java:1986)
at utwente.fmt.jtorx.testgui.Testgui$11.shellClosed(Testgui.java:1951)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Shell.closeWidget(Unknown Source)
at org.eclipse.swt.widgets.Shell.kEventWindowClose(Unknown Source)
at org.eclipse.swt.widgets.Widget.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at utwente.fmt.jtorx.testgui.Testgui.<init>(Testgui.java:1979)
at utwente.fmt.jtorx.testgui.Testgui.main(Testgui.java:2069)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)


Related issues

Related to JTorX - Bug #211: need better cleanup (garbage collection) of LTSes (stop s... New 10 Nov 2009
Related to JTorX - Bug #144: JTorX crashes when we close (quit) JTorX while a guided s... New 25 Jun 2009

Also available in: Atom PDF