Jump to content


  • Please log in to reply
InDev 17c Crashes
25 replies to this topic - Started By quxzcover, Jan 24 2016 03:21 AM

#1 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 24 January 2016 - 03:21 AM

i have crashed more then a few times and sometimes it even ruins saves. a few notable places where the game crashes are:

Whenever i doom world, there seems to be a 80%chance i crash, if not a large lag spike.

Sometimes randomly while im playing, and whenever i load the save gain it crashes.

 

these are the most common two, ill post if i find any more spots specifically where it crashes.


  • 0

#2 Rayvolution

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

Posted 24 January 2016 - 03:34 AM

My gut says these are out-of-memory crashes, do you have any crash logs? They're inside the /logs/ folder.


  • 0
Rise to Ruins Developer

#3 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 24 January 2016 - 06:14 PM

do you have a email i could email them to? i would not like to post the entire text of the crash logs in the forums. this forum also dosent seem to have to option to just upload the files straight to here. also what i found looks like this "2016-01-24-03-06-26"


  • 0

#4 Rayvolution

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

Posted 24 January 2016 - 07:09 PM

do you have a email i could email them to? i would not like to post the entire text of the crash logs in the forums. this forum also dosent seem to have to option to just upload the files straight to here. also what i found looks like this "2016-01-24-03-06-26"

 

Yep, that's the file. You can still post it here though, I like to keep the crash logs public so everyone can see them (if they're having the same problem, they'll be able to find help easier). :)
 


  • 0
Rise to Ruins Developer

#5 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 25 January 2016 - 12:18 AM

theres 9 of them, should i post them all?


  • 0

#6 Rayvolution

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

Posted 25 January 2016 - 01:24 AM

Just the newest ones should be fine, assuming the last time you launched the game it crashed. :)

 

The ones with the actual stack trace will have something along these lines at the bottom, the actual trace will probably be completely different though.

 

Fri Jan 22 22:45:01 EST 2016 ERROR:null
java.lang.NullPointerException
at rpc.entities.ai.AIBase.setPathFinder(AIBase.java:350)
at rpc.entities.ai.AIDeliverResourceAtBuilding.execute(AIDeliverResourceAtBuilding.java:230)
at rpc.entities.EntityBase.update(EntityBase.java:2385)
at rpc.entities.EntityModule.update(EntityModule.java:323)
at rpc.states.PlayState.update(PlayState.java:240)
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:484)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:394)
at rpc.system.Game.launchGame(Game.java:101)
at rpc.system.Launcher.main(Launcher.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Fri Jan 22 22:45:01 EST 2016 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:484)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:394)
at rpc.system.Game.launchGame(Game.java:101)
at rpc.system.Launcher.main(Launcher.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)

  • 0
Rise to Ruins Developer

#7 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 25 January 2016 - 04:56 PM

i wrote some extra stuff at bottom!
 
Retro-Pixel Castles InDev 17c
Operating System: Windows 8.1
GPU Drivers: igdumdim64
GPU Driver Version: 10.18.15.4256
Maximum JVM Memory: 3623MB
Display Mode: Windowed
 

<Snipped>

 
Theres about 500 more kb of
Random values flipped! Fixing..
Random 0 is too low, set to 1.
left on the file that i didnt copy and paste
 
A common occurrence is the help tip module failing to load, and the limbo villagers and resources failing to load.
this is my most recent one.

  • 0

#8 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 25 January 2016 - 04:57 PM

also, its not when i open the game, its while im playing it.


  • 0

#9 Rayvolution

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

Posted 25 January 2016 - 06:05 PM

doh! What I actually need is the tail end of the logs, probably the last 150 or so lines. Everything above it is just verbose console information. :)

 

But, if you managed to play a game this long I would be surprised if it was a memory issue. Guess we'll see when I see the end of the log file though. :)


  • 0
Rise to Ruins Developer

#10 Dragonisser

