[2.0.17] [SA] Stack inserter behaves wierdly with hand size overrides

Post your bugs and problems so we can fix them.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 361
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

[2.0.17] [SA] Stack inserter behaves wierdly with hand size overrides

Post by Hares »

Context: I am designing clocking-safe rail system for delivering fruits on Gleba with minimized raw fruit spoilage. This is the crane cell design I came up with:
11-14-2024, 16-43-55.png
11-14-2024, 16-43-55.png (599.48 KiB) Viewed 356 times
The settings on the stack inserter are:
  • Hand size: 10
  • Circuit network: Set filters
  • Filtering mode: Whitelist
  • Spoilage priority: Not set
Circuit network provides either fruit+spoilage signals, or nothing. The signal is sent when specific conditions are met, most notably -- the number of fruit items on belts. To prevent inserters having items in their hand, I set the hand size to be a factor of fruit stack size -- 10, which means, that if the crane started with full stacks of fruits (which it does), stack inserters will be always able to grab a full hand of things.

However, I noticed that sometimes stack inserters are left with items in hand in quantities other than 10. Furthermore, the sum of number of items in hand AND number of items in the crane is also not divisible by 10 -- in the video attached it's 4 in one hand, 0 in other hand, and 0 in crane. Which means that either fruits disappear (which they don't), or cranes created a non-full stack of items (which isn't possible at least because these cranes are deployed outside of plantation field), or inserter made a non-full-hand item pickup.
Click here to expand the video
Blueprint:


Note that for this setup to replicate the behavior, 3 of 4 cranes (all but top-left) were loaded with 2 full stacks of jellynut. Reproduced multiple times, with these exact numbers reproduced 100% of attempts.
Attachments
2024-11-14 16-36-37.mp4
(12.53 MiB) Downloaded 18 times
robot256
Filter Inserter
Filter Inserter
Posts: 930
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.17] [SA] Stack inserter behaves wierdly with hand size overrides

Post by robot256 »

Another potentially related report of a stack inserter getting stuck when items are available: 118138
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 361
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: [2.0.17] [SA] Stack inserter behaves wierdly with hand size overrides

Post by Hares »

robot256 wrote: Thu Nov 14, 2024 2:18 pm Another potentially related report of a stack inserter getting stuck when items are available: 118138
I checked that topic before posting this and it's not related.
robot256
Filter Inserter
Filter Inserter
Posts: 930
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.17] [SA] Stack inserter behaves wierdly with hand size overrides

Post by robot256 »

I know it's not a duplicate, but when they mess with the code to fix one they will probably find what is causing the other as well.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 361
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: [2.0.17] [SA] Stack inserter behaves wierdly with hand size overrides

Post by Hares »

FactorioBot wrote: Tue Nov 26, 2024 4:53 pm Bugfixes:
  • Fixed stack inserter would start dropping partial held stack when waking up by control behavior. (122439)
Similar issue reported in 2.0.20 & fixed in 2.0.22.
The issue mentioned in this topic, however, reproduces on a newer version. Same steps-to-reproduce.
Post Reply

Return to “Bug Reports”