Bug #189

JtorX (1.1.1) crashes when torx-explorer program does not work

Added by Axel Belinfante almost 11 years ago. Updated almost 11 years ago.

Status:NewStart date:20 Oct 2009
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

When the torx explorer program (started as file.tx)
just immediately exits after being started
(in this case: succesfully -- does exit code matter?)
without even having given the initial state,
JTorX crashes (exception failure...)

try.tx (15 Bytes) Axel Belinfante, 10 Nov 2009 17:54


Related issues

Related to JTorX - Bug #214: JTorX 1.2.0 crashes when .jrrc file contains syntax error New 10 Nov 2009

History

#1 Updated by Axel Belinfante almost 11 years ago

it seems, JTorX does not crash in this case: it only displays an exception that was caught.

However, it does seem to crash (window disappears) when (on a mac) it is given a file.tx that is not executable (no x in permissions).
Needs further investigation.

#2 Updated by Axel Belinfante almost 11 years ago

JTorX 1.2.0 does crash when we give it the attached shell script as torx explorer, and it is executable.
If the shell script cannot be executed, this is reported and JTorX does not crash.

Interestingly enough, the first attempts of View-ing /tmp/try.tx actually looked at /private/tmp/try.tx and then JTorX did not crash;
after changing the path to be /tmp/try.tx in the text line in the Config pane JTorX crashes.
(or maybe it always doesn't crash the first time?)

:; ~/Desktop/JTorX-1.2.0.app/Contents/MacOS/JavaApplicationStub
/Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/jar_0.jar
Primary screen size: 1680x1050
Primary screen height >= 875 using portrait layout
(you can overrule this by giving comand line option --landscape )
startServer animsc.kit about to start server
cur-errreporter: Animation animsc.kit: started server
startServer anidot.kit about to start server
cur-errreporter: Animation anidot.kit: started server
StreamHandler anidot.kit start done=false
StreamHandler animsc.kit start done=false
suberr: topdir: /Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/anim
sc.kit
suberr: ap /tmp/tcldotlib /Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/tclkit/lib/tcl8.4 /Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/tclkit/lib /Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/anidot.kit/lib /Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/tclkit/lib/tk8.4
suberr: loading (/Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/tclkit/lib/tcl8.4 /Users/axel/Desktop/JTorX-1.2.0.app/Contents/Resources/Java/tclkit/lib) (/var/folders/oz/oz2+Ucj6Fyq6XmdJEv6qhk+++TM/-Tmp-/tcldotlib) (libtcldot_
builtin.dylib) (/private/var/folders/oz/oz2+Ucj6Fyq6XmdJEv6qhk+++TM/-Tmp-/tcldotlib) ...
suberr: anidotsrv:670: warning: starting server: private=1
suberr: anidotsrv:670: listening on tcp!127.0.0.1!49501
port: 49501
suberr: animscsrv:669 listening on tcp!127.0.0.1!49500
port: 49500
torx-explorer utwente.fmt.jtorx.torx.explorer.torx.TorxExplorer@f796d0 constructor begin
ChildStarter utwente.fmt.jtorx.utils.ChildStarter@e1a0ee constructor begin
dir=/private/tmp
ChildStarter utwente.fmt.jtorx.utils.ChildStarter@e1a0ee constructor end
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@e1a0ee run start
Torx-Explorer child-starter about to start child
Torx-Explorer child-starter started child
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@e1a0ee start in=java.io.BufferedOutputStream@1b50a1 out=java.io.BufferedReader@4ab40a err=java.io.BufferedReader@721965
Torx-Explorer child-starter got io interface to child
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@e1a0ee run end
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@e1a0ee stop
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@e1a0ee onProcessComplete: 0
errreporter: eot: Torx-Explorer child-starter exits: 0
suberr: anidotsrv:670: Connection accepted from client tcp!127.0.0.1!49508: sock12
Animation anidot.kit run io exception: Socket closed
run-errreporter: Torx-Explorer child-starter exits: 0
suberr: DEBUG: anidotsrv: start: fileevent sock12 readable handle sock12 stdin cmdinterp cmdcleanup 1 graph0 sock12
suberr: DEBUG: anidotsrv: Connection closed by client stdin.
suberr: DEBUG: anidotsrv: cmdcleanup 1 sock12 graph0 sock12
torx-explorer utwente.fmt.jtorx.torx.explorer.torx.TorxExplorer@cc9d70 constructor begin
ChildStarter utwente.fmt.jtorx.utils.ChildStarter@7456bc constructor begin
dir=/private/tmp
ChildStarter utwente.fmt.jtorx.utils.ChildStarter@7456bc constructor end
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@7456bc run start
Torx-Explorer child-starter about to start child
Torx-Explorer child-starter started child
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@7456bc start in=java.io.BufferedOutputStream@ea85b4 out=java.io.BufferedReader@efeff8 err=java.io.BufferedReader@738a71
Torx-Explorer child-starter got io interface to child
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@7456bc run end
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@7456bc stop
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@7456bc onProcessComplete: 0
errreporter: eot: Torx-Explorer child-starter exits: 0
suberr: anidotsrv:670: Connection accepted from client tcp!127.0.0.1!49509: sock12
Animation anidot.kit run io exception: Socket closed
suberr: DEBUG: anidotsrv: start: fileevent sock12 readable handle sock12 stdin cmdinterp cmdcleanup 2 graph1 sock12
run-errreporter: Torx-Explorer child-starter exits: 0
suberr: DEBUG: anidotsrv: Connection closed by client stdin.
suberr: DEBUG: anidotsrv: cmdcleanup 2 sock12 graph1 sock12
torx-explorer utwente.fmt.jtorx.torx.explorer.torx.TorxExplorer@ced821 constructor begin
ChildStarter utwente.fmt.jtorx.utils.ChildStarter@cf68af constructor begin
dir=/tmp
ChildStarter utwente.fmt.jtorx.utils.ChildStarter@cf68af constructor end
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@cf68af run start
Torx-Explorer child-starter about to start child
Torx-Explorer child-starter started child
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@cf68af start in=java.io.BufferedOutputStream@e1f305 out=java.io.BufferedReader@19ee8a err=java.io.BufferedReader@7bbfb8
Torx-Explorer child-starter got io interface to child
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@cf68af run end
suberr: anidotsrv:670: Connection accepted from client tcp!127.0.0.1!49510: sock12
suberr: DEBUG: anidotsrv: start: fileevent sock12 readable handle sock12 stdin cmdinterp cmdcleanup 3 graph2 sock12
Torx-Explorer child-starter StreamHandler utwente.fmt.jtorx.utils.ChildStarter@cf68af stop
Torx-Explorer child-starter utwente.fmt.jtorx.utils.ChildStarter@cf68af onProcessComplete: 0
[LaunchRunner Error] utwente.fmt.jtorx.testgui.Testgui.main(String[]) threw an exception:
errreporter: eot: Torx-Explorer child-starter exits: 0
java.lang.NullPointerException
at utwente.fmt.jtorx.torx.explorer.torx.TorxExplorer.init(TorxExplorer.java:39)
at utwente.fmt.jtorx.writers.AniDotLTSWriter.write(AniDotLTSWriter.java:36)
at utwente.fmt.jtorx.testgui.Testgui.doHandleViewLTSEvent(Testgui.java:390)
at utwente.fmt.jtorx.testgui.Testgui.doHandleViewEvent(Testgui.java:369)
at utwente.fmt.jtorx.testgui.Testgui.doHandleViewModelEvent(Testgui.java:353)
at utwente.fmt.jtorx.testgui.ConfigPane$5.handleEvent(ConfigPane.java:327)
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.Widget.notifyListeners(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at utwente.fmt.jtorx.testgui.Testgui.<init>(Testgui.java:1676)
at utwente.fmt.jtorx.testgui.Testgui.main(Testgui.java:1766)
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)
^CStreamHandler anidot.kit stop
Animation anidot.kit onProcessFailed: Process exited with an error: 130(Exit value: 130)
StreamHandler animsc.kit stop
Animation animsc.kit onProcessFailed: Process exited with an error: 130(Exit value: 130)

Also available in: Atom PDF