[posila] 1000 construction robots stuck !

This subforum contains all the issues which we already resolved.
fregate84
Fast Inserter
Fast Inserter
Posts: 235
Joined: Sun Jun 22, 2014 10:56 am
Contact:

[posila] 1000 construction robots stuck !

Post by fregate84 »

I was preparing my base for 0.15, so I choose to stop all productions.

And I discovered that I have about 1000 construction robots stuck. I don't understand why they can't go to sleep.

ScreenShot001.jpg
ScreenShot001.jpg (126.13 KiB) Viewed 8128 times
ScreenShot002.jpg
ScreenShot002.jpg (19.35 KiB) Viewed 8128 times
Y - IlotsTrain unlimited v14.21g.zip
(29.96 MiB) Downloaded 190 times
User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: 1000 construction robots stuck !

Post by Smarty »

place some storage chests that will most likely fix it
fregate84
Fast Inserter
Fast Inserter
Posts: 235
Joined: Sun Jun 22, 2014 10:56 am
Contact:

Re: 1000 construction robots stuck !

Post by fregate84 »

they are lot of it if you open the save. lot of them are free !
ScreenShot002.jpg
ScreenShot002.jpg (354.42 KiB) Viewed 8116 times
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: 1000 construction robots stuck !

Post by daniel34 »

Smarty wrote:place some storage chests that will most likely fix it
There are lots of empty storage chests and free slots in the roboport.

It is a huge network with > 1700 roboports all connected, and I don't see any remaining ghosts anywhere on the map. No idea what the robots are waiting for.
quick links: log file | graphical issues | wiki
Rseding91
Factorio Staff
Factorio Staff
Posts: 14671
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 1000 construction robots stuck !

Post by Rseding91 »

The robots are in an invalid state but looking at the logic I don't see how they would have gotten into that invalid state. They have tile ghost targets but are internally set to a state of "waiting for the logistic network to tell me what to do next" so they don't go rebuild the tile ghosts.

Do you have any way to reproduce them getting stuck like this? Maybe a save before they got stuck and a general idea about what you might have done to get them like this?
If you want to get ahold of me I'm almost always on Discord.
User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: 1000 construction robots stuck !

Post by Smarty »

fregate84 wrote:they are lot of it if you open the save. lot of them are free !
daniel34 wrote:
Smarty wrote:place some storage chests that will most likely fix it
There are lots of empty storage chests and free slots in the roboport.

It is a huge network with > 1700 roboports all connected, and I don't see any remaining ghosts anywhere on the map. No idea what the robots are waiting for.
Whoops my bad sorry.

I didnt open the save. :oops:
fregate84
Fast Inserter
Fast Inserter
Posts: 235
Joined: Sun Jun 22, 2014 10:56 am
Contact:

Re: 1000 construction robots stuck !

Post by fregate84 »

Rseding91 wrote: Do you have any way to reproduce them getting stuck like this? Maybe a save before they got stuck and a general idea about what you might have done to get them like this?
No idea to reproduce. I look to my save game, and this but is present on my 40 last hour of gaming ... (total 250).

I haven't the bug on my savegame before used of the mod CpeConcreteer(https://mods.factorio.com/mods/cpeospho ... Concreteer) . But I'm not sure that this mod created the problem.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: 1000 construction robots stuck !

Post by mophydeen »

perhaps:

- you place concrete ghost
- construction robots take off to place concrete
- you place concrete manually
- construction robot is confused x 1000
fregate84
Fast Inserter
Fast Inserter
Posts: 235
Joined: Sun Jun 22, 2014 10:56 am
Contact:

Re: 1000 construction robots stuck !

Post by fregate84 »

mophydeen wrote:perhaps:

- you place concrete ghost
- construction robots take off to place concrete
- you place concrete manually
- construction robot is confused x 1000
I try that on my save, but no more robots was stuck.

Rseding91, do you have a magic command to destroy/unblock thoses robots ?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: 1000 construction robots stuck !

Post by Nexela »

Destroying them is easy. you will lose all your construction robots in the air and the items it is carrying (unless you expand on this code to account for that)

Code: Select all

/c 
for _, surface in pairs(game.surfaces) do
  for _, bot in pairs(surface.find_entities_filtered{type = "construction-robot"}) do
    bot.destroy()
  end
end
Loewchen
Global Moderator
Global Moderator
Posts: 9611
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: 1000 construction robots stuck !

Post by Loewchen »

Moved to Pending.
User avatar
ThaPear
Fast Inserter
Fast Inserter
Posts: 226
Joined: Fri May 30, 2014 8:05 am
Contact:

Re: [posila] 1000 construction robots stuck !

Post by ThaPear »

I have the same issue, the bots near the roboport I'm standing next to won't build the tiles a bit to the top right.
Roboport
Roboport and Tiles
I have attached my save file.
I have attached my mods as well, but none of them influence the bots directly, so they should not cause the issue.
Attachments
mods.zip
(14.24 KiB) Downloaded 151 times
Factory 01.zip
(14.19 MiB) Downloaded 167 times
Aeternus
Filter Inserter
Filter Inserter
Posts: 835
Joined: Wed Mar 29, 2017 2:10 am
Contact:

Re: [posila] 1000 construction robots stuck !

Post by Aeternus »

Not sure if you use mods but if yes then I can imagine a mod update having removed the item type that the bots need to fill the ghosts, while leaving the entity in the world exist as is. The bots would still be targeting the ghost type but since the "pick up item x" to go build that ghost is invalid, the internal logic could kick them back to "ask the logistics net to tell me what to do next". Suggests a small oversight in the code designed to handle mod updates/changes on savegames - bots that have a pickup order that the update invalidates, need to have their current target cleared.
Just a thought, but logically, this makes sense to me. The item that the bots want to pick became unavailable while the building ghosts persisted.
posila
Factorio Staff
Factorio Staff
Posts: 5409
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila] 1000 construction robots stuck !

Post by posila »

Thanks for the report.
It should be finally fixed for 0.15.23
rorror
Fast Inserter
Fast Inserter
Posts: 241
Joined: Fri Nov 21, 2014 9:02 pm
Contact:

Re: 1000 construction robots stuck !

Post by rorror »

Had a few robots stuck in my single player today. (0.15.28) But with my portalble roboport,
(
mophydeen wrote:perhaps:

- you place concrete ghost
- construction robots take off to place concrete
- you place concrete manually
- construction robot is confused x 1000

This seems about right.
But in my case a few extra steps involved.

- deconstructed tons of belts with items on it, and robots take off
- place ghost ontop of the belts that are still marked for deconstruction
- construction robots take off to place items from blueprint
- inventory gets full (robots can't get in)
- removed some ghots / removed the markes for deconstruction (while robots still in the air, and some stopt responding (the onces that wanted to place down the items for the removed ghost, while there where items still marked for deconstruction on that spot.. ))
- construction robot is confused ( also after my inventory was empty again, needed to grab them out of the air)

posila wrote:Thanks for the report.
It should be finally fixed for 0.15.23
=( nope
posila
Factorio Staff
Factorio Staff
Posts: 5409
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila] 1000 construction robots stuck !

Post by posila »

Do you have save with these confused robots. If so, create new topic in bug reports and post it there please.

Even though OP suspected the reported issue had something to do with building concrete over concrete ghosts it wasn't the case. It was caused by some robots being removed from the network due to a roboport losing power. The removed robots then were transfered into a new network, and the bug was in this transfer. Robots ended up with valid ghost target, but in invalid state which caused them not to follow their construction job.
Post Reply

Return to “Resolved Problems and Bugs”