Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: [1] 2

Author Topic: Bug with LazyLib ?  (Read 9571 times)

Sladix

  • Ensign
  • *
  • Posts: 12
    • View Profile
Bug with LazyLib ?
« on: May 31, 2013, 12:43:29 PM »

Hi,

I tried to install few mods but the game started to crash when entering battle.
So I removed all the mods and installed just theses ones :


And every times I want to enter in combat mode I get this error :

Code
231522 [Thread-6] ERROR com.fs.starfarer.combat.D  - java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
at sun.misc.Unsafe.allocateMemory(Native Method)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:99)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at org.lwjgl.BufferUtils.createByteBuffer(BufferUtils.java:60)
at com.fs.graphics.TextureLoader.o00000(Unknown Source)
at com.fs.graphics.TextureLoader.o00000(Unknown Source)
at com.fs.graphics.TextureLoader.o00000(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.replaceBackground(Unknown Source)
at com.fs.starfarer.title.C.o0oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.load(Unknown Source)
at com.fs.starfarer.campaign.A.super(Unknown Source)
at com.fs.starfarer.campaign.A.super(Unknown Source)
at com.fs.starfarer.ui.for.ÓO0000(Unknown Source)
at com.fs.starfarer.campaign.ui.N.super(Unknown Source)
at com.fs.starfarer.ui.o00oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super(Unknown Source)
at com.fs.starfarer.ui.OOoO.super(Unknown Source)
at com.fs.starfarer.ui.Objectsuper.o00000(Unknown Source)
at com.fs.starfarer.A.ÖÖÒ000(Unknown Source)
at com.fs.A.A.new(Unknown Source)
at com.fs.starfarer.combat.D.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)


Any idea how to fix this ? have I done something bad ?

Thanks !
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Bug with LazyLib ?
« Reply #1 on: May 31, 2013, 01:05:20 PM »

What version of Starsector are you running?
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: Bug with LazyLib ?
« Reply #2 on: May 31, 2013, 01:20:01 PM »

Does the same error happen in the vanilla game?

Apart from that, you seem to have a "OutOfMemory"-Error. How much RAM does your PC have?
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Silver Silence

  • Admiral
  • *****
  • Posts: 980
    • View Profile
Re: Bug with LazyLib ?
« Reply #3 on: May 31, 2013, 02:39:10 PM »

Though this is probably better served by being merged into the LazyLib thread, your error doesn't seem to relate to LazyLib or an issue with the mod. That report shows an OutOfMemory error, your computer or laptop more likely has simply run out of processing juice to keep going. As another mod that also requires LazyLib and features a similar amount of content, have you tried Uomoz's Corvus? A source of your issue may be the Nihilic Empire in Exerelin, a faction featuring absolutely massive ships. Such large imagery may be causing these OOM errors. I sadly don't know of a fix, bar removing the Nihilic Empire and all reference to it in Exerelin.
Logged

Sladix

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Bug with LazyLib ?
« Reply #4 on: June 01, 2013, 03:28:52 AM »

Thanks for you replies.

What version of Starsector are you running?

I'm running the last available version : 0.54.1a-RC2

Here a piece of my Dxdiag :
Code
System Manufacturer: Alienware
       System Model: M14xR2
          Processor: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz (8 CPUs), ~2.3GHz
             Memory: 8192MB RAM
Available OS Memory: 8074MB RAM
          Page File: 7614MB used, 8532MB available

So that's seems weird ...
Maybe it's a computer configuration that I should do ?
Logged

theSONY

  • Admiral
  • *****
  • Posts: 673
  • Not a single Flux given
    • View Profile
Re: Bug with LazyLib ?
« Reply #5 on: June 01, 2013, 03:37:38 AM »

1'st thing 1'st:
Try to RE-download the mods ,previously delating older/current version ( never overwrite the mod downloading/extracting)
if ain't working then reinstal the game
last thing i can come up with is the java ver.
but im not an specialist so . . .  ;D
Logged
-the ABOMINATION - in progress

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: Bug with LazyLib ?
« Reply #6 on: June 01, 2013, 03:48:19 AM »

