The International Simutrans Forum

 

Author Topic: Crashing on opening Save window?  (Read 278 times)

0 Members and 1 Guest are viewing this topic.

Offline dannyliux

  • *
  • Posts: 5
Crashing on opening Save window?
« on: April 29, 2019, 07:31:27 AM »
I couldn't find this issue mentioned anywhere else, so sorry if this is a known/fixed issue. Running Simutrans 120.2.1 Extended Nightly development build 14.5 #da1770b, Pak128.Britain Ex 0.9.3. Using the Simutrans-Extended.exe (not the 64 one). Windows 8.1.

Sometimes, when I attempt to save the game, the game will crash upon opening the save game window (both Shift+S and opening through the Options menu can trigger the crash). It crashes into the Windows dialogue box that says 'Simutrans-Extended.exe has stopped working'. This seems to happen at random, I've had it happen right after I load into the game, after running for a few hours, or anywhere in between. I'm at a lost trying to troubleshoot this one, so I'm wondering if anyone here has the same problem or can provide a solution.

In addition, I've got another issue with Simutrans-Extended-64.exe. With that version I can neither save or load games. It consistently crashes whenever I try to open the Save or Load windows. It's not really a big deal for me since I can still play using the other executable, but I thought it'd be good to mention.

Neither issue seem to affect the Sweden pakset.

Thanks for reading through this, I'll be grateful for your help.

Edit: Sorry, I think this should've went to the Development board.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18587
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Crashing on opening Save window?
« Reply #1 on: April 29, 2019, 11:54:19 AM »
Thank you for your report, and apologies that you are having trouble.

The only way in which I can track down what causes problems in order to fix them is if I can reproduce them reliably on my own computer. Unfortunately, I have not been able to reproduce this problem. One thing that you might want to check for is files with exceedingly long names in your saved game folder, which might theoretically cause difficulties, although it is hard to see why this would cause problems sometimes and not others.

I note that your version is a few days old; although there has been no fix specifically aimed at this issue pushed recently as this is not a known issue, you might want to try downloading the latest nightly build in case this assists.


Offline dannyliux

  • *
  • Posts: 5
Re: Crashing on opening Save window?
« Reply #2 on: April 29, 2019, 02:15:28 PM »
Thanks for the reply, I updated to 20e75d2 and the issue with the 64 exe seems to be gone. The normal exe crashed once but it's yet to happen again. Hopefully it'll be gone for good. Also removed all save files except those I'm playing just in case.

By the way, is there a easier way to update than downloading the whole 400mb zip file everytime? Will just replacing the exe files be good enough? The java applet doesn't seem to work.

Offline Rollmaterial fi

  • Devotee
  • *
  • Posts: 564
  • Languages: EN, FR, DE, FI, SE
Re: Crashing on opening Save window?
« Reply #3 on: April 29, 2019, 08:13:04 PM »
If you place the Java applet somewhere in the Program Files directory, it will need admin permissions to do anything in that folder. The simple solution is to just run it outside Program Files (e.g. in a folder placed in Documents).

Offline dannyliux

  • *
  • Posts: 5
Re: Crashing on opening Save window?
« Reply #4 on: April 30, 2019, 06:19:51 AM »
Edit: This has been fixed after I downloaded version 12 of the Development Kit. Turns out the Runtime Environment version was too low.

I tried running it in my Simutrans install folder (which isn't in Programme files), Documents folder, and directly from D drive, and everytime it just gives an error.

First it says 'Error: A JNI error has occured, please check your installation and try again'

Then after pressing 'OK', another dialogue popup to say 'A Java exception has occured'.

I get this output if I try to run using command prompt:

Code: [Select]
D:\>java -jar Nightly_Updater_V2.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/simutrans
/updater/client/ClientUpdater has been compiled by a more recent version of the
Java Runtime (class file version 53.0), this version of the Java Runtime only re
cognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        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 sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

I'm not exactly sure what's happening, I got Java Version 8 Update 31, 40(64 bit), and 211(64 bit) installed. Only other java programme I've got is Minecraft, which runs perfectly fine.
« Last Edit: April 30, 2019, 06:37:18 AM by dannyliux »