Error

12 views
Skip to first unread message

Roberts, Brandon

unread,
Nov 10, 2009, 3:50:06 PM11/10/09
to terminat...@googlegroups.com

---------------------------

Uncaught exception

---------------------------

An error occurred in Terminator:

 

Exception RuntimeError: Java failed with #<Process::Status: pid=5848,exited(1)>

 

Command line was:

C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher -Xmx100m -Dorg.jessies.libraryDirectories=; -Dorg.jessies.binaryDirectory= -Dorg.jessies.terminator.dotDirectory= -Dorg.jessies.terminator.logDirectory= -Dorg.jessies.terminator.serverPortFileName= -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users -Djava.class.path=;;;; -De.util.Log.filename= -De.util.Log.applicationName=Terminator -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon= -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot= -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false terminator/Terminator

 

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/invoke-java.rb:460:in `launch'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/terminator/bin/terminator:97:in `launch0'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in `launch'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:90:in `call'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:90:in `run_in_home_directory'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:88:in `chdir'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:88:in `run_in_home_directory'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:120:in `initialize'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:134:in `new'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:134:in `report_exceptions'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in `launch'

                at C:/Program Files (x86)/software.jessies.org/terminator/Resources/terminator/bin/terminator:218

 

Please copy this message to the clipboard with Ctrl-C and mail it to terminat...@googlegroups.com.

