Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0008755Dwarf FortressDwarf Mode -- Jobs, Haulingpublic2015-01-20 05:332017-05-18 21:30
ptb_ptb 
lethosor 
normalminorsometimes
acknowledgedopen 
PCWindows7
0.40.24 
 
0008755: Items in bins (coins, thread, mechanisms, ammo) are sometimes not found for tasks
I have a (single) coin bin.
As of the time it was saved it has 16 stacks of 500 aluminium coins.
All coin stacks are designated for melting.
I have two magma smelters set on repeat for "melt item"
The stockpile only holds coins, there are no coins being minted.

At some point the smelting jobs cancel because there are 'no melt designated items'.

In the save file, if you load and unpause, the smelter jobs will cancel before any coins are melted (or they did for me).

Similar things happen with the (auto-generated) weaving of thread into cloth.

Possibly other items in bins as well.
* Fill a bin with coins
* Mark them all to melt.
* Set a smelter to 'melt item' on repeat.
* See if all coin stacks are melted, or if the job cancels.

OR

* Buy a bin full of threads.
* Build a loom
* Watch for 'cancels weave' message spam and check that whether there really is no thread.
Yeah, I know this sounds a lot like previous bugs with bins that are picked up, but it happens even when there is no possible task that could involve moving the bin or putting things in a bin.

Save file uploading.
No tags attached.
related to 0005992resolved Toady One Conflict between hauling jobs (i.e. filling containers) and other jobs using items in those containers 
related to 0009004confirmed Loci "Store item in container" jobs block access to all items already in the container 
has duplicate 0006098resolved Dwarfu Can't build weapon trap, says "Needs item". 
has duplicate 0009441resolved Dwarfu Cannot make quires from paper sheets stored in bins 
Issue History
2015-01-20 05:33ptb_ptbNew Issue
2015-01-20 05:37ptb_ptbNote Added: 0032011
2015-01-20 05:44ptb_ptbNote Edited: 0032011bug_revision_view_page.php?bugnote_id=0032011#r12829
2015-01-20 06:33ptb_ptbNote Edited: 0032011bug_revision_view_page.php?bugnote_id=0032011#r12830
2015-01-20 08:47FootkerchiefRelationship addedrelated to 0005992
2015-01-22 01:03ptb_ptbNote Added: 0032030
2015-02-25 10:05MuumehNote Added: 0032288
2015-03-25 09:47DwarfuRelationship addedhas duplicate 0006098
2015-03-25 09:48DwarfuRelationship deletedhas duplicate 0006098
2015-03-25 09:49DwarfuRelationship addedhas duplicate 0006098
2015-03-25 09:51DwarfuSummaryItems in bins (coins, thread) are sometimes not found for tasks => Items in bins (coins, thread, mechanisms, ammo) are sometimes not found for tasks
2015-04-03 05:55fboNote Added: 0032496
2015-05-24 13:13CLuther88Note Added: 0032716
2015-05-31 16:58CLuther88Note Edited: 0032716bug_revision_view_page.php?bugnote_id=0032716#r13111
2015-08-02 18:46lethosorAssigned To => lethosor
2015-08-02 18:46lethosorStatusnew => acknowledged
2015-09-30 09:29TreahNote Added: 0033071
2015-09-30 23:02DeNote Added: 0033074
2015-12-27 09:41HuntthetrollIssue Monitored: Huntthetroll
2016-01-19 20:33DwarfuRelationship addedhas duplicate 0009441
2016-02-14 11:15greycatNote Added: 0034661
2016-02-14 11:21greycatNote Edited: 0034661bug_revision_view_page.php?bugnote_id=0034661#r13960
2016-03-03 21:40KillzemallgodNote Added: 0034787
2016-04-13 13:19LociNote Added: 0035010
2017-05-05 08:21AltareeNote Added: 0036498
2017-05-18 21:30lethosorRelationship addedrelated to 0009004

Notes
(0032011)
ptb_ptb   
2015-01-20 05:37   
(edited on: 2015-01-20 06:33)
[EDIT] OK, I found some coins that weren't in the coin stockpile. So it is the old bug, or very similar to it. See 0005992 Marked resolved, but possibly not for all cases.

It seems the bin contents are not found when a dwarf attempts to put another item in it?

*1. If you load the save and unpause the smelting job will cancel before the coins are melted.
*2. If, instead, you load the save and forbid the coins under the magma smelter, THEN unpause the coins are melted successfully.

Save file: http://dffd.bay12games.com/file.php?id=10475 [^]

