Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [40d] [Hard to Reproduce] U -> zoom to building crash  (Read 2493 times)

Dareon Clearwater

  • Bay Watcher
  • [PREFSTRING:colorful underwear]
    • View Profile
[40d] [Hard to Reproduce] U -> zoom to building crash
« on: September 14, 2008, 02:33:41 am »

This is, unfortunately, going to be a very vague bug report.  I have several mason's workshops, all set to Construct Rock Blocks/R.  My general plan is to let the dorfs use whichever one they like until it's CLT or worse, then switch off the job and use the blocks.  Since the shops are built on the sites of mining, it's hard to check them all in one pass, so I've been using the unit menu and zooming to the buildings the masons are working in.

Twice now it's frozen and crashed on me after a few incidences of working normally.  I have no idea whether it's a specific workshop causing it, since the crash occurs immediately after hitting b, and doesn't even get out of the unit menu.
Logged
It's like you're all trying to outdo each other in sheer useless pedantry.

Magua

  • Bay Watcher
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #1 on: September 16, 2008, 10:56:59 am »

I may not be more useful:

I'm building a pump tower -- first the floors, then the pumps, then I wall things in.  It's a little cluttered, and there's a lot of dwarves doing work. 

I'll occasionally get the "Construct building cancelled: Item is in the way" message followed by "Dwarves have suspended construction of Wall".  I go to the 'j'ob menu, find the suspended job, and then go to 'b'uilding to unsuspend it. 

Most of the time this works fine, but twice now it has crashed with a memory exception, trying to read 0x00000000.  It's not reproducible -- I'll reload and do the exact same actions again, and the problem does not occur.
Logged
Also, you can manufacture vomit at a smelter.  Subsequently removing the smelter spews vomit over a surprising area.

Deathworks

  • Bay Watcher
  • There be no fortress without its feline rulers!
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #2 on: September 16, 2008, 11:28:30 am »

Hi!

I may be wrong, but this sounds a lot like reported bug 1005:

Quote
# 001005 □ [dwarf mode][interface][unit-job screen]    it crashes occasionally when zooming to a building from the unit/job view

Unfortunately, I am afraid that will not help you very much (^_^;;
However, I think I saw a thread about this bug recently here in the bugs forum (this is why I knew the bug existed), so maybe people know some workaround or have more advice...

Deathworks
Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #3 on: September 16, 2008, 12:04:06 pm »

However, I think I saw a thread about this bug recently here in the bugs forum (this is why I knew the bug existed)

You're looking at it.
Well, there's another thread, but since a previous poster had the problem again, he posted noting that it is a [Hard to Reproduce] bug. ;)
Logged

Deathworks

  • Bay Watcher
  • There be no fortress without its feline rulers!
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #4 on: September 16, 2008, 02:37:49 pm »

Hi!

I am a bit confused there, Draco18s. The posters in this thread here are Dareon Clearwater and Magua, while the posters in the other thread (39f Zoom to suspended building causes crash) were Daemon_TW, Beredix, The Dark Bunny, Ryo, Starver, Kurtm, and Techhead.

So, unless Dareon Clearwater or Magua are using multiple accounts, neither of them is a "previous poster" from that thread.

Unfortunately, the other thread does not really seem to yield any help for avoiding it and only presents us with a puzzled Toady One... (T_T)

Deathworks
Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #5 on: September 16, 2008, 04:51:55 pm »

So, unless Dareon Clearwater or Magua are using multiple accounts, neither of them is a "previous poster" from that thread.

My mistake.  I was taking a stab at it.  Likely one of them saw that thread though.

Quote
Unfortunately, the other thread does not really seem to yield any help for avoiding it and only presents us with a puzzled Toady One... (T_T)

Quite.
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #6 on: September 17, 2008, 09:45:37 pm »

If the save is particularly prone to this problem, I'd like to take a look at it.  I don't have very much to work with at this point.  I'll need the region folder in some kind of zip/rar/7z, and any new objects that were added to the raw folder.  If it's less than 20 megs, you can send it to toadyone@bay12games.com.  You can also try The Dwarf Fortress File Depot which has a special section for bugged saves.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Keldor

  • Bay Watcher
  • Blood for the blood god!
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #7 on: September 21, 2008, 01:01:04 am »

Hmm.  A memory error at 0x00000000 almost certainly means that you're trying to access an uninitialized pointer.  It there a conditional somewhere in adding buildings to the building list which ends up inadvertantly skipping the pointer assignment?  The fact that it doesn't crash the moment you bring up the building list indicates that the pointer to the room, at least so far as name/description is valid, so the culprit has to be a pointer accessed only when the zoom to function is invoked.

That the pointer is still null implies that it was never set in the first place, as opposed to an error in some update, so the cause happened before the building was ever suspended.

What specific types of buildings have had this problem?
Logged
If ignorance is bliss, why are my dwarves all tantruming?

Derakon

  • Bay Watcher
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #8 on: September 21, 2008, 01:09:31 am »

The usual behavior I get from uninitialized pointers is garbage data, not 0, though I grant this is compiler-specific. I'm just pointing out that it's also possible that Toady's setting something to 0/null and then accessing it, which would happen, say, if you ran off the end of a linked list (where you use a null child pointer to indicate the end), for example.
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

Sukasa

  • Bay Watcher
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #9 on: September 23, 2008, 11:08:41 am »

Usually, whatever garbage the pointer will have is whatever was physically present in the bytes of RAM that the Pointer is stored in - no init means that these garbage bytes from an earlier program running are now brought into DF via the bad pointer.
Logged
<@TRS[DF]> I'll drive this place into the ground faster than Boatmurdered

Zulaf

  • Bay Watcher
  • Am I learning, or do I only think I am?
    • View Profile
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #10 on: October 14, 2008, 12:37:06 am »

Ive had this crash happen to me for about the last 3 games, but the first 2 where not reproducible accuratly enough so i kept starting again. i got one now that is accurate and reproducible. the crash happens when i go to see what one my my miners are building. it takes a few tries to happen. this also may not matter but i would press f1 to go to the main door before i would look at what was being built which was one level up from the main door.

Here is the file on DFFD:  http://dffd.wimbli.com/file.php?id=609


EDIT: sorry i forgot to mention afew tidbits.
First this is a fresh world, i do not use worlds or saves or anything from previous versions.
Second i downloaded the small version if that has anything to do with anything.

BLEH EDIT 2: also forgot to say no mods no cheats just plain old vanilla df
« Last Edit: October 14, 2008, 12:48:03 am by Zulaf »
Logged
WIERD 2-5-6-8-9-14

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: [40d] [Hard to Reproduce] U -> zoom to building crash
« Reply #11 on: October 16, 2008, 05:25:24 am »

Thanks, I'll give it a try at some point, most likely prior to the next release for this bug.
Logged
The Toad, a Natural Resource:  Preserve yours today!