Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000735Dwarf FortressTechnical -- Generalpublic2010-04-07 13:212010-06-09 06:45
lobefin 
Toady One 
normalblockalways
closedfixed 
windows7
0.31.01 
0.31.05 
0000735: Loading game immed. after generating new world results in invalid ID numbers
I create a new world, then load a previous dwarf mode save in the same session. The game hangs indefinately on the "loading game..." screen.
The save does not load after several minutes, and I have to quit through the OS.

after quitting and restarting, game loads as normal. The bug only occurs when performing a new worldgen in the same session.

Just confirmed this did not occur in ver 40d18.
design new world with parameters (tested for pocket & smaller worlds)
generate world
continue playing
select preexisting world
sample errorlog.txt;

[...]

Load Game: Invalid Job ID Number, Drink
Load Game: Invalid Job ID Number, Pickup Equipment
Load Game: Invalid Job ID Number, Harvest Plants
Load Game: Invalid Unit ID Number, Kol Likotedos, Woodworker
Load Game: Invalid Unit ID Number, Cog Shism”rul, Stonecrafter
Load Game: Invalid Unit ID Number, Mafol ZonŒton, Planter
Load Game: Invalid Unit ID Number, Ilral R¡barlorbam, Miner

[...]

it continues like this for 2.7MB+. every line is in the form "Load Game: Invalid [thing] ID Number, [thing name]" repeated for seemingly everything in the world.
No tags attached.
has duplicate 0000381closed Footkerchief Adventurers/reclaimers have the creature IDs of megabeasts 
has duplicate 0002134closed Footkerchief New game in adventure mode has quirky setup 
related to 0000017resolved Toady One Embark starts with no expedition leader, resulting in missing labors and blank nobles screen 
Issue History
2010-04-07 13:21lobefinNew Issue
2010-04-07 13:26FootkerchiefNote Added: 0001836
2010-04-07 13:32DoctorZuberNote Added: 0001838
2010-04-07 13:52FootkerchiefIssue Monitored: Footkerchief
2010-04-07 13:55lobefinNote Added: 0001844
2010-04-07 14:57lobefinNote Added: 0001861
2010-04-07 15:07lobefinNote Edited: 0001861bug_revision_view_page.php?bugnote_id=0001861#r559
2010-04-07 15:28FootkerchiefNote Added: 0001864
2010-04-07 16:13lobefinNote Added: 0001879
2010-04-26 17:08FootkerchiefSummaryHang on loading following worldgen => Loading game immed. after generating new world results in invalid ID numbers
2010-04-26 17:09FootkerchiefRelationship addedrelated to 0000017
2010-04-26 21:46DoctorZuberNote Added: 0005280
2010-04-26 21:51DoctorZuberNote Edited: 0005280bug_revision_view_page.php?bugnote_id=0005280#r1870
2010-05-25 12:09FootkerchiefRelationship replacedparent of 0000017
2010-05-25 12:09FootkerchiefRelationship addedparent of 0000983
2010-05-25 12:09FootkerchiefRelationship addedparent of 0001446
2010-05-25 12:10FootkerchiefRelationship addedhas duplicate 0000381
2010-05-25 12:10FootkerchiefSticky IssueNo => Yes
2010-06-02 01:02Toady OneNote Added: 0007558
2010-06-02 01:02Toady OneStatusnew => resolved
2010-06-02 01:02Toady OneFixed in Version => 0.31.05
2010-06-02 01:02Toady OneResolutionopen => fixed
2010-06-02 01:02Toady OneAssigned To => Toady One
2010-06-02 01:09Toady OneRelationship deletedparent of 0001446
2010-06-02 01:10Toady OneRelationship deletedparent of 0000983
2010-06-02 01:10Toady OneRelationship deletedparent of 0000017
2010-06-02 13:07FootkerchiefSticky IssueYes => No
2010-06-02 16:07FootkerchiefRelationship addedhas duplicate 0002134
2010-06-02 16:07FootkerchiefIssue Monitored: ethan
2010-06-09 06:45Toady OneStatusresolved => closed
2010-06-29 07:38FootkerchiefCategoryTechnical => Technical -- General
2010-07-14 08:18FootkerchiefRelationship addedrelated to 0000017

Notes
(0001836)
Footkerchief   
2010-04-07 13:26   
What size worlds are you generating?
(0001838)
DoctorZuber   
2010-04-07 13:32   
unable to reproduce.

tried creating several worlds in a row, while the system froze up some from the abuse of doing three world gens in a row, it did recover. loaded an unrelated save after each worldgen with no difficulties.

I'm wondering if this may be related to reports that the new worldgen fails to release memory after a worldgen.

What are your system specs ?
(0001844)
lobefin   
2010-04-07 13:55   
footkerchief - my existing save is on a default 'create new world now' world in slot 1.
I've reproduced the hang after genning pocket and smaller worlds in slots 3 and 4. It's hanged every time on 5 or 6 such tests.

Specs;
Intel core 2 duo (2.1 GHz)
4GB ram (though only 3GB usable)
Windows 7 32bit.

gonna run more tests..
(0001861)
lobefin   
2010-04-07 14:57   
(edited on: 2010-04-07 15:07)
After further tests it seems the tests are loading, just after a delay and after producing a long errorlog. On testing various world sizes;

gen pocket -> load pocket - loads quickly, 26KB log
gen pocket -> load smaller - loads quickly, 77KB log
gen small -> load pocket - longish wait, 4857KB log
gen smaller -> load smaller - loads quickly, 66KB log

on tests involving larger size worlds I lose patience and quit before the game loads. However I have watched the errorlog grow to 10MB+.

Replicated using fresh download. I'm also making sure to quit and restart between each test.

-edit-

genned a pocket world then loaded a medium size save. approx 10 mins later its open with a 54MB log.

(0001864)
Footkerchief   
2010-04-07 15:28   
Do you have the game installed in Program Files? That causes errors on Vista and probably Win 7.
(0001879)
lobefin   
2010-04-07 16:13   
I had it installed in "my documents"
After copying the folder to root on a separate partition, I still get the same issue.

I should also report that I have graphics turned off.
(0005280)
DoctorZuber   
2010-04-26 21:46   
(edited on: 2010-04-26 21:51)
I'm coming back to this one, I'm amending my earlier statement. I haven't seen a crash from this, but I can reliably generate error reports. I did some quick tests with pockets, I guess I can try a larger one for giggles.

(0007558)
Toady One   
2010-06-02 01:02   
I've fixed this one, but it doesn't seem like it is related to any of the parent issues, so I've removed those. It's still unclear what is going on there at times.