I begin the program, it says it cannot open the default simulation. Try starting a new one. I try that and a black box comes up and nothing else happens.
The following is what I get in the terminal (how I started the program.):
keithclark@keithclark-G41MT-D3V:~/Games/Mars Simulator/mars-sim$ java -jar mars-sim-main-3.02.1.jar
Command: java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
OUTPUT>21-Aug-2012 6:03:45 PM INFO org.mars_sim.msp.MarsProject Starting Mars Simulation
OUTPUT>Corrupt JPEG data: bad Huffman code
OUTPUT>sun.awt.image.ImageFormatException: Huffman table 0x00 was not defined
OUTPUT> at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
OUTPUT> at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:136)
OUTPUT> at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:264)
OUTPUT> at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:189)
OUTPUT> at sun.awt.image.ImageFetcher.run(ImageFetcher.java:153)
OUTPUT>21-Aug-2012 6:03:46 PM WARNING org.mars_sim.msp.MarsProject Could not load default simulation
OUTPUT>21-Aug-2012 6:03:46 PM SEVERE org.mars_sim.msp.MarsProject Could not load the default simulation, trying to create a new Simulation…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-08-21
Tried again with just Alpha selected and all others removed:
keithclark@keithclark-G41MT-D3V:~/Games/Mars Simulator/mars-sim$ java -jar marsim-main-3.02.1.jar
Command: java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
OUTPUT>21-Aug-2012 6:14:19 PM INFO org.mars_sim.msp.MarsProject Starting Mars Simulation
OUTPUT>21-Aug-2012 6:14:19 PM WARNING org.mars_sim.msp.MarsProject Could not load default simulation
OUTPUT>21-Aug-2012 6:14:19 PM SEVERE org.mars_sim.msp.MarsProject Could not load the default simulation, trying to create a new Simulation…
Still does not start. Now just a splash window visible.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is very strange. The output from your first post shows problems displaying a jpeg image, which makes me think there might be a corruption issue with the downloaded (or extracted) files. The output from your second post just looks like the program is hanging.
Try typing the command listed on the third line of your second post directly in the terminal:
java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
See if that works or at least displays an error in output results that will help us figure the problem out. I wonder if there might be some corruption in the binary files (images, map data, etc) from the download that's causing a problem.
Also starting with just Alpha Base or even one smaller settlement would make debugging easier.
Good luck,
Scott
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-08-22
Result selecting just Alpha Base:
keithclark@keithclark-G41MT-D3V:~/Games/Mars Simulator/mars-sim$ java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
22-Aug-2012 12:59:03 PM INFO org.mars_sim.msp.MarsProject Starting Mars Simulation
22-Aug-2012 12:59:05 PM WARNING org.mars_sim.msp.MarsProject Could not load default simulation
22-Aug-2012 12:59:05 PM SEVERE org.mars_sim.msp.MarsProject Could not load the default simulation, trying to create a new Simulation...
Gets to the splash screen then nothing more ever happens. No error generation or other feedback other than provided above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-08-22
I see that someone else has the same issue as I do using Linux Mint (Ubuntu based distro) so I think that perhaps this is an issue with your program and Ubuntu.
Might want to warn people before they download that this will not work in Ubuntu.
Has anyone successfully got this program to work in Ubuntu? If so, which version? Which Java?
Keith
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My development laptop runs Ubuntu 10.04 with the latest of the Sun Java 1.6 VM's. The laptop is unfortunately not working today (monitor problems), so I cannot give the exact VM version.
I'll see if I can download and burn a live CD of the latest Ubuntu release and try to recreate the problem. It might be due to the OpenJDK VM. I'll let you know what I find out.
Scott
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-08-30
Any luck trying this out?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm going to hopefully try it out tonight. I wasn't able to find an easy means of installing OpenJDK 7 on my development laptop running Ubuntu 10.04 32bit. That laptop is on its last legs and will be replaced soon anyway.
I've downloaded a CD of Ubuntu 12.04 64bit that I will run on my windows desktop computer as a live CD tonight. I try will run MSP 3.02.1 with OpenJDK 7 in hopes of recreating the bug you're experiencing and figure it out.
Sorry this is taking so long.
Scott
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK. I was able to recreate the bug and I think I have it resolved now in the 3.03 development code.
I downloaded and burned an Ubuntu 12.04 64-bit desktop CD and ran it on my desktop as a live CD.
I installed Open JDK 7 which, oddly enough, also installed Open JDK 6 and set 6 as the default java runtime environment. The current JRE can be tested by typing: java -version
I tested this out both with 6 and 7 versions or the JRE. These version can be switched for the "java" command by typing:
sudo update-alternatives -config java
(note the two dashes before "config")
I ran the command "java -jar mars-sim-main-3.02.jar" with both version of java. It worked fine for Open JDK 7, but hanged as you described above (after the configuration dialog) when starting with Open JDK 6.
I tracked this bug down to weird behavior only in Open JDK 6 that closing the modal config editor dialog wouldn't allow the underlying paused thread to continue. It would just hang. We had two methods to close the dialog, "setVisible(false)" and "dispose()", and it appeared that the first method was reduntant and the combination of the two was causing the problem. I removed it and now it appears to be working fine for Open JDK6, 7 as well as the Sun/Oracle JRE's.
O/S: Ubuntu 12.04 64 bit
8 GB RAM
I begin the program, it says it cannot open the default simulation. Try starting a new one. I try that and a black box comes up and nothing else happens.
The following is what I get in the terminal (how I started the program.):
keithclark@keithclark-G41MT-D3V:~/Games/Mars Simulator/mars-sim$ java -jar mars-sim-main-3.02.1.jar
Command: java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
OUTPUT>21-Aug-2012 6:03:45 PM INFO org.mars_sim.msp.MarsProject Starting Mars Simulation
OUTPUT>Corrupt JPEG data: bad Huffman code
OUTPUT>sun.awt.image.ImageFormatException: Huffman table 0x00 was not defined
OUTPUT> at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
OUTPUT> at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:136)
OUTPUT> at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:264)
OUTPUT> at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:189)
OUTPUT> at sun.awt.image.ImageFetcher.run(ImageFetcher.java:153)
OUTPUT>21-Aug-2012 6:03:46 PM WARNING org.mars_sim.msp.MarsProject Could not load default simulation
OUTPUT>21-Aug-2012 6:03:46 PM SEVERE org.mars_sim.msp.MarsProject Could not load the default simulation, trying to create a new Simulation…
Tried again with just Alpha selected and all others removed:
keithclark@keithclark-G41MT-D3V:~/Games/Mars Simulator/mars-sim$ java -jar marsim-main-3.02.1.jar
Command: java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
OUTPUT>21-Aug-2012 6:14:19 PM INFO org.mars_sim.msp.MarsProject Starting Mars Simulation
OUTPUT>21-Aug-2012 6:14:19 PM WARNING org.mars_sim.msp.MarsProject Could not load default simulation
OUTPUT>21-Aug-2012 6:14:19 PM SEVERE org.mars_sim.msp.MarsProject Could not load the default simulation, trying to create a new Simulation…
Still does not start. Now just a splash window visible.
Hi Keith,
This is very strange. The output from your first post shows problems displaying a jpeg image, which makes me think there might be a corruption issue with the downloaded (or extracted) files. The output from your second post just looks like the program is hanging.
Try typing the command listed on the third line of your second post directly in the terminal:
java -Xms256m -Xmx512m -Djava.util.logging.config.file=logging.properties -cp .:*:jars/* org.mars_sim.msp.MarsProject
See if that works or at least displays an error in output results that will help us figure the problem out. I wonder if there might be some corruption in the binary files (images, map data, etc) from the download that's causing a problem.
Also starting with just Alpha Base or even one smaller settlement would make debugging easier.
Good luck,
Scott
Result selecting just Alpha Base:
Gets to the splash screen then nothing more ever happens. No error generation or other feedback other than provided above.
I see that someone else has the same issue as I do using Linux Mint (Ubuntu based distro) so I think that perhaps this is an issue with your program and Ubuntu.
Might want to warn people before they download that this will not work in Ubuntu.
Has anyone successfully got this program to work in Ubuntu? If so, which version? Which Java?
Keith
My development laptop runs Ubuntu 10.04 with the latest of the Sun Java 1.6 VM's. The laptop is unfortunately not working today (monitor problems), so I cannot give the exact VM version.
I'll see if I can download and burn a live CD of the latest Ubuntu release and try to recreate the problem. It might be due to the OpenJDK VM. I'll let you know what I find out.
Scott
Any luck trying this out?
I'm going to hopefully try it out tonight. I wasn't able to find an easy means of installing OpenJDK 7 on my development laptop running Ubuntu 10.04 32bit. That laptop is on its last legs and will be replaced soon anyway.
I've downloaded a CD of Ubuntu 12.04 64bit that I will run on my windows desktop computer as a live CD tonight. I try will run MSP 3.02.1 with OpenJDK 7 in hopes of recreating the bug you're experiencing and figure it out.
Sorry this is taking so long.
Scott
OK. I was able to recreate the bug and I think I have it resolved now in the 3.03 development code.
I downloaded and burned an Ubuntu 12.04 64-bit desktop CD and ran it on my desktop as a live CD.
I installed Open JDK 7 which, oddly enough, also installed Open JDK 6 and set 6 as the default java runtime environment. The current JRE can be tested by typing: java -version
I tested this out both with 6 and 7 versions or the JRE. These version can be switched for the "java" command by typing:
sudo update-alternatives -config java
(note the two dashes before "config")
I ran the command "java -jar mars-sim-main-3.02.jar" with both version of java. It worked fine for Open JDK 7, but hanged as you described above (after the configuration dialog) when starting with Open JDK 6.
I tracked this bug down to weird behavior only in Open JDK 6 that closing the modal config editor dialog wouldn't allow the underlying paused thread to continue. It would just hang. We had two methods to close the dialog, "setVisible(false)" and "dispose()", and it appeared that the first method was reduntant and the combination of the two was causing the problem. I removed it and now it appears to be working fine for Open JDK6, 7 as well as the Sun/Oracle JRE's.
I created a 3.03 beta release with this fix:
http://mars-sim.sourceforge.net/download/beta/MarsProject_3.03b3.tar.gz
If you get a chance, could you download the beta and see if it runs properly on your system?
Thanks,
Scott