[Rseding91] Single stack item deadlock chained inserters with stack bonu

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

[Rseding91] Single stack item deadlock chained inserters with stack bonu

Post by Muppet9010 »

When 2 inserters with stack bonus are chained together they can become deadlocked when handling single stack items. This only happens to single stack items and seems to be related to the fact they are placed on the ground if not actively wanted by anything by inserters. Whereas stackable items are held in hand by the inserter.


Setup
In the below screenshot ignore the lack of power, that's just to get things positioned.
setup
setup
error.PNG (608.88 KiB) Viewed 3686 times
Step 1: have an inserter with stack bonus try to unload multiple single stack items sequentially into the same tile. Seen in row 1 and 2 in image
Step 2: add a second inserter with stack bonus to try and pick up from the tile with the items placed on it. It will wait indefinitely.


Example Save game
Attached is a save game example of the bug in action. Base game with no mods to reproduce in 16.20.
The deadlock can be seen occurring in the save game below.
deadlock occuring in example save game
deadlock occuring in example save game
example.PNG (442.29 KiB) Viewed 3678 times
It also seems to be possible to occur if the first inserter is running faster than the second one. In this example save game the deadlock occurred after 5-10 inserter load actions without external input.
To clear the deadlock pickup the items between the 2 inserters (framed by the belt pointing at it).
Attachments
single stack item bug.zip
single stack item bug example
(1.52 MiB) Downloaded 132 times

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Single stack item deadlock chained inserters with stack bonu

Post by impetus maximus »

couldn't reproduce this. the second inserter just grabs the item from the first, then lastly grabs the item off the ground.
[edit]ok i see, it only happens with artillery shells.

User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Re: Single stack item deadlock chained inserters with stack bonu

Post by Muppet9010 »

quick video made showing it attached, had to zip the mp4 to get it uploaded.
Attachments
Factorio 2018-01-28 20-09-22-556.zip
demo video (zipped)
(20.38 MiB) Downloaded 141 times

User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Re: Single stack item deadlock chained inserters with stack bonu

Post by Muppet9010 »

Oops say your edit after doing reply.
It seems to happen to any single stack count entity as I originally hit when using the universal pallet mod with loading & unloading pallets which are single stack items.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Single stack item deadlock chained inserters with stack bonu

Post by impetus maximus »

yeah, stack size seems to be messing with the inserter stack logic.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Single stack item deadlock chained inserters with stack bonu

Post by impetus maximus »

happens with stack sizes of 10 (infinity chest) with a stack inserter with full bonus.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Single stack item deadlock chained inserters with stack bonu

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”