I'll just go ahead and suggest something that Alex sometimes does when OoM-Errors show up:

Go to this folder:
<Installed Folder>\starsector-core\

Open the file:
starsector.bat

Change the values from:
Code
-Xms256m -Xmx256m

To something like:
Code
-Xms512m -Xmx1024m
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Sladix

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Bug with LazyLib ?
« Reply #7 on: June 01, 2013, 07:41:17 AM »

Change the values from:
Code
-Xms256m -Xmx256m



To something like:
Code
-Xms512m -Xmx1024m

I tried, was fine the first 30mn but then it crashed for the same reason. So I tried this values : -Xms512m -Xmx2048m

But it was still the same, with only two ships involved in the battle. I'll maybe try to reinstall all or maybe just keep playing the vanilla but ... it's kind of frustrating  ::) >:(
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25920
    • View Profile
Re: Bug with LazyLib ?
« Reply #8 on: June 01, 2013, 08:31:53 AM »

First off, quick note: editing starsector.bat only works if you're using starsector.bat to launch the game, rather than the exe. If you're using starsector.exe, there's a vmparams file in the <Installed Folder>. It's got no extension but is a text file with the same values as the .bat.

As far as the crash: there's a bug (which should be fixed in the dev version) that leads to a memory leak every time there's a new background loaded or a new screenshot taken. It doesn't make sense that it would happen for you in the first battle, though, but if Exerelin loads *that* much stuff...

Well, regardless, I'd make the edits FloW suggested, but in the vmparams file - should help. Except change the values to something higher; setting both to 2048 should be good.

I'll just go ahead and suggest something that Alex sometimes does when OoM-Errors show up:
....

(Btw: this can be a fix when the .exe fails to work for mysterious reasons. I've already updated the .bat so the edits (to sync it up with what's in vmparams) are no longer necessary. Still trying to work out why the exe refuses to run on a few systems, though.)
Logged

Sladix

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Bug with LazyLib ?
« Reply #9 on: June 01, 2013, 09:13:07 AM »

Thank you for your reply Alex.

When i set to 2048 the game won't launch.. so I set both at 1024, hope it won't crash too often.

Can't help thinking that's weird I've got almost 5Go RAM free when I run the game ... :(
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25920
    • View Profile
Re: Bug with LazyLib ?
« Reply #10 on: June 01, 2013, 09:17:47 AM »

That's very odd, there's no reason why that wouldn't work if you have enough memory. What exactly does it do if you set both to 2048? Is there anything new in the log every time it tries to launch (with 2048)? The log is in starsector-core/starfarer.log.

Setting both values to 1024 shouldn't make a difference here, the lower value is just the minimum to allocate right away. The 2nd value is the maximum and what you really care about.
Logged

Sladix

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Bug with LazyLib ?
« Reply #11 on: June 01, 2013, 10:31:01 AM »

Well when I double click on starsector.exe, nothing happens and there is nothing new in the log.

Tell me if I can provide you more informations.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25920
    • View Profile
Re: Bug with LazyLib ?
« Reply #12 on: June 01, 2013, 10:35:28 AM »

Ah. In that case, I'd change it to 2048 in starsector.bat and use that to run the game, rather than the exe.
Logged

Sladix

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Bug with LazyLib ?
« Reply #13 on: June 01, 2013, 12:08:07 PM »

Ok, that's what I just tried and there is the result. I don't get it ...

Spoiler
[close]
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25920
    • View Profile
Re: Bug with LazyLib ?
« Reply #14 on: June 01, 2013, 12:16:19 PM »

Hmm. After  some googling around, that looks like a Windows-specific thing, depending on what you have installed. Basically, Java needs a contiguous chunk of RAM, and this means there isn't one available that's that big. In your shoes, I'd try progressively smaller amounts until you find one that works. Say, 1500, then if that doesn't, go down to 1300/1200 etc. Even a little extra could help considerably in this case.
Logged
Pages: [1] 2