(0032030)
ptb_ptb   
2015-01-22 01:03   
Hmm, it occurs to me that this bug may have driven my armorer insane when he couldn't find any plant cloth for his artifact. :/
(0032288)
Muumeh   
2015-02-25 10:05   
Add ammo to the list. Marksdwarves do not pick up ammo that is stored in a bin, nor do haulers see them. (tested with creating an ammo stockpile (A) that accepts only copper bolts, setting bin amount to two, taking anywhere, and creating a second stockpile (B) that accepts ammo only from the first stockpile (links only, take from stockpile A.) No bolts will be hauled to stockpile B.
If stockpile A is removed, leaving the ammo within the bins just lying there, then the dwarves will start filling stockpile B with them. Marksdwarves still do not seem to "see" them inside the bins though, taking ammo only from stockpile(s) that have no bins assigned or straight from the workshop(s).

I've noticed this behaviour this far with ammo, thread, cloth, gems and bars. (Soap stored in hospital chests seem to work fine)
(0032496)
fbo   
2015-04-03 05:55   
same for nestboxes: As long as my nestbox was in a bin it couldn't be placed. But after dumping it on an adjacent tile in the same stockpile it was available for construction.
If I wasn't quick enough a dwarf placed it back inside the bin and the building cursor said "need nestbox" again.
(0032716)
CLuther88   
2015-05-24 13:13   
(edited on: 2015-05-31 16:58)
Anything stored out in the open is usually found, but most, if not all, items in bins are subject to this, while only certain things stored in barrels are. Dye is subject to this—many cancellations of "Dye Thread — Need unrotten dye item" when there's a nearly full stockpile of dimple dye bags stored in barrels nearby (whether the stockpile "gives" to every dyer, or is left without restrictions). Not sure if dye bags outside of barrels does this. Seeds seem to be found no matter what, as well as food for all farmer's workshop, millstone/quern, kitchen, still and fishery jobs.

Using the job manager leads to the same amount of spam, but at least continues to add the jobs until they get done.

Moody dwarves seem to always find what they're looking for, regardless of whether they're stored in containers or not.

(0033071)
Treah   
2015-09-30 09:29   
You can pretty easy reproduce this problem by setting up 2 stockpiles for dimple cups. Set one to allow barrels/pots and one that does not. Create the first that accepts pots and have dwarves then fill up that pot. Ensure there are no more hauling jobs to the pot/pots so they should be free from the other bug that plagues this. Then setup the second stockpile to pull from the first and disallow pots. Dwarves will ignore everything in the pots and never fill up the second stockpile. For some reason the items do not exist. Dumping the pot does for some reason cause the items inside to suddenly pop back into view. There also could be other ways to resolve this as well but I have not tested. I can upload a save where I have such a setup if needed.
(0033074)
De   
2015-09-30 23:02   
I've noticed that they can't get clothing out of bins either. I've got bins and bins or masterwork clothing and my dorfs are running around naked. If it's in a bin it doesn't exist. Pots and barrels are fine though.
(0034661)
greycat   
2016-02-14 11:15   
(edited on: 2016-02-14 11:21)
ptb_ptb writes, " It seems the bin contents are not found when a dwarf attempts to put another item in it?"

Yes, this seems to match my experience (up through 0.42.05 so far). When a dwarf is performing a "Place Item in Barrel" (et al.) job, the container is "locked", preventing all other actions, including workshop jobs retrieving an object for crafting.

Without understanding the code, I have to assume that the locking is required to avoid some much worse bug. But I wish the workshop job which is affected by the locking would only be postponed, rather than completely cancelled.

Treah writes, "2 stockpiles for dimple cups. Set one to allow barrels/pots and one that does not. Create the first that accepts pots and have dwarves then fill up that pot. Ensure there are no more hauling jobs to the pot/pots so they should be free from the other bug that plagues this. Then setup the second stockpile to pull from the first and disallow pots. Dwarves will ignore everything in the pots and never fill up the second stockpile."

I believe this is a much more specific issue: dwarves will never *remove* items from a container to fill a stockpile.

Items in containers *should* work as inputs to a workshop, or edibles grabbed to eat, or clothing grabbed to wear, as far as I know.

De writes, "I've got bins and bins or masterwork clothing and my dorfs are running around naked."

I have not personally been able to reproduce this, but I can't disprove it either.

(0034787)
Killzemallgod   
2016-03-03 21:40   
This issue is rather major.

When a dwarfs trys to get an item out of a bin/bag it checks if another dwarf is trying to get another item out of the same bin/bag and can causes tasks to be canceled.


I have removed all bins from being used and bags and dwarfs do things so much better.

They have managed to planet almost every field full of plump helm, well they pretty much are going to. Minecarts save the day with being able to dump everything.
(0035010)
Loci   
2016-04-13 13:19   
This bug report claims there is no task targeting the bin; problems with tasks targeting the bin are currently tracked as 0009004.
(0036498)
Altaree   
2017-05-05 08:21   
Dfhack script to empty your bins until this is fixed. Found on github.
-- Empty a bin onto the floor

print('Finding selected item...')
a = dfhack.gui.getSelectedItem()
print('Found ', dfhack.items.getDescription(a,0))

if not a then dfhack.printerr("No item selected!")
end

loc = a.pos

for _,k in pairs(dfhack.items.getContainedItems(a)) do
    print (' ', dfhack.items.getDescription(k,0))
    r = dfhack.items.moveToGround(k,loc)
end

print('Done.')