Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Starsector out of space leading to GC overhead limit Error  (Read 4227 times)

ApetureUnicorn

  • Ensign
  • *
  • Posts: 25
    • View Profile
Starsector out of space leading to GC overhead limit Error
« on: November 17, 2016, 10:15:10 PM »

So i've modded my starsector quite a bit with a list of :

Autonomous ships
autosave
Blackrock Driveyards
Combat Chatter
Common Radar
Dassualt-Mikoyan Engineering
Diable Avionics
ElizaLib
Interstellar Imperium
Junk pirates
LazyLib
Metelson Industries
Neutrino Corporation
Nexerelin
Omnifactory
Pegasus Belt Council
Portrait pack
Practice Targets
Shadowyards
Simulator Overhaul
Stiener Foundation
The Mayorate
Tiandong Heavy Industries
Version Checker
ZZ GraphicsLib


And Im running
MacOS Sierra Version 10.12.1
iMac (21.5-inch, Late 2012)
Processor 2.7 GHz Intel Core i5
Memory 8 GB 1600 MHz DDR3
Graphics NVIDIA GeForce GT 640M 512 MB

I've attempted to edit the starsector.command file so it has 3-6 Gb :

java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Dcom.fs.starfarer.settings.paths.logs=. -Djava.library.path=./native/macosx -Xms3G -Xmx6G -Dcom.fs.starfarer.settings.paths.saves=saves -Dcom.fs.starfarer.settings.paths.screenshots=screenshots -Dcom.fs.starfarer.settings.paths.mods=mods -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:lwjgl_util_applet.jar:jinput.jar:lwjgl_test.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar:xstream-1.4.2.jar -Dcom.fs.starfarer.settings.paths.saves=saves -Dcom.fs.starfarer.settings.paths.screenshots=screenshots -Dcom.fs.starfarer.settings.paths.mods=mods com.fs.starfarer.StarfarerLauncher

Also underneath the starsector icon that I click to startup the game says Out of Space in grey so
is the problem with the specs of my computer or have i done something wrong?


(Game crashes after about 1 hour in after 2 or 3 saves)


Logged

Orikson

  • Captain
  • ****
  • Posts: 280
  • Always Seen on Discord
    • View Profile
Re: Starsector out of space leading to GC overhead limit Error
« Reply #1 on: November 17, 2016, 11:32:07 PM »

Hello and welcome to the forums.

Here's what I think went wrong with your set-up: You've edited the wrong file for memory allocation.

Remove whatever changes you've made to that file and restore it to its default state.

Then, read the stuff outlined in this thread: http://fractalsoftworks.com/forum/index.php?topic=8726 and watch the video there as well.

It is to prepare your computer systems to be able to handle Starsector with mods.

.

The mods you have now are ok, but:

- Omnifactory is built into Nexerelin, so you don't actually need it unless you're not using Nexerelin.

- Autonomous Ship is a mod that is still in its early stages and hasn't been put through all the stress test, but is ok to use.

.

If you want any more advice, just ask away! Hope this helps!
« Last Edit: November 17, 2016, 11:34:40 PM by Orikson »
Logged
"A story teller and a trader. Tell me your tales and I'll tell you no lies."

Come join the Starsector Fan Chat! It's decently active.

Link: https://discord.gg/eb5UC

ApetureUnicorn

  • Ensign
  • *
  • Posts: 25
    • View Profile
Re: Starsector out of space leading to GC overhead limit Error
« Reply #2 on: November 18, 2016, 10:26:15 PM »

Note: On Mac OS, only step 4 is necessary because Starsector will already use 64-bit Java, as far as I know.

Step 4: In the vmparams file, replace the text "-Xms1024m -Xmx1024m" with the memory you want to allocate to Starsector. The first number is initial allocation and the second number sets the amount it's allowed to grow to when the game needs it.  For example, "-Xms2048m -Xmx4096m" starts the game with 2 GB of memory and allows the allocation to grow to 4 GB later down the line.

Cant seem to find the vmparams file.
Logged

Orikson

  • Captain
  • ****
  • Posts: 280
  • Always Seen on Discord
    • View Profile
Re: Starsector out of space leading to GC overhead limit Error
« Reply #3 on: November 18, 2016, 11:08:08 PM »

Ok, the modder of Dassault, Soren helped me with this.

It's Contents>MacOS>starsector_mac.sh inside the app package.

The vmparams file I mean.
Logged
"A story teller and a trader. Tell me your tales and I'll tell you no lies."

Come join the Starsector Fan Chat! It's decently active.

Link: https://discord.gg/eb5UC

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2846
  • Your Friendly Forum Friend
    • View Profile
Re: Starsector out of space leading to GC overhead limit Error
« Reply #4 on: November 18, 2016, 11:39:27 PM »

Starsector comes bundled with the 32 bit version of java, NOT 64, which is why you need to download it. And be sure you get java 1.7! 1.8 sucks, just ask alex
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

kazi

  • Admiral
  • *****
  • Posts: 714
    • View Profile
Re: Starsector out of space leading to GC overhead limit Error
« Reply #5 on: November 21, 2016, 02:33:39 PM »

Starsector comes bundled with the 32 bit version of java, NOT 64, which is why you need to download it. And be sure you get java 1.7! 1.8 sucks, just ask alex

I wouldn't go so far as to say Java 8 sucks, but theres also Java 9 these days. Curious to see how it works out for people. There's even a Java interactive REPL shell (!!!). https://jdk9.java.net/download/

Also, yeah, I second the "you've edited the wrong file" opinion. I believe you either want to do starsector.bat or starsector.sh depending on platform.
Logged

ApetureUnicorn

  • Ensign
  • *
  • Posts: 25
    • View Profile
Re: Starsector out of space leading to GC overhead limit Error
« Reply #6 on: November 21, 2016, 06:04:50 PM »

Thx Orikson my game hasnt crashed yet!
ive been trying to fix this since last year!  :D ;D
Logged