2 filter inserters deadlock because one has target full

Bugs that are actually features.
nubnax
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 26, 2024 7:02 pm
Contact:

2 filter inserters deadlock because one has target full

Post by nubnax »

What did you do?
I set up an assembler that's set to produce 2 items, gears and pipes. All the outputs are done with inserters who have a filter whitelist for a specific item of the process (metal, gear, pipe). The assembler has "set recipe" activated and with the help of 2 decider combinators a signal is sent to produce the item with less items on the reader belt segments
The belts have conditions set that they block if all 3 belts output belts (iron, pipes, steel - steel isn't relevant for the bug) don't have 4 items on the reader belt segment.

What happened?
1. Either the pipes or the gear belt fills up which stops that one inserter from dropping its item because of "target full"
2. This stops the other filter inserter.
3. Which means the reader belt segment status does not change anymore
4. Which fills up the assembler's internal buffer and it stops working
5. complete deadlock

What did you expect to happen instead? It might be obvious to you, but do it anyway!
I expected the second filter inserter to continue its job and not stop working, just because the first filter inserter can't get rid of its item.

Does it happen always, once, or sometimes?
yes, it might take some time for the setup to run until one of the belts fills enough but once the back-filling occured the above mentioned sequence happens every time.
I provided a save file where the deadlock already happened. If the belts are emptied and the system is started again the back-filling occurs some time later and the inserters stop working.
As far as I can tell this does not happen with inserters that have no filter set.
Attachments
bug report.zip
(3.62 MiB) Downloaded 10 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14269
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 2 filter inserters deadlock because one has target full

Post by Rseding91 »

Thanks for the report however that is working as intended. You must empty the output inventory trash items before it will continue extracting from the normal result.
If you want to get ahold of me I'm almost always on Discord.
nubnax
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 26, 2024 7:02 pm
Contact:

Re: 2 filter inserters deadlock because one has target full

Post by nubnax »

The issue is, that one filter inserter has the "target full" state and the other gets stuck in "waiting for source items" while the assembler has "output full".

The second inserter is "waiting for source item" even though the assembler complains that the output is full with the items that inserter says it is waiting for.
Last edited by nubnax on Sat Oct 26, 2024 8:24 pm, edited 1 time in total.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14269
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 2 filter inserters deadlock because one has target full

Post by Rseding91 »

You must remove the pipes before the inserter is allowed to remove the gears.
10-26-2024, 16-24-41.png
10-26-2024, 16-24-41.png (558.13 KiB) Viewed 202 times
If you want to get ahold of me I'm almost always on Discord.
nubnax
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 26, 2024 7:02 pm
Contact:

Re: 2 filter inserters deadlock because one has target full

Post by nubnax »

Thanks.
Post Reply

Return to “Not a bug”