[14.22] Crash on error: "Trying to make chunk at unreasonable position [58, -262143]"

This subforum contains all the issues which we already resolved.
Post Reply
Arumba
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Sat Aug 29, 2015 6:46 pm
Contact:

[14.22] Crash on error: "Trying to make chunk at unreasonable position [58, -262143]"

Post by Arumba »

After the stream of our Moba-esque multiplayer I let the game run for a while and came back to this crash report:
factorio-current.log
(4.91 MiB) Downloaded 187 times
_autosave3.zip
(33.21 MiB) Downloaded 186 times

Loewchen
Global Moderator
Global Moderator
Posts: 8318
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Crash Report

Post by Loewchen »

Initialization:

Code: Select all

   0.001 2017-02-09 13:33:01; Factorio 0.14.22 (build 25342, win64, steam)
   0.001 Operating system: Windows 7 Service Pack 1
   0.001 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/Arumba/AppData/Roaming/Factorio
   0.001 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.017 System info: [CPU:        Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz, 12 cores, RAM: 32719MB]
   0.018 Display options: [FullScreen: 1] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
   0.018 Available display adapters: 3
   0.018  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 980 Ti {0x05, [0,0], 1920x1080, 32bit, 60Hz}
   0.018  [1]: \\.\DISPLAY2 - NVIDIA GeForce GTX 980 Ti {0x01, [-1920,0], 1920x1080, 32bit, 60Hz}
   0.018  [2]: \\.\DISPLAY3 - NVIDIA GeForce GTX 980 Ti {0x01, [1920,0], 1920x1080, 32bit, 60Hz}
   0.019 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.098 Initialised Direct3D:[0] NVIDIA GeForce GTX 980 Ti; driver: nvd3dumx.dll 21.21.13.7849
   0.101     Video memory size (dedicated video/dedicated system/shared system/available): 6048/0/16103/1665 MB
   0.126 DSound: Starting _dsound_update thread
   0.126 Device reset internal.
   0.126 
   0.127 Desktop composition is active.
   0.128 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: false]
   0.204 Loading mod core 0.0.0 (data.lua)
   0.209 Loading mod base 0.14.22 (data.lua)
   0.297 Checksum for core: 1291735968
   0.297 Checksum for mod base: 786624017
   0.605 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1486665157
   0.605 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1482158515
   0.749 Initial atlas bitmap size is 16384
   0.751 Created atlas bitmap 16384x8536
   1.307 Created atlas bitmap 4096x968
   1.324 Created atlas bitmap 4096x3652
   7.378 Sprites loaded
   7.378 Convert atlas 4096x968 to: trilinear-filtering 
   7.415 Convert atlas 4096x3652 to: mipmap 
   7.953 Loading sounds...
   9.333 Custom inputs active: 0
   9.386 Factorio initialised
 117.868 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:0)
 132.137 Info UDPSocket.cpp:235: Socket closed
 132.138 Joining game 45.56.28.176:34293
 132.138 Info UDPSocket.cpp:33: Opening socket
 132.138 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Ready) to(Connecting)
 132.344 Warning ClientRouter.cpp:115: Received NatPunch from 45.56.28.176:34293 as a client
 132.356 Connection refused
 132.358 Info ClientMultiplayerManager.cpp:177: Quitting multiplayer connection.
 132.358 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Connecting) to(Disconnected)
 132.359 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-user-server-key
 132.642 Info HttpSharedState.cpp:111: Status code: 200
 132.642 Info AuthServerConnector.cpp:132: Received key(U6L5u+X4vTilhqWnQ6+qmw==) for username(arumba) from auth server.
 132.645 Info UDPSocket.cpp:235: Socket closed
 132.645 Joining game 45.56.28.176:34293
 132.645 Info UDPSocket.cpp:33: Opening socket
 132.645 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Ready) to(Connecting)
 132.855 Warning ClientRouter.cpp:115: Received NatPunch from 45.56.28.176:34293 as a client
 132.856 Info ClientSynchronizer.cpp:34: Initialized Synchronizer local peer(1) latency(32).
 132.857 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(Connecting) to(ConnectedWaitingForMap)
 132.857 Info ClientRouter.cpp:219: ConnectionAccepted
 133.856 Info ClientMultiplayerManager.cpp:669: Received mapReadyForDownload
 133.857 Downloading file C:\Users\Arumba\AppData\Roaming\Factorio\temp\mp-download.zip (15764008 B, 31403 blocks)
 133.857 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
 136.904 Finished download (3 s, 15 MB, 5.1 MB/s)
 136.980 Info ClientMultiplayerManager.cpp:650: mapTick(-1) map download finished creating scenario
 136.981 Loading map C:\Users\Arumba\AppData\Roaming\Factorio\temp\mp-download.zip
 136.981 Info ClientMultiplayerManager.cpp:539: MapTick(-1) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
 137.006 Info Scenario.cpp:152: Map version 0.14.22-0
 138.250 Checksum for script C:/Users/Arumba/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 4172627012
 138.510 Loading map C:\Users\Arumba\AppData\Roaming\Factorio\temp\mp-download.zip
 138.530 Info Scenario.cpp:152: Map version 0.14.22-0
 139.712 Checksum for script C:/Users/Arumba/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 4172627012
 139.739 Info ClientMultiplayerManager.cpp:539: MapTick(193020) changing state from(ConnectedLoadingMap) to(TryingToCatchUp)
 139.913 Error GameActionHandler.cpp:2101: Multiplayer desynchronisation: crc test (heuristic) failed for crcTick(193022) serverCRC(1285649520) localCRC(1200537923)
 139.913 Info ClientMultiplayerManager.cpp:539: MapTick(193023) changing state from(TryingToCatchUp) to(DesyncedWaitingForMap)
