166
Bug Reports & Support (modded) / Re: Games crashes once it loads a save
« on: February 12, 2022, 05:16:46 PM »
I skimmed through your error log -- the top frame is a native method call sun.misc.Unsafe.freeMemory. You could try using a different version of Java and seeing if that fixes the issue.
How to switch to Java 8, from the discord:
The only other thing of note in the error log is this exception: Event: 19.827 Thread 0x0000000013559800 Threw 0x00000007e21a7c60 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304, which after some research seems to be a PrivilegedActionException. This isn't the same thread that triggered the crash (I think it's the "main" game thread), but could suggest that the game is having trouble accessing something (a class? a file? not sure).
Can you upload the faulty save? You won't be able to upload it as an attachment here, but you can upload it to any file-sharing service (dropbox, google drive, etc.) and put a link here. I definitely won't be able to reproduce the bug with just your mod, unless it's an issue with your mod, but I doubt that given the contents of the error log and the fact that you aren't using any custom code.
How to switch to Java 8, from the discord:
Quote from: Wisp
1. Go to your starsector install and rename the jre folder to jre7.
2. Download either of the following (both are the same JRE 8 v271) (Mac/Linux users look below for download link):
- (72 MB .zip) https://drive.google.com/file/d/1CGRtnv5hIGCtcdlvZXFO0F58VXqYUo6x/view?usp=sharing
- (48 MB .7z) https://drive.google.com/file/d/155Lk0ml9AUGp5NwtTZGpdu7e7Ehdyeth/view?usp=sharing
3. Extract that into your game folder so you have a folder named jre. You'll now have both jre (with java and jre7.
4. Make sure that your starsector/starsector-core/data/config/settings.json allowAnyJavaVersion is set to true. Then launch the game as normal.
The only other thing of note in the error log is this exception: Event: 19.827 Thread 0x0000000013559800 Threw 0x00000007e21a7c60 at C:\re\jdk7u79\2331\hotspot\src\share\vm\prims\jvm.cpp:1304, which after some research seems to be a PrivilegedActionException. This isn't the same thread that triggered the crash (I think it's the "main" game thread), but could suggest that the game is having trouble accessing something (a class? a file? not sure).
Can you upload the faulty save? You won't be able to upload it as an attachment here, but you can upload it to any file-sharing service (dropbox, google drive, etc.) and put a link here. I definitely won't be able to reproduce the bug with just your mod, unless it's an issue with your mod, but I doubt that given the contents of the error log and the fact that you aren't using any custom code.