[2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post your bugs and problems so we can fix them.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

[2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.

1. What did you do?
Due to the issue in the link above, I kept the server running and was the only one connected, playing the game. I was observing Cerys and did not perform any actions during the last minute.

Just before starting the server, I had removed some mods, specifically the problematic Tiber Planet Mod (https://mods.factorio.com/mod/Factorio-Tiberium). It’s important not to misunderstand: I had removed the Tiber mod and started the server several times before, and doing so had never caused the game to crash.

2. What happened?
The game suddenly crashed and closed. As mentioned in the link above, I was testing server-side memory issues, so some problems were expected. However, this error caused crashes on both the server and the client. While a server crash can happen, a client crash of this type is completely new to me since I started playing the game, and I cannot understand it. Therefore, I am submitting this bug report.

3. What did you expect to happen instead? It might be obvious to you, but do it anyway!
There were no warning signs before the crash. It was completely unpredictable.

4. Does it happen always, once, or sometimes?
It seems to occur repeatedly only with the problematic save file.


The save file and log files where the error occurred are provided here. The save file is the last one that was saved, and it seems that the error can be reproduced with this save as well.
https://drive.google.com/file/d/1BuPENC ... drive_link
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

The post where I asked about the problem is as follows:
viewtopic.php?p=682558

I have been experiencing the issue since I removed the following mods.
coloured-tool-icons 0.0.5
AfraidOfTheDark 1.0.31
automatic-underground-pipe-connectors 2.0.11
Better-Beginning 0.4.0
circuit-wire-eraser 1.1.0
NoRespawnGun-SpaceAge 1.18.5
RotateQuickbars 1.2.0
Science_pack_glow 1.0.2
elevated-rails-recolor 1.0.1
vibrant-train-colors 1.2.1
Assembler-Reskin 1.0.3
BrighterEngineers 1.0.0
heat_glow 2.0.3
kry-asteroids-mult 1.1.2
lavafill 1.0.0
space-ship-notifications 1.0.0
StatsGui-HandcraftTimer 0.2.0
Wr_Enhanced_Map_Colors 1.5.9
Belt_Glow 1.3.0
celestial-weather 1.4.0

It’s not certain that removing the mods was the direct cause. The memory issues existed even before the mods were removed.
Last edited by Xeon257 on Thu Oct 09, 2025 6:47 pm, edited 2 times in total.
robot256
Smart Inserter
Smart Inserter
Posts: 1293
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by robot256 »

The save file is very large and I can't download it on mobile data. Would you mind attaching the log file by itself to a forum post?

This error is usually caused by a bug in a mod Lua script that can be corrected by a mod author. The log will show which mod, if any, caused the error.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Thank you very much for your help. Here are the server-side logs.

Code: Select all

.....
 544.844 Info AppManager.cpp:303: Saving to _autosave2947 (non-blocking).
 544.953 Info AsyncScenarioSaver.cpp:177: Saving process PID: 332821
 557.961 Info ChildProcessAgent.cpp:61: Child 332821 exited with return value 0
 557.962 Info AppManager.cpp:304: Saving finished
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (334): writeStacktrace
src/Util/Logger.cpp (379): logStacktrace
src/Util/Logging.cpp (59): logStackTrace
src/Util/Logging.cpp (107): logAndAbortOrThrow
src/Surface/Chunk.cpp (583): Chunk
src/Surface/Surface.cpp (368): getChunk
src/Surface/Surface.cpp (374): getChunk
src/Entity/UpdatableEntity.cpp (280): attachInternal
src/Entity/UpdatableEntity.cpp (137): updatableUpdateChunk
src/Entity/Entity.cpp (983): changePositionWithoutCollisionOrAABBCheck
src/Entity/FlyingRobot.cpp (0): moveTo
src/Entity/FlyingRobot.cpp (0): moveToAndUseEnergy
src/Logistics/RobotMoveIntention.cpp (20): move
src/Logistics/RobotMoveIntention.cpp (9): tryToMove
src/Entity/RobotWithLogisticInterface.cpp (299): updateMovement
src/Entity/RobotWithLogisticInterface.cpp (292): update
src/Entity/LogisticRobot.cpp (207): update
src/Entity/UpdatableEntity.cpp (333): performPlannedUpdate
src/Map/Map.cpp (2493): performPlannedEntityUpdates
src/Map/Map.cpp (1318): updateEntities
src/Map/Map.cpp (1260): update
src/Game.cpp (189): update
src/Scenario/Scenario.cpp (1220): update
src/Scenario/Scenario.cpp (1133): updateStep
src/MainLoop.cpp (1423): gameUpdateStep
src/MainLoop.cpp (1217): gameUpdateLoop
src/MainLoop.cpp (653): mainLoopStepHeadless
src/MainLoop.cpp (408): run
src/CommandLineMultiplayer.cpp (295): hostMultiplayerGameInternal
src/CommandLineMultiplayer.cpp (350): hostCommandLineMultiplayerGame
src/Main.cpp (627): fmain
src/Main.cpp (928): main
0x7713d4c2a1c9
__libc_start_main
_start
0xffffffffffffffff
Stack trace logging done
 701.756 Error Chunk.cpp:583: Trying to make chunk at unreasonable position [-32755, -32769]
 701.756 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
 701.756 Error CrashHandler.cpp:190: Map tick at moment of crash: 106101281
 701.756 Error Util.cpp:95: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
 701.756 Uploading log file
 701.863 Info SystemUtil.cpp:837: Started /media/t7/factorio/bin/x64/factorio; trampoline PID: 333185
============================

Here are the client-side logs.

Code: Select all

3444.107 Verbose Scenario.cpp:371: Map setup finished: 15.159635 seconds.
3444.188 Info ClientMultiplayerManager.cpp:608: UpdateTick(106063025) changing state from(ConnectedLoadingMap) to(TryingToCatchUp)
3485.856 Info ClientMultiplayerManager.cpp:608: UpdateTick(106066689) changing state from(TryingToCatchUp) to(WaitingForCommandToStartSendingTickClosures)
3485.914 Info ClientMultiplayerManager.cpp:608: UpdateTick(106066689) changing state from(WaitingForCommandToStartSendingTickClosures) to(InGame)
3485.947 Info GameActionHandler.cpp:4560: UpdateTick (106066691) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect) 
3492.722 Info ClientSynchronizer.cpp:319: Latency changed to (11)
3497.737 Info ClientSynchronizer.cpp:319: Latency changed to (9)
3522.719 Info ClientSynchronizer.cpp:319: Latency changed to (7)
3527.711 Info ClientSynchronizer.cpp:319: Latency changed to (6)
3587.712 Info ClientSynchronizer.cpp:319: Latency changed to (5)
3592.712 Info ClientSynchronizer.cpp:319: Latency changed to (4)
3637.718 Info ClientSynchronizer.cpp:319: Latency changed to (8)
3662.706 Info ClientSynchronizer.cpp:319: Latency changed to (7)
3667.718 Info ClientSynchronizer.cpp:319: Latency changed to (6)
3717.711 Info ClientSynchronizer.cpp:319: Latency changed to (5)
3722.711 Info ClientSynchronizer.cpp:319: Latency changed to (4)
3767.715 Info ClientSynchronizer.cpp:319: Latency changed to (7)
3792.736 Info ClientSynchronizer.cpp:319: Latency changed to (6)
3822.727 Info ClientSynchronizer.cpp:319: Latency changed to (5)
3832.744 Info ClientSynchronizer.cpp:319: Latency changed to (6)
3872.728 Info ClientSynchronizer.cpp:319: Latency changed to (7)
3892.719 Info ClientSynchronizer.cpp:319: Latency changed to (8)
3913.394 Info ClientSynchronizer.cpp:319: Latency changed to (7)
3953.481 Info ClientSynchronizer.cpp:319: Latency changed to (6)
3983.477 Info ClientSynchronizer.cpp:319: Latency changed to (5)
3988.477 Info ClientSynchronizer.cpp:319: Latency changed to (4)
4003.482 Info ClientSynchronizer.cpp:319: Latency changed to (5)
4063.205 Time travel logging:
3072.663 Scenario is being deleted
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Surface\Chunk.cpp(583): Chunk::Chunk
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Surface\Surface.cpp(374): Surface::getChunk
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Entity\UpdatableEntity.cpp(280): UpdatableEntity::attachInternal
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Entity\Entity.cpp(984): Entity::changePositionWithoutCollisionOrAABBCheck
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Entity\FlyingRobot.cpp(89): FlyingRobot::moveTo
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Entity\FlyingRobot.cpp(120): FlyingRobot::moveToAndUseEnergy
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Entity\RobotWithLogisticInterface.cpp(299): RobotWithLogisticInterface::updateMovement
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Entity\LogisticRobot.cpp(209): LogisticRobot::update
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Map\Map.cpp(2493): Map::performPlannedEntityUpdates
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Map\Map.cpp(1318): Map::updateEntities
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Game.cpp(189): Game::update
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Scenario\Scenario.cpp(1133): Scenario::updateStep
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\MainLoop.cpp(1424): MainLoop::gameUpdateStep
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\MainLoop.cpp(1218): MainLoop::gameUpdateLoop
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional(823): std::_Func_impl_no_alloc<`MainLoop::mainLoopStep'::`2'::<lambda_1>,void>::_Do_call
C:\Users\build\AppData\Local\Temp\factorio-build-BWWLqz\src\Util\WorkerThread.cpp(71): WorkerThread::loop
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\thread(56): std::thread::_Invoke<std::tuple<void (__cdecl RouterBase::*)(void),ClientRouter *>,0,1>
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFADD1EE8D7)
00007FFADD1EE8D7 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFADEC08D9C)
00007FFADEC08D9C (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
4064.910 Error Chunk.cpp:583: Trying to make chunk at unreasonable position [-32755, -32769]
4064.911 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
4064.911 Error CrashHandler.cpp:190: Map tick at moment of crash: 106101281
4064.974 Info CrashHandler.cpp:318: Executable CRC: 1834161053
4064.975 C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
4064.975 C:\WINDOWS\SYSTEM32\ntdll.dll
4064.975 C:\WINDOWS\System32\KERNEL32.DLL
4064.975 C:\WINDOWS\System32\KERNELBASE.dll
4064.975 C:\WINDOWS\System32\WLDAP32.dll
4064.975 C:\WINDOWS\System32\ucrtbase.dll
4064.975 C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\steam_api64.dll
4064.975 C:\WINDOWS\System32\GDI32.dll
4064.975 C:\WINDOWS\System32\ADVAPI32.dll
4064.975 C:\WINDOWS\SYSTEM32\DNSAPI.dll
4064.975 C:\WINDOWS\System32\win32u.dll
4064.975 C:\WINDOWS\System32\msvcrt.dll
4064.975 C:\WINDOWS\System32\gdi32full.dll
4064.975 C:\WINDOWS\System32\sechost.dll
4064.975 C:\WINDOWS\System32\msvcp_win.dll
4064.975 C:\WINDOWS\System32\RPCRT4.dll
4064.975 C:\WINDOWS\System32\USER32.dll
4064.975 C:\WINDOWS\System32\SHELL32.dll
4064.975 C:\WINDOWS\System32\ole32.dll
4064.975 C:\WINDOWS\System32\wintypes.dll
4064.975 C:\WINDOWS\System32\combase.dll
4064.975 C:\WINDOWS\System32\SHLWAPI.dll
4064.975 C:\WINDOWS\System32\IMM32.dll
4064.975 C:\WINDOWS\System32\OLEAUT32.dll
4064.975 C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.26100.5074_none_6ef8625e3dc2500d\gdiplus.dll
4064.975 C:\WINDOWS\System32\SETUPAPI.dll
4064.975 C:\WINDOWS\SYSTEM32\WINMM.dll
4064.975 C:\WINDOWS\System32\WS2_32.dll
4064.975 C:\WINDOWS\System32\CRYPT32.dll
4064.975 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
4064.975 C:\WINDOWS\System32\WINTRUST.dll
4064.975 C:\WINDOWS\System32\imagehlp.dll
4064.975 C:\WINDOWS\SYSTEM32\VERSION.dll
4064.975 C:\WINDOWS\SYSTEM32\cfgmgr32.DLL
4064.975 C:\WINDOWS\System32\NSI.dll
4064.975 C:\WINDOWS\SYSTEM32\MSASN1.dll
4064.975 C:\Program Files (x86)\Steam\gameoverlayrenderer64.dll
4064.975 C:\WINDOWS\System32\PSAPI.DLL
4064.975 C:\WINDOWS\SYSTEM32\windows.storage.dll
4064.975 C:\WINDOWS\System32\SHCORE.dll
4064.975 C:\WINDOWS\SYSTEM32\profapi.dll
4064.975 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
4064.975 C:\Program Files (x86)\Steam\steamclient64.dll
4064.975 C:\Program Files (x86)\Steam\tier0_s64.dll
4064.975 C:\Program Files (x86)\Steam\vstdlib_s64.dll
4064.975 C:\WINDOWS\SYSTEM32\MSWSOCK.dll
4064.975 C:\WINDOWS\SYSTEM32\bcrypt.dll
4064.975 C:\WINDOWS\SYSTEM32\Secur32.dll
4064.976 C:\WINDOWS\SYSTEM32\SSPICLI.DLL
4064.976 C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
4064.976 C:\WINDOWS\System32\bcryptPrimitives.dll
4064.976 C:\WINDOWS\System32\clbcatq.dll
4064.976 C:\WINDOWS\SYSTEM32\amsi.dll
4064.976 C:\WINDOWS\SYSTEM32\USERENV.dll
4064.976 C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.25080.5-0\MpOav.dll
4064.976 C:\WINDOWS\system32\uxtheme.dll
4064.976 C:\WINDOWS\SYSTEM32\mscms.dll
4064.976 C:\WINDOWS\SYSTEM32\icm32.dll
4064.976 C:\WINDOWS\SYSTEM32\hid.dll
4064.976 C:\WINDOWS\SYSTEM32\DEVOBJ.dll
4064.976 C:\WINDOWS\SYSTEM32\XInput1_4.dll
4064.976 C:\WINDOWS\SYSTEM32\inputhost.dll
4064.976 C:\WINDOWS\SYSTEM32\CoreMessaging.dll
4064.976 C:\Windows\System32\dinput8.dll
4064.976 C:\Windows\System32\Windows.Gaming.Input.dll
4064.976 C:\Windows\System32\twinapi.appcore.dll
4064.976 C:\WINDOWS\SYSTEM32\dxgi.dll
4064.976 C:\WINDOWS\SYSTEM32\powrprof.dll
4064.976 C:\WINDOWS\SYSTEM32\UMPDC.dll
4064.976 C:\WINDOWS\SYSTEM32\d3d11.dll
4064.976 C:\WINDOWS\SYSTEM32\d3d9.dll
4064.976 C:\WINDOWS\SYSTEM32\dwmapi.dll
4064.976 C:\WINDOWS\SYSTEM32\dxcore.dll
4064.976 C:\WINDOWS\SYSTEM32\d3dcompiler_47.dll
4064.976 C:\WINDOWS\SYSTEM32\cryptsp.dll
4064.976 C:\WINDOWS\System32\MSCTF.dll
4064.976 C:\WINDOWS\SYSTEM32\textinputframework.dll
4064.976 C:\WINDOWS\SYSTEM32\CoreUIComponents.dll
4064.976 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
4064.976 C:\WINDOWS\SYSTEM32\directxdatabasehelper.dll
4064.976 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\nvldumdx.dll
4064.976 C:\WINDOWS\SYSTEM32\cryptnet.dll
4064.976 C:\WINDOWS\SYSTEM32\wldp.dll
4064.976 C:\WINDOWS\SYSTEM32\drvstore.dll
4064.976 C:\WINDOWS\system32\rsaenh.dll
4064.976 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\nvgpucomp64.dll
4064.976 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\Display.NvContainer\NvMessageBus.dll
4064.976 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\NvMemMapStoragex.dll
4064.977 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\nvwgf2umx.dll
4064.977 C:\WINDOWS\system32\nvspcap64.dll
4064.977 C:\WINDOWS\SYSTEM32\ntmarta.dll
4064.977 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\nvppex.dll
4064.977 C:\WINDOWS\SYSTEM32\dcomp.dll
4064.977 C:\WINDOWS\SYSTEM32\Microsoft.Internal.WarpPal.dll
4064.977 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_901d8cfde13e2b8b\nvd3dumx.dll
4064.977 C:\WINDOWS\System32\MMDevApi.dll
4064.977 C:\WINDOWS\SYSTEM32\avrt.dll
4064.977 C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
4064.977 C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
4064.977 C:\Windows\System32\Windows.UI.dll
4064.977 C:\WINDOWS\system32\explorerframe.dll
4064.977 C:\WINDOWS\System32\fwpuclnt.dll
4064.977 C:\Windows\System32\rasadhlp.dll
4064.977 C:\WINDOWS\system32\schannel.DLL
4064.977 C:\WINDOWS\SYSTEM32\ncrypt.dll
4064.977 C:\WINDOWS\SYSTEM32\NTASN1.dll
4064.977 C:\WINDOWS\system32\ncryptsslp.dll
4064.977 Error Util.cpp:95: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
4074.543 Uploading log file
4074.633 Error CrashHandler.cpp:270: Heap validation: success.
4074.634 Creating crash dump.
4074.866 CrashDump success

=====================================

While investigating the issue, I noticed that Factorio on my computer (client) is also consuming dozens of gigabytes of memory. This seems to be an extension of the memory problem.
robot256
Smart Inserter
Smart Inserter
Posts: 1293
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by robot256 »

Hmm. I forgot that this type of crash does not properly identify if the chunk generation request was created by a mod. Does it always happen when you load the save file you shared? Does it crash in single player?

There might be a mod that is forcing the generation of increasingly distant chunks, and does not stop at the edge of the map properly. That would explain both the increased memory usage and this crash.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Yes, the same problem always occurs. This also seems to explain the excessive memory usage. Even if I identify and remove the problematic mods, I’m not sure how to locate and delete the already improperly generated chunks…
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4233
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by boskid »

I did a quick check of this save file, there are couple of logistic robots that are way outside of where they were supposed to be:
positions
preview of the most north-west robot
As a workaround you can remove all of those robots with a console command:

Code: Select all

/c
  for _,s in pairs(game.surfaces) do
    for _,e in pairs(s.find_entities_filtered{}) do
      if (e.position.x * e.position.x + e.position.y * e.position.y > 10000000000) then
        e.destroy()
      end
    end
  end
Given that those robots are actually flying at a speed of 0.13155 tiles per tick and they managed to travel a distance of 1481454 tiles (since they are flying diagonally), that corresponds to a time period of 11.2 millions ticks, which means they were flying for about 52h. Whatever you did recently is unrelated to what caused them to be in this weird corrupted state. Main question is how they managed to get into that state.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Oh my goodness, thank you so much! I did notice that the logs mentioned a flying robot, but I never imagined it had actually gone that far out. Unfortunately, I hadn’t made any changes to the server around the time the issue occurred, so I have no idea what could have sent a bot all the way out there…

There are a few mods that could potentially affect robot control, but since they’ve been part of my mod set for quite a long time, it’s difficult to pinpoint which one might be responsible. Thank you very much for your help.

Could you please let me know if any invalid chunks were actually generated?
My save doesn’t contain any surfaces that extend that far, so if such problematic chunks exist, it should be relatively easy for me to locate them.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4233
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by boskid »

Hm... i am starting to see where the problem comes from...

One of rouge logistic robots claims to be going to charge, which means it is going towards an aai-signal-sender (which is of type Roboport) at position {-10, 59}, however this entity declares to have no charging stations. Since charging station offsets are usually spaced in a circle, robot tries to compute what is the angle to the charting spot it wants to get, this causes a divide by zero due to lack of charging stations which means the charging spot is computed to be at infinity and so this is where the robots are flying to.

Definitely looks like a game bug since logistic robots are not supposed to be flying to charge at a roboport that has no charging stations.

-- edit:

There were a lot of chunks generated, exactly on the path where those robots were flying. Every chunk they visited had to be generated, or at least created.

Looking at the trail of the roboports it is possible to observe this, a long staircase of created chunks. This will significantly contribute to the memory usage.
10-09-2025, 22-26-03.png
10-09-2025, 22-26-03.png (228.42 KiB) Viewed 425 times
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Ah… come to think of it, I recently set up a science pack transport interrupt system using AAI Signal Sender.

I built the interrupt control circuit on Nauvis and placed Signal Senders on each planet so that spaceships would only travel to planets with available stock.

That must have been the root cause of the issue… It seems there were no issues before because I had the mod installed but wasn’t actually using it.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Lost Robots...
Lost Robots...
20F4BB~1.JPG (252.62 KiB) Viewed 387 times
Looking at the map, it seems that other robots are also continuously trying to move. It seems that simply removing the robots that went far away won’t solve the problem. Why is this happening to me…

My guess is that every time the map is loaded, I get these Lost robots. Should I see this as a matter of mod? I'm about to submit a report.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4233
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by boskid »

No need to submit a bug report, i will just move this topic to bug reports (considering this as a game bug) since it is already partially investigated with details provided.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Thank you for your help. However, I need to say something to my server users and take action… Could you advise me on what I can do?
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4233
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by boskid »

There are not many fixes to be done "right now" that would be permanent. You can remove some logistic robots that are too far using a console command that uses lua api, similarily a console command could be made that goes over all chunks and removes them if they are empty, this would reduce a save file size. Main issue here is that since there is an issue around roboports with no chargers, you effectively have 3 options available to make the issue not reappear again: 1/ wait until the issue is fixed, or 2/ remove all those signal transmitters, or 3/ put those transmitters outside of roboport logistic range, so that no new robots would try to charge at them (logistic robots only charge at roboports from their own network). So far option 3 may be the easiest temporary workaround for you, introducing interesting game twist, + doing the save cleanup (removing rouge robots and removing unnecesary chunks) but this part depends on having commands to do so. If you can write your own commands using lua api then it would be far easier, if not then i will look at this tomorrow.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

Thank you so much for your help. Just identifying the cause has been a huge help! I will try to write a script myself to resolve the issue.
Xeon257
Burner Inserter
Burner Inserter
Posts: 17
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: [2.0.69] Crash "Trying to make chunk at unreasonable position [-32755, -32769]"

Post by Xeon257 »

After discussion, we decided to remove AAI Signal Transmission Mod to completely eliminate the potential issue. Thanks to everyone’s help, I was able to write an appropriate script. I hope this will be helpful to anyone experiencing the same problem. Happy ending!

Code: Select all

/c for _,s in pairs(game.surfaces) do
  local radius = 2000;
  local px = 0;
  local py = 0;
  local i = 0;
  for _, p in pairs(s.find_entities_filtered{type = {"cargo-landing-pad"}}) do
    i = i + 1;
    px = px + p.position.x;
    py = py + p.position.y;
  end
  if i > 0 then
    px = px / i;
    py = py / i;
    game.print(s.name.." X : "..tostring(px).." Y : "..tostring(py))
    for _,e in pairs(s.find_entities_filtered{type = {"construction-robot", "logistic-robot"}}) do
      local bx = e.position.x - px;
      local by = e.position.y - py;
      local distance = math.sqrt((bx * bx) + (by * by));
      if (distance > radius) then
        e.destroy();
      end
    end
    
    for c in s.get_chunks() do
      local cx = (c.x * 32) - px;
      local cy = (c.y * 32) - py;
      local distance = math.sqrt((cx * cx) + (cy * cy));
      if (distance > radius) then
        s.delete_chunk({x = c.x, y = c.y})
      end
    end
  end
end
Post Reply

Return to “Bug Reports”