Another "Game freezes on 'Building Environment' thread"

FramFramson

Surviver
Had a hard-reboot crash while flying around my main testing world, which I'd prefer not to lose. Nothing out of the ordinary going on.

- Game hangs on Building Environment, obviously searching reveals a trillion different possible causes.

- Verified game files

- Don't see any obvious errors being thrown by the console. No big blocks of angry red text.

- Tried to open other saves, those DO load successfully

- Tried starting a new world, that also works fine.

- Tried the tp to 70 0 0 trick, didn't work.

- Longest I let it try to load was a half-hour, normal world loading times for me are about 30 seconds, if that (the game's on my SSD). I can't tell from the console output if something is looping or just loading excruciating slowly.

On top of everything else, Pastebin is down lol, so I just uploaded the .txt files for my last two logs my Gdrive. one file , another file.

Might be a character profile-related issue if it only affects one save? Really not sure.

If the save is garbage, it shouldn't be a huge deal as I have some backups of that save, but they're about 2-3 in-game weeks back. But I don't know if the save is the issue or something else related to it.

EDIT: Pastebin is up again.

https://pastebin.com/0WrWdUL2
https://pastebin.com/Pyepk17d

 
Last edited by a moderator:
Not sure how, but your save seems fine but you have loads of mod errors preventing you from getting past the load screen. There aren't any save errors or warnings in there. Maybe your mod download got corrupted? Fair warning, if you spawned/populated something the mod added (or a quest), removing the mod can cause chaos, so if that's the case I'd try fixing the mod and making a backup before you load it again.

A21_MongCustom_Reasonable_Stack_Tweaks

Weapon_testC96




Those two, specifically, are causing quests/items failing to load.

 
Last edited by a moderator:
Those are soft errors (yellow text) I've seen many times before, not critical errors (red). For example the C96 mod soft error is simply that it's not using a more current version of the .xml formatting (but which still works). A lot of older updated mods get that message. The stack mod error just means changes to those specific items don't work (which is fine, it just means I need to cleanup that bit of code). None of those should cause a failure to load a world (I also know for a fact I have no stored candy anyway).

They've been installed for a long time, so as you mention, removing them would corrupt the save (because any items stacked with the mod would then not have a basis for being so). Also I'm able to start new games with them all installed in the same way?

Also, AFAIK, if those mods failed, they would kill save loading before I reached "Building Environment", though I'm not 100% sure on that.

 
Last edited by a moderator:
Not sure how the errors weren't breaking the game beforehand.

  1. 2024-01-31T22:55:56 42.289 ERR Loading AssetBundle "C:/Program Files (x86)/Steam/steamapps/common/7 Days To Die/7DaysToDie_Data/../Data/Bundles/Other/Items" failed: Parent folder not found!

That is likely the reason you can't get past the load screen and into the world. It's very likely, I know of a few file conflict issues that will cause that behavior, usually it's UI related, but a failure in a big area like that can also cause it, if it's not enough to break the entire main thread but enough to not be able to fully spawn the player in the world.
 
Id say fix or remove the mods breaking the items, then try again and if not, then you'd need to delete your player save and that should clear it up without losing the world.
 
Not sure how the errors weren't breaking the game beforehand.

  1. 2024-01-31T22:55:56 42.289 ERR Loading AssetBundle "C:/Program Files (x86)/Steam/steamapps/common/7 Days To Die/7DaysToDie_Data/../Data/Bundles/Other/Items" failed: Parent folder not found!

That is likely the reason you can't get past the load screen and into the world. It's very likely, I know of a few file conflict issues that will cause that behavior, usually it's UI related, but a failure in a big area like that can also cause it, if it's not enough to break the entire main thread but enough to not be able to fully spawn the player in the world.
 
Id say fix or remove the mods breaking the items, then try again and if not, then you'd need to delete your player save and that should clear it up without losing the world.


That does actually appear to be a critical error. Though it doesn't mention mods, only a base game folder? What's the connection there?

If I delete my player save I can just re-issue myself the XP and items via console, IIRC, but will it revert my gamestage to that of a new player? Can I use the console to edit that as well?

(Not saying it's not worthwhile to fix the candy stack size error, just unsure how that links to that particular error)

 
That does actually appear to be a critical error. Though it doesn't mention mods, only a base game folder? What's the connection there?

If I delete my player save I can just re-issue myself the XP and items via console, IIRC, but will it revert my gamestage to that of a new player? Can I use the console to edit that as well?

(Not saying it's not worthwhile to fix the candy stack size error, just unsure how that links to that particular error)


Well, reading the order of the log, it comes after the failure to apply the item mod(s) you have and then it fails to load the entire bundle, which is the connection. It'll do an initial load of the asset, apply your mods then fully load it into the game which is where it's failing due to the error(s) in the code applied to items.xml. 

You should be able to get relatively close to your previous gamestage if you give yourself levels and then set the time to where you were before (if the entire save is broken), if it's not broken, yeah there's not a console command to set the game stage (it's a set formula that relies on days survived). You could skip a number of days, say you're on day 40 at level 50, just level yourself to 50 and then set the day to 80

 
Well, reading the order of the log, it comes after the failure to apply the item mod(s) you have and then it fails to load the entire bundle, which is the connection. It'll do an initial load of the asset, apply your mods then fully load it into the game which is where it's failing due to the error(s) in the code applied to items.xml. 

You should be able to get relatively close to your previous gamestage if you give yourself levels and then set the time to where you were before (if the entire save is broken), if it's not broken, yeah there's not a console command to set the game stage (it's a set formula that relies on days survived). You could skip a number of days, say you're on day 40 at level 50, just level yourself to 50 and then set the day to 80


The age of the world should remain the same if all you delete is the player data.

Anyway, I just went ahead and removed the lines causing trouble from the stack size mod (which really baffles me as to why there would be a problem, because I remember I copied that code literally verbatim from an established stack size mod, but anyway...), and it still hung around on Building Environment again.

Latest log: https://pastebin.com/FF0ESRkn

 
Yeah I meant if the entire world was broken there.

Hm. That's really strange, can you make a new character or have someone create a new one? Just trying to see if the entire world was bricked or just the player save got hit. I'd be willing/curious to take a look at the save if you wanted, need the save/generated world.

 
Yeah I meant if the entire world was broken there.

Hm. That's really strange, can you make a new character or have someone create a new one? Just trying to see if the entire world was bricked or just the player save got hit. I'd be willing/curious to take a look at the save if you wanted, need the save/generated world.


Hm, I'd have to send you my full slate of mods along with the save in order to prevent errors.

Much easier to see if I can just get in with a new character - Unless I'm trying to join from another client, I think the only difference here would be to save the existing .ttp somewhere (in case switching characters doesn't fix anything) rather than deleting it? I'll give that a try and report back.

 
Yep, loads up with a new character just fine, must be some kind of player file corruption. What I might do is just take my backup character folder and put it in the existing world and then just give myself some extra XP. Seems easier than redoing everything for the character.

EDIT: Yeah that worked fine. I don't think I even changed inventory, really, other than some trash loot I'd was carrying.

 
Last edited by a moderator:
Nice, well glad you got it resolved easily. I'll have a look at how that error was handled though, shouldn't be hard to reproduce. I'd rather it kick the player out than it stay in limbo like that. 

 
Nice, well glad you got it resolved easily. I'll have a look at how that error was handled though, shouldn't be hard to reproduce. I'd rather it kick the player out than it stay in limbo like that. 


Ha, well turns out it wasn't so easy after all!  I went to the same location on the map I crashed in (without even really meaning to) and I started to see chunk loading errors (like the grass coming in late, and falling through the ground) and after backing off and going another way, I thought I would be okay because the map had had time to load in and whoops, fell through the earth again and this time didn't bounce back (just froze, nominally at ground level). 

Tried to teleport out, but I was still frozen. Then when I tried to quit and reload, guess what? Back to infinite loading on Building Environment.

Most recent log: https://pastebin.com/fryUfiDq

 
Something about that area of the map (which I hadn't visited prior to all this nonsense) is Bad Juju now! But I don't know if that's the fault of the original hard-reboot crash or if it was bad along all along during the generation process.

It's just the stock PREGEN 8k, and the no-go zone is just north of the right-most Trader Jen and the town she's in (both are in the wasteland biome), as well as part of the pine forest biome north of that area as well.

 
Ah! Yeah something is broken inside that chunk. Grab the region number and use the regionrreset command to reset it. You could delete the region, but that isn't a suggested method anymore, the rr command will wipe it/rebuild it from scratch.

 
As a note, the region reset command (rr) is helpful but not a guaranteed fix for a corrupted map.  I had to give up on a map that would crash every time you entered various regions in a certain part of the map.  And using rr didn't help.  I had tried just avoiding the area, which worked fine, but I'd eventually end up going there without thinking and end up crashing again so I gave up on the map.  Hopefully it'll work for you to reset the region that is corrupted, but you may have to either completely avoid that area of your map or else create a new map or use a backup if you have one that doesn't have the error.

 
Back
Top