(Windows won't let you select the text but Ctrl-C works anyway.)

---------------------------

OK  

---------------------------

Roberts, Brandon

unread,
Nov 10, 2009, 3:49:43 PM11/10/09
to terminat...@googlegroups.com

---------------------------

Java Launcher

---------------------------

If you don't have Java installed, download it from http://java.com/, then try again.

 

Error: FindClass("terminator/Terminator") failed.

 

Selected JVM was: C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll

 

Command line was:

C:/Program Files (x86)/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher -Xmx100m -Dorg.jessies.libraryDirectories=; -Dorg.jessies.binaryDirectory= -Dorg.jessies.terminator.dotDirectory= -Dorg.jessies.terminator.logDirectory= -Dorg.jessies.terminator.serverPortFileName= -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users -Djava.class.path=;;;; -De.util.Log.filename= -De.util.Log.applicationName=Terminator -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon= -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot= -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false terminator/Terminator

 

Please copy this message to the clipboard with Ctrl-C and mail it to terminat...@googlegroups.com.

Martin Dorey

unread,
Nov 10, 2009, 4:16:13 PM11/10/09
to Roberts, Brandon, terminat...@googlegroups.com

Another instance of the problem reported by "constantine", where cygpath returns nothing.

 

Was this also Windows 7?

 


Roberts, Brandon

unread,
Nov 10, 2009, 4:09:42 PM11/10/09
to Martin Dorey, terminat...@googlegroups.com

Sorry, forgot to reply-all:

 

Yes, this is Windows 7, x64, Ultimate Edition.

Martin Dorey

unread,
Nov 10, 2009, 8:18:13 PM11/10/09
to Roberts, Brandon, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

Ah, it seems that Amit, my go-to guy for shiny versions, is only running the 32 bit version.  (What is he playing at?  Even I'm running a 64 bit desktop.  I mean, Linux, obviously, but.)  Judging by the way constantine's mail included "C:/Program Files (x86)/", I'm betting his was a 64 bit installation too.  Amit says he only has "Program Files", no "x86".

 

http://superuser.com/questions/40279/cygwin-under-win7-x64 suggests there might be problems and the questioner seems pretty clueful but that's an odd place to find the most authoritative-looking post.

 


Roberts, Brandon

unread,
Nov 11, 2009, 11:01:13 AM11/11/09
to Martin Dorey, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

May have something to do with the () in (x86). I’m downloading a new jre and will install to an alternate location… I’ll let you know.

Martin Dorey

unread,
Nov 11, 2009, 11:35:54 AM11/11/09
to Bran...@famoussoftware.com, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

Interesting idea but, whatever the problem is, it must be affecting more than just the Jre. This line, for example:

-Dorg.jessies.libraryDirectories=;

Means that we've run cygpath on two of our own directories, from Cygwin Ruby, and got back nothing. It could be that cygpath or the intervening shell is barfing on the parentheses, but we do already support the space between "Program" and "Files", so I'd guess that we'd cope with characters apart from '.

If you're keen enough to download another Jre, then perhaps you're keen enough to poke around with cygpath to see if it works for you, manually. When I get to my desk, I can give you more specific commands to try if that seems to be working.

The x64 Jre, I should perhaps have said already, isn't going to work with our native code, which is constrained by Cygwin to 32 bit. This isn't the problem we're running into here - we've gone astray long before starting Java.


From: Roberts, Brandon <Bran...@FamousSoftware.com>
To: Martin Dorey
Cc: terminat...@googlegroups.com <terminat...@googlegroups.com>; const...@fasdf.net <const...@fasdf.net>; Amit Brahmbhatt
Sent: Wed Nov 11 08:01:13 2009
Subject: RE: Error

Roberts, Brandon

unread,
Nov 11, 2009, 11:26:28 AM11/11/09
to Martin Dorey, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

Ok, still getting the error. I also tried copying the software.jessies.org folder into an alternate directory and changing the shortcut to point there but I think there are some other links to where the terminator files are. Is there a way to force the installation to a different directory with the msi? Or a place I can change where it looks for files?

 

From: Martin Dorey [mailto:mdo...@bluearc.com]

Sent: Tuesday, November 10, 2009 5:18 PM
To: Roberts, Brandon

Cc: terminat...@googlegroups.com; const...@fasdf.net; Amit Brahmbhatt
Subject: RE: Error

 

Ah, it seems that Amit, my go-to guy for shiny versions, is only running the 32 bit version.  (What is he playing at?  Even I'm running a 64 bit desktop.  I mean, Linux, obviously, but.)  Judging by the way constantine's mail included "C:/Program Files (x86)/", I'm betting his was a 64 bit installation too.  Amit says he only has "Program Files", no "x86".

Martin Dorey

unread,
Nov 11, 2009, 11:42:12 AM11/11/09
to Bran...@famoussoftware.com, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

http://software.jessies.org/downloads/windows/terminator.tar.gz (if I typed that right) has all the files in a form that you could plop anyway. No shortcut, but that's easily done manually, if it works.


From: Roberts, Brandon <Bran...@FamousSoftware.com>
To: Martin Dorey

Sent: Wed Nov 11 08:26:28 2009
Subject: RE: Error

Roberts, Brandon

unread,
Nov 11, 2009, 11:33:44 AM11/11/09
to Martin Dorey, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

Yes, I’m happy to mess with cygpath but it is new to me – happily awaiting info.

 

I’ve not used the x64 jre, just the 32 bit jre in two different places.

 

Actually, just tried to run cygpath and got:

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: can

not open shared object file: No such file or directory

 

which looks like it may be a build error, see here:

http://cygwin.com/ml/cygwin/2009-11/msg00095.html

 

so I’ll add the package mentioned to my cygwin install and see if that fixes it.

Roberts, Brandon

unread,
Nov 11, 2009, 11:43:33 AM11/11/09
to Roberts, Brandon, Martin Dorey, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

Winner winner! Cygwin was the culprit.

 

Notes are:

-          On Windows 7 x64, you have to use the new 1.7 version of Cygwin

-          Which apparently had a build problem

-          Which should go away once they build the final

-          The parens in the path don’t (as yet) seem to bother terminator

 

So it’s working now! Thanks, guys!

 

From: Roberts, Brandon
Sent: Wednesday, November 11, 2009 8:34 AM
To: 'Martin Dorey'
Cc: 'terminat...@googlegroups.com'; 'const...@fasdf.net'; Amit Brahmbhatt
Subject: RE: Error

 

Yes, I’m happy to mess with cygpath but it is new to me – happily awaiting info.

 

I’ve not used the x64 jre, just the 32 bit jre in two different places.

 

Actually, just tried to run cygpath and got:

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: can

not open shared object file: No such file or directory

 

which looks like it may be a build error, see here:

http://cygwin.com/ml/cygwin/2009-11/msg00095.html

 

so I’ll add the package mentioned to my cygwin install and see if that fixes it.

 

From: Martin Dorey [mailto:mdo...@bluearc.com]

Sent: Wednesday, November 11, 2009 8:36 AM

Martin Dorey

unread,
Nov 11, 2009, 12:43:03 PM11/11/09
to Roberts, Brandon, terminat...@googlegroups.com, const...@fasdf.net, Amit Brahmbhatt

Nice one.  I've updated http://software.jessies.org/terminator/#downloads again.  I'm interested to see, now, whether I can reproduce the problem if I update to the latest Cygwin, to then see if there's anything sensible we can do to trap it and report it more informatively.  Previous dlopen failures we have been able to address.

 

I had been holding off from updating for a while because, after this update, I'll be building with gcc-4 instead of gcc-3.  I beat that into working some months ago but I wouldn't be too surprised if we run across some bugs by being this close to the bleeding edge.  (Yes yes, I realize that gcc-4 was released nearly five years ago.)

Martin Dorey

unread,
Nov 11, 2009, 2:19:15 PM11/11/09
to terminat...@googlegroups.com, Roberts, Brandon, const...@fasdf.net, Amit Brahmbhatt

> I'm interested to see, now, whether I can reproduce the problem

 

No, because the fix was already built and released and mirrored, yesterday.  http://cygwin.com/ml/cygwin/2009-11/msg00379.html has the announcement, mentioning cygpath.

 

...

 

But the mirror still lets me downgrade to 1.7.0-63, and there I can reproduce the problem.

 

And, indeed, the messages about the missing DLL are reported on stderr:

 

$ /cygdrive/c/Program\ Files/software.jessies.org/terminator/Resources/terminator/bin/terminator

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

/usr/bin/cygpath.exe: error while loading shared libraries: cygstdc++-6.dll: cannot open shared object file: No such file or directory

about to exec [

  /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher

  -Xmx100m

  -Dorg.jessies.libraryDirectories=;

  -Dorg.jessies.binaryDirectory=

  -Dorg.jessies.terminator.dotDirectory=

  -Dorg.jessies.terminator.logDirectory=

  -Dorg.jessies.terminator.serverPortFileName=

  -Dorg.jessies.terminator.optionsFile=

  -De.gui.HelpMenu.hasManual=true

  -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com

  -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users

  -Djava.class.path=;;;;

  -De.util.Log.filename=

  -De.util.Log.applicationName=Terminator

  -Dorg.jessies.aboutBoxIcon=

  -Dorg.jessies.frameIcon=

  -Dorg.jessies.projectRoot=

  -Dorg.jessies.supportRoot=

  -Djava.awt.Window.locationByPlatform=true

  -Dswing.boldMetal=false

  terminator/Terminator

]

java.lang.NoClassDefFoundError: terminator/Terminator

Caused by: java.lang.ClassNotFoundException: terminator.Terminator

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

If you don't have Java installed, download it from http://java.com/, then try again.

 

Error: FindClass("terminator/Terminator") failed.

 

Selected JVM was: C:\Program Files\Java\jre6\bin\client\jvm.dll

 

Command line was:

/cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher -Xmx100m -Dorg.jessies.libraryDirectories=; -Dorg.jessies.binaryDirectory= -Dorg.jessies.terminator.dotDirectory= -Dorg.jessies.terminator.logDirectory= -Dorg.jessies.terminator.serverPortFileName= -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users -Djava.class.path=;;;; -De.util.Log.filename= -De.util.Log.applicationName=Terminator -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon= -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot= -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false terminator/Terminator

 

Please copy this message to the clipboard with Ctrl-C and mail it to terminat...@googlegroups.com.

(Windows won't let you select the text but Ctrl-C works anyway.)

$

 

 

Even if I call SetErrorMode(0) from Ruby directly, using Ruby's backquote causes it to be reset (perhaps by bash) to Cygwin's default.  Using exec preserves the setting, so we could roll our own backquote, avoiding the shell.  This would have the side-effect of fixing places where we've forgotten to quote, which is everywhere we use backquote in invoke-java.rb except for the cygpath invocation.  None of the other invocations are used on Cygwin, which is the only Unix where we usually have spaces in the path to our code.  So perhaps a shell-less backquote, which checks the returned status too, would be a sensible step.

 

But it'd be more generally useful if we could "just" trap-and-present all stderr output when started via a desktop shortcut, even on (say) Gnome.  A process with a hidden text window, which copies its input into that text window and unhides itself when the first input appears.  Surely that must be out there, somewhere?

 



size=3 face="Times New Roman">


Reply all
Reply to author
Forward
0 new messages