End:

Code: Select all

20387.450 Info ServerSynchronizer.cpp:539: nextHeartbeatSequenceNumber(495777) removing peer(31).
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-xcajoo\libraries\stackwalker\stackwalker.cpp (906): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-xcajoo\src\util\logger.cpp (337): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-xcajoo\src\util\logger.cpp (391): Logger::logStacktrace
c:\cygwin64\tmp\factorio-xcajoo\src\surface\chunk.cpp (596): Chunk::Chunk
c:\cygwin64\tmp\factorio-xcajoo\src\surface\surface.cpp (1083): Surface::requestToGenerateChunks
c:\cygwin64\tmp\factorio-xcajoo\src\player.cpp (674): Player::generateNeighborChunks
c:\cygwin64\tmp\factorio-xcajoo\src\player.cpp (345): Player::update
c:\cygwin64\tmp\factorio-xcajoo\src\map\map.cpp (1137): Map::update
c:\cygwin64\tmp\factorio-xcajoo\src\game.cpp (144): Game::update
c:\cygwin64\tmp\factorio-xcajoo\src\scenario\scenario.cpp (842): Scenario::update
c:\cygwin64\tmp\factorio-xcajoo\src\mainloop.cpp (761): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-xcajoo\src\mainloop.cpp (630): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-xcajoo\src\util\workerthread.cpp (34): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64>,std::default_delete<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000007748652D)
000000007748652D (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000775BC521)
00000000775BC521 (ntdll): (filename not available): RtlUserThreadStart
20391.450 Error Chunk.cpp:596: Trying to make chunk at unreasonable position [58, -262143]
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-xcajoo\libraries\stackwalker\stackwalker.cpp (906): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-xcajoo\src\util\logger.cpp (337): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-xcajoo\src\util\logger.cpp (391): Logger::logStacktrace
c:\cygwin64\tmp\factorio-xcajoo\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-xcajoo\src\util\crashhandler.cpp (233): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\signal.cpp (516): raise
d:\th\minkernel\crts\ucrt\src\appcrt\startup\abort.cpp (71): abort
c:\cygwin64\tmp\factorio-xcajoo\src\surface\chunk.cpp (596): Chunk::Chunk
c:\cygwin64\tmp\factorio-xcajoo\src\surface\surface.cpp (1083): Surface::requestToGenerateChunks
c:\cygwin64\tmp\factorio-xcajoo\src\player.cpp (674): Player::generateNeighborChunks
c:\cygwin64\tmp\factorio-xcajoo\src\player.cpp (345): Player::update
c:\cygwin64\tmp\factorio-xcajoo\src\map\map.cpp (1137): Map::update
c:\cygwin64\tmp\factorio-xcajoo\src\game.cpp (144): Game::update
c:\cygwin64\tmp\factorio-xcajoo\src\scenario\scenario.cpp (842): Scenario::update
c:\cygwin64\tmp\factorio-xcajoo\src\mainloop.cpp (761): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-xcajoo\src\mainloop.cpp (630): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-xcajoo\src\util\workerthread.cpp (34): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64>,std::default_delete<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000007748652D)
000000007748652D (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000775BC521)
00000000775BC521 (ntdll): (filename not available): RtlUserThreadStart
20394.070 Error CrashHandler.cpp:106: Map tick at moment of crash: 752975
20394.070 Error Util.cpp:77: 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.
Error:

Code: Select all

20391.450 Error Chunk.cpp:596: Trying to make chunk at unreasonable position [58, -262143]

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

Re: [14.22] Crash on error: "Trying to make chunk at unreasonable position [58, -262143]"

Post by Rseding91 »

Do you have any way to reproduce it? It looks like one of the players was teleported to the very maximum edge of the map.
If you want to get ahold of me I'm almost always on Discord.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [14.22] Crash on error: "Trying to make chunk at unreasonable position [58, -262143]"

Post by posila »

Hi, thanks for the report.

I think a player with god controller or ghost controller was teleported to position x=1872 (+-16) and y >= 8388576 or y <= 8388576. Teleporting player with character would crash directly in the lua command.

About 66 seconds before the crash, there was this script error:

Code: Select all

Script event.lua:93: Error in event on_tick: "User isn't connected; can't read character : stack traceback: : 	
...g/Factorio/temp/currently-playing/locale/utils/admin.lua:457: in function 'force_spectators' : 	
...Data/Roaming/Factorio/temp/currently-playing/control.lua:152: in function 'end_round' : 	
...Data/Roaming/Factorio/temp/currently-playing/control.lua:526: in function 'end_game' : 	
...Data/Roaming/Factorio/temp/currently-playing/control.lua:231: in function <...Data/Roaming/Factorio/temp/currently-playing/control.lua:229> : 	[C]: in function 'pcall' : 	
...g/Factorio/temp/currently-playing/locale/utils/event.lua:81: in function <...g/Factorio/temp/currently-playing/locale/utils/event.lua:75>".
As the error happened in clean up after the round, some things were probably left in some invalid state and that eventually might have caused the teleport to invalid location.

Anyway, teleport to invalid location doesn't crash the game anymore in 0.15 :)

zackman0010
Inserter
Inserter
Posts: 36
Joined: Wed May 18, 2016 8:34 pm
Contact:

Re: [14.22] Crash on error: "Trying to make chunk at unreasonable position [58, -262143]"

Post by zackman0010 »

Arumba was using our (3Ra's) scenario for PvP. That bug about not being able to read characters of offline players was because I forgot to add an if player.connected check in part of the end_round code. I fixed that one last night. If that was somehow the cause of the chunk error, then it's been corrected for this particular scenario. Glad to see it won't crash in 0.15, though :D

Post Reply

Return to “Resolved Problems and Bugs”