Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005578Dwarf FortressMiscellaneous Crashespublic2012-03-08 01:222015-01-09 06:32
ReporterEldrickWT 
Assigned ToToady One 
PrioritynormalSeveritymajorReproducibilityrandom
StatusresolvedResolutionfixed 
PlatformSDLOSWindowsOS VersionUltimate 64bit
Product Version0.34.05 
Target VersionFixed in Version0.40.01 
Summary0005578: Crash during worldgen from a SEMIMEGABEAST or MEGABEAST lacking both LAIR and POWER/SPHERES
DescriptionI've run into a reproduceable issue with DF2012. About 85% of the time if I don't stop world gen before year 2 by year 5-12 it will crash with the following error in windows:

Problem signature:
  Problem Event Name: APPCRASH
  Application Name: Dwarf Fortress.exe
  Application Version: 0.0.0.0
  Application Timestamp: 4f55f23e
  Fault Module Name: Dwarf Fortress.exe
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp: 4f55f23e
  Exception Code: c0000005
  Exception Offset: 00361d76
  OS Version: 6.0.6002.2.2.0.256.1
  Locale ID: 1033
  Additional Information 1: fd00
  Additional Information 2: ea6f5fe8924aaa756324d57f87834160
  Additional Information 3: fd00
  Additional Information 4: ea6f5fe8924aaa756324d57f87834160

If it crashes then it is this same error every time. Otherwise it continues as normal up to 125 and even 250 year history sets. World size is almost irrelevant. This has only happened since 0.34.01 SDL and was never an issue in 0.31.25 SDL.
Steps To Reproduce1) Unzip DF to a fresh directory.
2) Copy my Raws into raw/objects.
3) Generate a New World.
... DF should crash after Civilization placement, and the Age of Myth begins.
Additional InformationMy Mods amount to a Major mod if not almost a Total Conversion with many Civilizations, Races, Body parts, Creature Variations, reactions and items. I play it extensively, and it's been building in size since 0.31.21 when I began playing DF.

There is a secondary unrelated issue with two of the entity files that bottlenecks world gen when they are present. Remove entity_fallen.txt and entity_cultist.txt to avoid. I'm still combing through their raws for the reason behind it -not sure it's worth a bug report.

A Recent Successful world build is available. (region 1)
http://dffd.wimbli.com/file.php?id=5814 [^]

That's an entire DF installation for ease of testing.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0021254)
Logical2u (manager)
2012-03-08 06:00

So you're using a set of modded RAWs you've been bringing along since .31?

Also, what is your memory usage before it crashes, and have you tested this on the Legacy version as well?
(0021255)
Footkerchief (manager)
2012-03-08 06:32

So you're using a set of modded RAWs you've been bringing along since .31?

Yeah, the modified dates in raw/objects go back to Aug 2011. The raws changed enough between 0.31.25 and 0.34.01 that copying over a full set of old raws probably won't work out. The Modding forum may be able to assist you in updating your raws: http://www.bay12forums.com/smf/index.php?board=13.0 [^]
(0021261)
EldrickWT (reporter)
2012-03-08 08:42
edited on: 2012-03-08 08:43

My error log is clean so I hope I'm doing a good job keeping up in that regard. Arena mode is fine, and if I stop world gen before year 5 I can play the world just fine. Anything over the 5-12 threshold crashes with nothing but the access violation/segfault. (edit: Unless it is that 15% that seems to have no problems)

Logical2U: The results of my Legacy test is an access violation/segfault in a different memory address.

Problem signature:
  Problem Event Name: APPCRASH
  Application Name: Dwarf Fortress.exe
  Application Version: 0.0.0.0
  Application Timestamp: 4f55e19c
  Fault Module Name: Dwarf Fortress.exe
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp: 4f55e19c
  Exception Code: c0000005
  Exception Offset: 003bc263
  OS Version: 6.0.6002.2.2.0.256.1
  Locale ID: 1033
  Additional Information 1: fd00
  Additional Information 2: ea6f5fe8924aaa756324d57f87834160
  Additional Information 3: fd00
  Additional Information 4: ea6f5fe8924aaa756324d57f87834160

(0021264)
Footkerchief (manager)
2012-03-08 09:08
edited on: 2012-03-08 09:08

The bug tracker is not a place to debug your mods, especially not ones written for obsolete versions. A crash without an errorlog isn't optimal, but it's expected behavior for certain types of modding mishaps (see 0001271:0008465). You can reopen this if you find a specific part of the raws that is causing the crash.

(0021300)
EldrickWT (reporter)
2012-03-09 02:17

Specific Parts found:

1)a forever old cut and paste style set of typos. Example:

BP:LUNG:lung:lungs:STP that the Arena doesn't even notice.

2) The Actual crash causer:

SEMIMEGABEAST or MEGABEAST without a LAIR declaration and/or a POWER and SPHERES. Declare a LAIR or add POWER and SPHEREs and the crashing goes away.

To reproduce:

Copy a creature's raws to a new entry
add SEMIMEGABEAST to the new entry.
try to gen a default world
enjoy an access violation/segfault if the creature gets loaded by DF.

Testing was conducted in a clean Vanilla installation. SDL was tested. Legacy was not tested. Crash rate was over 95%.
(0021306)
Quietust (reporter)
2012-03-09 06:56

An incorrect mod resulting in odd behavior may be acceptable from some viewpoints, but it should never be possible for malformed raws to actually crash the game.
(0021309)
Footkerchief (manager)
2012-03-09 08:15

Thanks for tracking it down!
(0031601)
Footkerchief (manager)
2014-12-30 20:24

Is this bug still present?
(0031804)
EldrickWT (reporter)
2015-01-08 22:39
edited on: 2015-01-09 00:23

Tested in a _non-vanilla_ installation with two separate creatures (one that never had power/spheres, nor lair tags)(one that was stripped of such, and reworked to avoid duplication). The test was a complete success. There was no crash with either a Standard 250 year run or a short 5 year history.

I do plan a Vanilla test, but both of my machines are currently bogged down with nearly zero available resources. I do not wish that to impact the testing. Unless of course I'm told that's unneeded before I start. It's midnight here so that's hours away in any event.

Edit: Or now.

Copied DRAGON to a new file. Renamed them to ZORK. Removed all problematic tokens (LAIR,( HABIT,) POWER, SPHERE) save [MEGABEAST]. Generated a Default world. World History progressed to 250 without a hitch. Started a Game. No problems parsing the creature list. Made it all the way to actual fortress mode.

This bug may have already been flattened... couldn't say which version back. I tested with 0.40.23 because that's what was installed on the box that became available at the time.

Shall I try 0.40.24 as well?

(0031813)
Footkerchief (manager)
2015-01-09 06:32

Awesome, thanks for testing! 0.40.23 should be fine.

- Issue History
Date Modified Username Field Change
2012-03-08 01:22 EldrickWT New Issue
2012-03-08 06:00 Logical2u Note Added: 0021254
2012-03-08 06:00 Logical2u Tag Attached: AWAITING UPDATE
2012-03-08 06:32 Footkerchief Note Added: 0021255
2012-03-08 06:32 Footkerchief Status new => resolved
2012-03-08 06:32 Footkerchief Resolution open => no change required
2012-03-08 06:32 Footkerchief Assigned To => Footkerchief
2012-03-08 08:42 EldrickWT Note Added: 0021261
2012-03-08 08:42 EldrickWT Status resolved => needs feedback
2012-03-08 08:42 EldrickWT Resolution no change required => reopened
2012-03-08 08:43 EldrickWT Note Edited: 0021261 View Revisions
2012-03-08 09:08 Footkerchief Note Added: 0021264
2012-03-08 09:08 Footkerchief Status needs feedback => resolved
2012-03-08 09:08 Footkerchief Resolution reopened => no change required
2012-03-08 09:08 Footkerchief Note Edited: 0021264 View Revisions
2012-03-08 09:08 Footkerchief Note Edited: 0021264 View Revisions
2012-03-09 02:17 EldrickWT Note Added: 0021300
2012-03-09 02:17 EldrickWT Status resolved => needs feedback
2012-03-09 02:17 EldrickWT Resolution no change required => reopened
2012-03-09 06:56 Quietust Note Added: 0021306
2012-03-09 08:15 Footkerchief Summary DF crashes with the same Access Violation 85% of the time... => Crash during worldgen from SEMIMEGABEAST or MEGABEAST lacking both LAIR and POWER/SPHERES
2012-03-09 08:15 Footkerchief Summary Crash during worldgen from SEMIMEGABEAST or MEGABEAST lacking both LAIR and POWER/SPHERES => Crash during worldgen from a SEMIMEGABEAST or MEGABEAST lacking both LAIR and POWER/SPHERES
2012-03-09 08:15 Footkerchief Note Added: 0021309
2012-03-09 08:17 Footkerchief Status needs feedback => new
2012-03-19 07:06 Footkerchief Tag Detached: AWAITING UPDATE
2012-06-11 12:37 Footkerchief Assigned To Footkerchief =>
2014-12-30 20:24 Footkerchief Note Added: 0031601
2014-12-30 20:24 Footkerchief Assigned To => Footkerchief
2014-12-30 20:24 Footkerchief Status new => needs feedback
2015-01-08 22:39 EldrickWT Note Added: 0031804
2015-01-08 22:39 EldrickWT Status needs feedback => assigned
2015-01-09 00:23 EldrickWT Note Edited: 0031804 View Revisions
2015-01-09 06:32 Footkerchief Note Added: 0031813
2015-01-09 06:32 Footkerchief Status assigned => resolved
2015-01-09 06:32 Footkerchief Fixed in Version => 0.40.01
2015-01-09 06:32 Footkerchief Resolution reopened => fixed
2015-01-09 06:32 Footkerchief Assigned To Footkerchief => Toady One


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker