Jump to content


  • Please log in to reply
[indev12 u4b/linux] crash after some hours of gameplay
7 replies to this topic - Started By holloway, Jan 19 2015 02:40 PM

#1 holloway

holloway
  • Members
  • 32 posts
  • Pip
  • LocationGermany

Posted 19 January 2015 - 02:40 PM

So I enjoyed the save feature and resumed my game.  After some time i had about 250 villagers and the game got quite laggy.  At the end the game crashed.
 
OS: Linux

CPU: Intel i3-2328M (2.20GHz)

RAM: 8GB

GPU: intel onboard

Java Version:

java version "1.7.0_72"
Java™ SE Runtime Environment (build 1.7.0_72-b14)

Java HotSpot™ 64-Bit Server VM (build 24.72-b04, mixed mode)

 

 

Here's the part of the log which caused the crash:

Mon Jan 19 21:10:40 GMT 2015 ERROR:null

java.lang.NullPointerException
at rpc.entities.EntityBase.enterMateHome(EntityBase.java:2051)
at rpc.entities.EntityBase.updateAI(EntityBase.java:920)
at rpc.entities.EntityBase.update(EntityBase.java:719)
at rpc.entities.EntityModule.update(EntityModule.java:203)
at rpc.states.PlayState.update(PlayState.java:538)
at org.newdawn.slick.state.StateBasedGame.update(StateBasedGame.java:266)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:652)
at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:418)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:328)
at rpc.launcher.Game.launchGame(Game.java:85)
at rpc.launcher.Launcher.main(Launcher.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Mon Jan 19 21:10:40 GMT 2015 ERROR:Game.update() failure - check the game code.
org.newdawn.slick.SlickException: Game.update() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:669)
at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:418)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:328)
at rpc.launcher.Game.launchGame(Game.java:85)
at rpc.launcher.Launcher.main(Launcher.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
 
Here is the complete log: http://binaryb.in/show/bcb3de
 

  • 0

#2 Rayvolution

Rayvolution
  • Developer
  • 1,924 posts
  • Pip
  • Steam ID:Rayvolution
  • LocationTexas

Posted 19 January 2015 - 05:23 PM

Can you reload the game, or does it crash on load now?


  • 0
Rise to Ruins Developer

#3 holloway

holloway
  • Members
  • 32 posts
  • Pip
  • LocationGermany

Posted 20 January 2015 - 02:26 PM

It loads and the game slowly appears (with ~1fps) but then crashes again with the same error.


  • 0

#4 Rayvolution

Rayvolution
  • Developer
  • 1,924 posts
  • Pip
  • Steam ID:Rayvolution
  • LocationTexas

Posted 20 January 2015 - 03:23 PM

It loads and the game slowly appears (with ~1fps) but then crashes again with the same error.

 

Any chance I can get you to zip the save file and upload it somewhere so I can look at it?

 

It sounds like it's the mating AI glitch I've been trying to hammer out, just happened to happen moments after the save.


  • 0
Rise to Ruins Developer

#5 holloway

holloway
  • Members
  • 32 posts
  • Pip
  • LocationGermany

Posted 20 January 2015 - 03:39 PM

Any chance I can get you to zip the save file and upload it somewhere so I can look at it?

 

Sure thing, here it is: http://binaryb.in/download/d7b1e2


  • 0

#6 Rayvolution

Rayvolution
  • Developer
  • 1,924 posts
  • Pip
  • Steam ID:Rayvolution
  • LocationTexas

Posted 20 January 2015 - 03:57 PM

Thanks. I'll have a look at it as soon as I can get back to my desktop. ;)


  • 0
Rise to Ruins Developer

#7 Rayvolution

Rayvolution
  • Developer
  • 1,924 posts
  • Pip
  • Steam ID:Rayvolution
  • LocationTexas

Posted 20 January 2015 - 08:45 PM

yay! Isolated and fixed the bug. It shouldn't happen again, at least not in Unstable 5 or later.

 

For now though - I fixed your save file, I can't promise the bug won't creep up. But at least the save will work now. The painfully slow load times are just from the entity module loading an excessive amount of images all at once. I'm going to try to optimize that before releasing InDev 12 stable. For now though, you should be able to load the game and wait out the lag. Then everything should return to normal.

 

What was happening was when a villager was in-route to it's mate's home and the mate died before the villager arrived, the mate no longer existed. So when the still living villager reached the home, the game ran a check to verify that he arrived at the mate's home (who now has been deleted) and the game crashed trying to check the non-existent data.

 

I just fixed the bug in Unstable 5, waited for the mate to die, and then saved the game. So, here's your save, less one now-dead villager. ;)

http://sixtygig.com/junk/fixedSave.zip

 

It could always happen again in Unstable 4b, and considering your village was on the verge of starvation and breeding was going nuts I suspect it will happen again eventually. But I should have Unstable 5 out soon. :)


  • 0
Rise to Ruins Developer

#8 holloway

holloway
  • Members
  • 32 posts
  • Pip
  • LocationGermany

Posted 21 January 2015 - 05:10 PM

Thank you, keep up the good work. :)


  • 0





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users