[Rseding91] [2.0.11] Stack inserter deadlocks with containers

This subforum contains all the issues which we already resolved.
kj16609
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Mar 01, 2015 7:50 pm
Contact:

[Rseding91] [2.0.11] Stack inserter deadlocks with containers

Post by kj16609 »

When having a mixed stack belt it is possible for the stack inserter placing items into a container such as an assembler to deadlock. The inserter is stuck attempting to pickup more items and never returns to functioning.
Broken.mp4
Video of stack inserter deadlocking
(7.83 MiB) Downloaded 245 times
This caused me a few issues when I finally upgraded to using stack inserters as portions of my base would stop functioning due to reaching this locked up state.

This state can also be reached from machines on Gleba when the items inside of them turn into spoilage, Causing the machine to not be able to output anymore if you have a single stack inserter as the only inserter and if the spoilage doesn't exactly line up to the required amount for the stack inserter to function.
It was driving me mad trying to figure out why the inserters were randomly deadlocking and most of my factory grinding to a halt.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14890
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.11] Stack inserter deadlocks with containers

Post by Rseding91 »

Thanks for the report however that is working correctly. If you can not feed enough items to the stack inserter it will wait until you eventually do. If you don't want that behavior, don't use stack inserters.
If you want to get ahold of me I'm almost always on Discord.
kj16609
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Mar 01, 2015 7:50 pm
Contact:

Re: [2.0.11] Stack inserter deadlocks with assemblers

Post by kj16609 »

The thing that makes me think this is a bug is that the stack inserter will keep picking up items when going from one belt to another, Even if the belt has mixed stacks. Which is not what matches when going from a belt to an assembler.

I guess to clarify. The issue is that the stack inserter will not continue to pickup more items from the belt and insert into the assembler, Despite the status of the inserter being "Waiting for more items".

Edit: I've also renamed the topic title to be more accurate to the issue
Rseding91
Factorio Staff
Factorio Staff
Posts: 14890
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [boskid] [2.0.11] Stack inserter deadlocks with containers

Post by Rseding91 »

I see now, I was looking at the wrong inserter in the video.
If you want to get ahold of me I'm almost always on Discord.
kj16609
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Mar 01, 2015 7:50 pm
Contact:

Re: [boskid] [2.0.11] Stack inserter deadlocks with containers

Post by kj16609 »

Thanks for looking at it again. I could of probably made it a bit more obvious what the issue was, Sorry.
robot256
Smart Inserter
Smart Inserter
Posts: 1062
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [boskid] [2.0.11] Stack inserter deadlocks with containers

Post by robot256 »

Another potentially related report of a stack inserter getting stuck when items are available: 121423
malventano
Filter Inserter
Filter Inserter
Posts: 355
Joined: Thu Apr 27, 2017 4:31 pm
Contact:

Re: [boskid] [2.0.11] Stack inserter deadlocks with containers

Post by malventano »

Rseding91 wrote: Mon Oct 28, 2024 1:06 pm I see now, I was looking at the wrong inserter in the video.
Just ran into this. Here is more amplifying info in case it has not been fully reporo'd:
- Appears when assembler is feeding from both sides of a mixed belt with a stack inserter. Stack inserter will be stuck 'waiting for more items' even if there are items within reach on the belt.
- An assembler feeding from only one side of the belt seems to be ok (yellow ammo in below pic is ok).
- If I swap from bulk inserters to stack inserters feeding the grenade assemblers in the below pic, they will eventually deadlock similar to the red ammo assembler.
- I thought this had something to do with differing height stacks, but have seen it happen with a fully saturated (stacked) belt.
- I believe the hang occurs if the assembler asks for a second item in the middle of the stack inserter picking up the first.
20241124-225208-.png
20241124-225208-.png (2.72 MiB) Viewed 2481 times
If more is needed let me know and I can try and create a reliable repro scenario / save.
Allyn Malventano
---
Want to improve fluid flow between pumps / across longer distances? Try my Manifolds mod.
irisfofs
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Dec 02, 2024 7:37 pm
Contact:

Re: [boskid] [2.0.11] Stack inserter deadlocks with containers

Post by irisfofs »

I think the inserters are stuck because the assembler is over the automated insertion limit for the item in their hand. In your screenshot, the stack inserter is holding steel, but the assembler has 15 steel, which is over the automated insertion limit for that configuration.

What confuses me is why the inserter picked up steel in the first place. Normally, inserters don't pick up items that the machine doesn't need, and it just filled the assembler to over capacity. It also stops picking up more steel (it doesn't end up with 16 in hand), so it's clearly aware the machine is over capacity, but seemingly only after it picked up the steel.

Jammed state:
12-02-2024, 13-12-13.png
12-02-2024, 13-12-13.png (224.23 KiB) Viewed 2301 times
In my testing, it seems to happen much more often (maybe only?) when the stack size on a belt varies. Even one-time switches (like going from 1 to 4 from switching to stack inserters upstream) trigger it. I suspect occasional stack size changes (from upstream non-stack inserters, construction / deconstruction, or similar) are the main cause of deadlocks in real factories.

I made a blueprint that reproduces the issue (tested with max stack size research). After belts are saturated:
- Switching the splitter input priority from left to right (increasing stack size) will jam the inserter. After removing the items stuck in hand, it works normally.
- Swapping from right to left (decreasing stack size) doesn't seem to jam it.
- Removing input priority (mixing stack sizes) will jam the inserter repeatedly.

12-02-2024, 13-29-14.png
12-02-2024, 13-29-14.png (617.35 KiB) Viewed 2301 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14890
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.11] Stack inserter deadlocks with containers

Post by Rseding91 »

Thanks for the blueprint to reproduce it. I was able to figure out the issue and it's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
malventano
Filter Inserter
Filter Inserter
Posts: 355
Joined: Thu Apr 27, 2017 4:31 pm
Contact:

Re: [Rseding91] [2.0.11] Stack inserter deadlocks with containers

Post by malventano »

I believe this was fully resolved in .22/.23.
Allyn Malventano
---
Want to improve fluid flow between pumps / across longer distances? Try my Manifolds mod.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14890
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.11] Stack inserter deadlocks with containers

Post by Rseding91 »

malventano wrote: Wed Dec 04, 2024 5:50 pm I believe this was fully resolved in .22/.23.
It is in “resolved for next release” which has not gone out yet.
If you want to get ahold of me I'm almost always on Discord.
malventano
Filter Inserter
Filter Inserter
Posts: 355
Joined: Thu Apr 27, 2017 4:31 pm
Contact:

Re: [Rseding91] [2.0.11] Stack inserter deadlocks with containers

Post by malventano »

Rseding91 wrote: Wed Dec 04, 2024 5:51 pm
malventano wrote: Wed Dec 04, 2024 5:50 pm I believe this was fully resolved in .22/.23.
It is in “resolved for next release” which has not gone out yet.
Understood. Seems odd though as I had a setup that appeared to be triggering this bug, and on .23 I've switched that setup back over to stack inserters and have not yet repro'd after several days.
Allyn Malventano
---
Want to improve fluid flow between pumps / across longer distances? Try my Manifolds mod.
Post Reply

Return to “Resolved Problems and Bugs”