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: Fatal: null error with starsector+ mod  (Read 5347 times)

Red~Hands~Mitts

  • Ensign
  • *
  • Posts: 5
    • View Profile
Fatal: null error with starsector+ mod
« on: April 10, 2016, 12:20:10 PM »

I've been reading through other bug reports trying to figure out what's wrong, but I haven't found a solution yet. I've got the following mods activated: Starsector+ 3.3.0, console commands 2.7, Lazylib 2.1, save transfer 1.9.0, ZZ Shaderlib Beta 1.2.1 and version checker 1.6

Would be very grateful for any thoughts or help.
« Last Edit: April 10, 2016, 12:28:21 PM by Red~Hands~Mitts »
Logged

Red~Hands~Mitts

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: Fatal: null error with starsector+ mod
« Reply #1 on: April 10, 2016, 12:25:44 PM »

Also in my starsector log theres no errors or mods that didn't load, no exceptions or anything like that.
Logged

Red~Hands~Mitts

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: Fatal: null error with starsector+ mod
« Reply #2 on: April 10, 2016, 12:31:52 PM »

Tried it with Starsector+ 3.4.0 and same result. Game starts to load and crashes before I get to the menu screen and get Fatal: null error

Edit: Just tried running program with SS+ mod deactivated but all the other mods activated, it now ap-pears that shaderlib is what is causing the fatal null error.
« Last Edit: April 10, 2016, 12:36:01 PM by Red~Hands~Mitts »
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Fatal: null error with starsector+ mod
« Reply #3 on: April 10, 2016, 01:57:29 PM »

If the game crashes with an exception (like NullPointerException you're getting), the stack trace is at the bottom of starsector.log.
Logged

Red~Hands~Mitts

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: Fatal: null error with starsector+ mod
« Reply #4 on: April 10, 2016, 03:20:40 PM »

Yup! Found the trace at the bottom like you said, and here's what I got:

java.lang.OutOfMemoryError
   at sun.misc.Unsafe.allocateMemory(Native Method)
   at java.nio.DirectByteBuffer.<init>(Unknown Source)
   at java.nio.ByteBuffer.allocateDirect(Unknown Source)
   at org.lwjgl.BufferUtils.createByteBuffer(BufferUtils.java:60)
   at com.fs.graphics.TextureLoader.super(Unknown Source)
   at com.fs.graphics.TextureLoader.super(Unknown Source)
   at com.fs.graphics.TextureLoader.super(Unknown Source)
   at com.fs.graphics.TextureLoader.super(Unknown Source)
   at com.fs.graphics.null.super(Unknown Source)
   at com.fs.starfarer.settings.StarfarerSettings$1.loadTexture(Unknown Source)
   at org.dark.shaders.util.TextureData.readTextureDataCSVNoOverwrite(TextureData.java:338)
   at org.dark.shaders.ShaderModPlugin.onApplicationLoad(ShaderModPlugin.java:76)
   at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

I tried increasing my java memory, tried 1gb all the way up to 6 and I still get the same fatal error.
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Fatal: null error with starsector+ mod
« Reply #5 on: April 10, 2016, 03:22:49 PM »

I don't think you're increasing memory correctly, if that's the case.  You should be editing vmparams to allocate more memory, and running from the launcher (NOT THE BATCH FILE).
Logged

Red~Hands~Mitts

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: Fatal: null error with starsector+ mod
« Reply #6 on: April 10, 2016, 04:04:33 PM »

Problem solved. I switched to Java64 bit and increased my memory allocation from there as followed by this guide:

http://fractalsoftworks.com/forum/index.php?topic=8726.0

Thanks for helping Revenant :)
Logged

Tschudy

  • Lieutenant
  • **
  • Posts: 75
    • View Profile
Re: Fatal: null error with starsector+ mod
« Reply #7 on: January 29, 2017, 08:09:03 PM »

I'm having the same issue, but am only able to start from the batch file.
Logged