Dragonisser
  • Members
  • 154 posts
  • Pip
  • Skype:Dragonisser
  • Steam ID:Dragonisser
  • LocationGermany

Posted 26 January 2016 - 06:36 AM

You can also upload the whole log to pastebin.com ^^


  • 0

#11 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 26 January 2016 - 08:14 AM

lol sorry


  • 0

#12 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 26 January 2016 - 08:17 AM

Random values flipped! Fixing..
Random 0 is too low, set to 1.
Random values flipped! Fixing..
Random 0 is too low, set to 1.
Random values flipped! Fixing..
Random 0 is too low, set to 1.
Random values flipped! Fixing..
Random 0 is too low, set to 1.
Random values flipped! Fixing..
Random 0 is too low, set to 1.
Fire Bolt Tower has been fully repaired.
Bambi Tarrant has leveled up to 8 and gained 12 STR 21 DEX and 20 INT
Bryant Aburdene mated with Yesmina Aburdene!
Yesmina Aburdene is pregnant!
Fire Bolt Tower has been fully repaired.
--------------------
Autosave Preparation, took 0ms
Autosaved Entities, took 7ms
Autosaved Essence, took 1ms
Autosaved Particles, took 8ms
Autosaved Resource, took 10ms
Autosaved Influence, took 0ms
Autosaved Weather, took 0ms
Autosaved Time, took 0ms
Autosaved Map Properties, took 0ms
Autosaved Objects, took 5ms
Autosaved Map Data, took 16ms
Autosaved Map Preview, took 37ms
Autosave Clean Up, took 2ms
Autosaved Limbo Creatures, took 1ms
Autosaved Limbo Resources, took 0ms
Autosave completed, took 88ms
Linnea Aburdene mated with Joe Aburdene!
Tymon Sangster has leveled up to 8 and gained 16 STR 13 DEX and 24 INT
Tresa Warwick has been born!
Fire Bolt Tower has been fully repaired.
Baldwin Morduch has leveled up to 7 and gained 19 STR 16 DEX and 18 INT
--------------------
Autosave Preparation, took 1ms
Autosaved Entities, took 6ms
Autosaved Essence, took 1ms
Autosaved Particles, took 10ms
Autosaved Resource, took 16ms
Autosaved Influence, took 0ms
Autosaved Weather, took 1ms
Autosaved Time, took 0ms
Autosaved Map Properties, took 0ms
Autosaved Objects, took 5ms
Autosaved Map Data, took 15ms
Autosaved Map Preview, took 45ms
Autosave Clean Up, took 2ms
Autosaved Limbo Creatures, took 1ms
Autosaved Limbo Resources, took 0ms
Autosave completed, took 103ms
Bryant Aburdene mated with Yesmina Aburdene!
Yesmina Aburdene is pregnant!
Aviva Sangster has leveled up to 8 and gained 14 STR 20 DEX and 20 INT
Alyssand Twombly has leveled up to 5 and gained 20 STR 17 DEX and 16 INT
Fire Bolt Tower has been fully repaired.
Joe Aburdene has leveled up to 5 and gained 18 STR 22 DEX and 13 INT
Stephen Meltzer has been born!
Fire Bolt Tower has been fully repaired.
Yesmina Aburdene has leveled up to 7 and gained 19 STR 20 DEX and 14 INT
Fire Bolt Tower has been fully repaired.
--------------------
Autosave Preparation, took 0ms
Autosaved Entities, took 7ms
Autosaved Essence, took 0ms
Autosaved Particles, took 6ms
Autosaved Resource, took 8ms
Autosaved Influence, took 0ms
Autosaved Weather, took 1ms
Autosaved Time, took 0ms
Autosaved Map Properties, took 0ms
Autosaved Objects, took 4ms
Autosaved Map Data, took 12ms
Autosaved Map Preview, took 49ms
Autosave Clean Up, took 2ms
Autosaved Limbo Creatures, took 1ms
Autosaved Limbo Resources, took 0ms
Autosave completed, took 90ms
Jeff Twombly has leveled up to 8 and gained 18 STR 19 DEX and 16 INT
Sherman Geidt has grown up!
--------------------
Autosave Preparation, took 1ms
Autosaved Entities, took 9ms
Autosaved Essence, took 0ms
Autosaved Particles, took 12ms
Autosaved Resource, took 9ms
Autosaved Influence, took 1ms
Autosaved Weather, took 0ms
Autosaved Time, took 1ms
Autosaved Map Properties, took 0ms
Autosaved Objects, took 6ms
Autosaved Map Data, took 15ms
Autosaved Map Preview, took 42ms
Autosave Clean Up, took 2ms
Autosaved Limbo Creatures, took 1ms
Autosaved Limbo Resources, took 0ms
Resetting SURVIVAL
Loading Game
LoadingworldMap
Font Module: 0
Save Module: 0
Resource Module: 0
Transition Module: 1
Particle Module: 2122
Background Module: 0
Sound Module: 3
Entity Module: 0
Failed to load profile's tips. Resetting tips system!
Help Module: 1
Resource Module Sync: 0
Entity Module Sync: 0
TOTAL TIME: 4503

  • 0

#13 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 26 January 2016 - 08:17 AM

^ thats bottom bit


  • 0

#14 Dragonisser

Dragonisser
  • Members
  • 154 posts
  • Pip
  • Skype:Dragonisser
  • Steam ID:Dragonisser
  • LocationGermany

Posted 26 January 2016 - 08:20 AM

^ thats bottom bit

 

 

The last part would contain an error, are you really sure that this is the latest log while your game crashed?


  • 0

#15 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 26 January 2016 - 08:21 AM

You can also upload the whole log to pastebin.com ^^

i dont remember crashing this last one but its 1500 kb of text......


  • 0

#16 Dragonisser

Dragonisser
  • Members
  • 154 posts
  • Pip
  • Skype:Dragonisser
  • Steam ID:Dragonisser
  • LocationGermany

Posted 26 January 2016 - 08:33 AM

i dont remember crashing this last one but its 1500 kb of text......

Well we need the log with the crash, just put the crash, the last part of the file here or the whole file on pastebin.com. Otherwise we cant help you and ray cant fix it.


  • 0

#17 Rayvolution

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

Posted 26 January 2016 - 03:29 PM

^ thats bottom bit

 

If that's the bottom, than that game session didn't crash. :)

 

It's amazing you have logs reaching 1500kb and higher though, you must of been playing single sessions for most of the day!
 

I had no idea they were this large when I first asked you to just post them here, so we'll go with your original idea, I PM'ed you my email address. You can zip up and email me your entire logs folder. :)


  • 0
Rise to Ruins Developer

#18 Rayvolution

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

Posted 27 January 2016 - 01:48 AM

I dug through the logs you sent - It looks like its a problem with the dismantle AI.

 

Can you recall what you had your villagers doing at the time? What buildings were being dismantled, and were there more than one? Can you recall anything else going on at the time?

 

If at all possible, if you have a save file where this crash repeats, could you zip up your /profiles/ folder and email it to me?

 

Also, don't worry about the "Random values flipped!" messages, that's just a slightly erroneous value in the dissolve spell effects (that I've already fixed). It doesn't actually impact game play at all. :)


  • 0
Rise to Ruins Developer

#19 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 27 January 2016 - 02:47 AM

the only time ive crashed is while dooming my world. the other time it was me trying to get into a save repentantly but it kept crashing on load at the help tip module part. i was probably trying to dismantle either a firebolt tower or a wall(stone) or a torch. i remember trying to fix my defences around and those were the 3 things that could of been in the way. i hope this helps. i havent gotten a crash since update InDev 17c so it might of already been fixed. 


  • 0

#20 Rayvolution

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

Posted 27 January 2016 - 04:00 AM

The doom world crash was probably an out of memory error, although the crash longs don't really report that. But sometimes an OOM can crash the JVM before a stacktrace can be outputted. Hopefully that was just an isolated incident.

 

As for the other, if the crash was happening on load. It sounds like a villager was still "attached" to a building that needed dismantled, that didn't actually exist anymore. I'll look into it and see if I can figure out why/how that happened and try to implement a fix into 17d.


  • 0
Rise to Ruins Developer

#21 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 27 January 2016 - 01:32 PM

thats exactly what happened, im pretty sure thats why i reloaded the game to begin with. so that one villager could get back to work. then every time after it crashed.


  • 0

#22 Rayvolution

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

Posted 27 January 2016 - 02:56 PM

thats exactly what happened, im pretty sure thats why i reloaded the game to begin with. so that one villager could get back to work. then every time after it crashed.

 

In that case it sounds like an AI glitch, and what happened was it retained the object in memory it needed to continue a dismantling task on a building that no longer existed.

 

When this happens while the game is running you're fine. The game wont remove an object from memory even if it's not really being used in the game anymore assuming anything anywhere in the game currently has that object assigned to it (In this case, the broken Villager's AI). So even though the object wasn't actually in the game world anywhere, one of the villagers were bugged out and in the code they still had a variable assigned to the building, so the building was never dumped out of memory. While this was going on the game probably autosaved with that bugged villager still trying to hold on to that now non-existent object (that's still in memory because he won't let go!).

 

Well, when you reloaded the game it certainly was dumped out of memory because the object was never saved (because it shouldn't exist anymore!), but the AI's save file was still looking for the object, and now it crashes when trying to reload the object data in the AI that doesn't exist at all anymore. It's a bit confusing to explain, so I hope that didn't sound too crazy.
 

So, it's definitely an AI glitch buried somewhere in the dismantle AI, I have a hunch I know what caused it, so hopefully I can fix it before I release 17d. By chance do you recall if you had any objects currently being dismantled that were under attack, and possibly destroyed before the dismantle could happen? :)


  • 0
Rise to Ruins Developer

#23 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 27 January 2016 - 03:10 PM

if i remember correctly i dont believe the building in question had any of those faults im sure there was a wall somewhere i was dismantling that was under attack but the building the villager was stuck on was a smaller resource building as i was upgrading to larger ones. i mean it might of been destroyed by some kamikaze mob, or a lightning bolt but i doubt it.


  • 0

#24 Rayvolution

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

Posted 27 January 2016 - 10:20 PM

Ah, I should of been more specific. Walls and buildings are interchangeable in the code. So the problem could easily happen to a wall as well. They're all "Objects" as far as the game is concerned.

 

Good news is I believe I've fixed the crash, although it's actually impossible to check since even if I had your save files, I can't replicate it. Your save file is broken regardless though since even with the bug fixed, the entity that's bugged out is still in the save file with the incorrect data.

 

I suspect it was the same problem this user was having, the only difference is in your game saved before the crash happened where as his happened during game play. The situations that caused it are a bit different, but I'm pretty sure the root cause was the same bug in the code.

 

Funny thing is this is one of those "cross your fingers" moments, because I'm honestly not sure if I actually fixed it since I can't replicate it. But everything points to it being the same code error. Once InDev 17d is released we'll just all sit back and see if it happens again, I guess? :)


  • 0
Rise to Ruins Developer

#25 quxzcover

quxzcover
  • Members
  • 36 posts
  • Pip
  • Skype:quxzcover
  • Steam ID:quxzcover
  • LocationCanada

Posted 28 January 2016 - 12:21 PM

i haven't gotten it since, and i also already deleted it so unless i get it again then all is good :D


  • 0

#26 Rayvolution

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

Posted 28 January 2016 - 03:27 PM

i haven't gotten it since, and i also already deleted it so unless i get it again then all is good :D

 

haha, well hopefully the problem doesn't creep back up elsewhere. :)

 

The patch will probably be released today or tomorrow. I'm just toying around with those projectile changes you suggested. Other than that, the patch is basically ready to go.


  • 0
Rise to Ruins Developer





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users