[1.0.0] Factorio crashes when creating a cutscene with a waypoint beyond the map limit

Bugs that are actually features.
Post Reply
asher_sky
Inserter
Inserter
Posts: 44
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

[1.0.0] Factorio crashes when creating a cutscene with a waypoint beyond the map limit

Post by asher_sky »

I've been playing around with cutscenes lately and was wondering what happens when I make a waypoint far beyond the map limit. Today I found out that the game crashes.

steps to reproduce:
1. load or start a new save game
2. run the following command:

Code: Select all

game.players["PLAYER_NAME"].set_controller{
  type = defines.controllers.cutscene,
  waypoints = {{position={2000000,0},transition_time=1,time_to_wait=600,zoom=.25}},
  start_position = game.players["PLAYER_NAME"].position
}
3. Factorio crashes

I realize creating a cutscene like that one is unlikely to ever happen in "normal" play because cutscenes are rarely utilized and nobody in their right mind should make a waypoint 2 million tiles away, but regardless I figured I'd make a bug report.
Here is factorio-current.log:

Code: Select all

   0.000 2020-10-29 21:47:32; Factorio 1.0.0 (build 54889, mac, steam)
   0.000 Operating system: macOS 10.15.7
   0.000 Program arguments: "/Users/asher/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio" 
   0.000 Read data path: /Users/asher/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data
   0.000 Write data path: /Users/asher/Library/Application Support/factorio [49261/476282MB]
   0.000 Binaries path: /Users/asher/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
   0.044 System info: [CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz, 4 cores, RAM: 16384 MB]
   0.044 Display options: [FullScreen: 0] [VSync: 1] [UIScale: custom (100.0%)] [Native DPI: 0] [Screen: 255] [Special: lmW] [Lang: en]
   0.110 Available displays: 1
   0.111  [0]: Color LCD - {[0,0], 1280x800, SDL_PIXELFORMAT_ARGB8888, 60Hz, 0x4280a80(0x01)}
   0.164 Initialised OpenGL:[0] Intel(R) Iris(TM) Graphics 6100; driver: 4.1 INTEL-14.7.8
   0.164   [Extensions] s3tc:yes; KHR_debug:NO; ARB_clear_texture:NO, ARB_copy_image:NO
   0.164   [Version] 4.1
   0.164 Graphics settings preset: integrated-gpuhigh
   0.164   Dedicated video memory size 1536 MB (detected from Intel(R) Iris(TM) Graphics 6100; VendorID: 0x1024500)
   0.301 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 25%] [DXT: low-quality] [Color: 32bit]
   0.301                   [Max threads (load/render): 32/4] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: sTDCWT] [B:0,C:0,S:100]
   0.395 [Audio] Backend:default; Depth:16, Channel:2, Frequency:44100; MixerQuality:linear
   0.656 Info ModManager.cpp:253: Found duplicate mod aai-programmable-vehicles, using higher version (0.6.8 > 0.6.6).
   0.662 Info ModManager.cpp:253: Found duplicate mod aai-programmable-vehicles, using higher version (0.6.13 > 0.6.8).
   0.677 Info ModManager.cpp:253: Found duplicate mod aai-programmable-vehicles, using higher version (0.6.14 > 0.6.13).
   0.690 Info ModManager.cpp:253: Found duplicate mod aai-signal-transmission, using higher version (0.3.18 > 0.3.13).
   0.860 Info ModManager.cpp:253: Found duplicate mod Clockwork, using higher version (0.18.5 > 0.18.4).
   0.884 Info ModManager.cpp:253: Found duplicate mod Dectorio, using higher version (0.10.9 > 0.10.7).
   1.107 Info ModManager.cpp:253: Found duplicate mod Power Armor MK3, using higher version (0.2.18 > 0.2.16).
   1.108 Info ModManager.cpp:253: Found duplicate mod Power Armor MK3, using higher version (0.2.20 > 0.2.18).
   1.118 Info ModManager.cpp:253: Found duplicate mod RPGsystem, using higher version (0.18.49 > 0.18.46).
   1.120 Info ModManager.cpp:253: Found duplicate mod RPGsystem, using higher version (1.0.50 > 0.18.49).
   1.125 Error ModManager.cpp:910: Mod package read error. File /Users/asher/Library/Application Support/factorio/mods/SeaBlockPack_0.2.11.zip/info.json not found
   1.184 Loading mod core 0.0.0 (data.lua)
   1.309 Loading mod base 1.0.0 (data.lua)
   1.721 Loading mod base 1.0.0 (data-updates.lua)
   1.907 Checksum for core: 2630831588
   1.907 Checksum of base: 3509992273
   2.140 Prototype list checksum: 3301461508
   2.236 Loading sounds...
   2.508 Info PlayerData.cpp:70: Local player-data.json unavailable
   2.508 Info PlayerData.cpp:73: Cloud player-data.json available, timestamp 1604032818
   2.797 Initial atlas bitmap size is 16384
   2.818 Created atlas bitmap 16384x16344 [none]
   2.821 Created atlas bitmap 16384x13216 [none]
   2.821 Created atlas bitmap 8192x4208 [decal]
   2.822 Created atlas bitmap 16384x5600 [low-object, linear-minification]
   2.822 Created atlas bitmap 8192x3760 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   2.822 Created atlas bitmap 16384x5920 [terrain, mipmap, linear-minification, linear-mip-level]
   2.823 Created atlas bitmap 4096x3216 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   2.823 Created atlas bitmap 4096x1856 [smoke, mipmap, linear-minification, linear-magnification]
   2.823 Created atlas bitmap 4096x3120 [mipmap]
   2.823 Created atlas bitmap 4096x2336 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   2.823 Created atlas bitmap 2048x224 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   2.823 Created atlas bitmap 8192x1428 [alpha-mask]
   2.826 Created atlas bitmap 16384x4704 [shadow, linear-magnification, alpha-mask]
   2.826 Created atlas bitmap 4096x1312 [shadow, mipmap, linear-magnification, alpha-mask]
   2.826 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: NO/NO. 
   4.589 Parallel Sprite Loader initialized (threads: 3)
  23.270 Sprites loaded
  23.742 Generated mipmaps (4) for atlas [3] of size 16384x5600   
  23.863 Generated mipmaps (3) for atlas [4] of size 8192x3760   
  24.375 Generated mipmaps (3) for atlas [5] of size 16384x5920   <total: 510.71, render: 11.97, copy-to-host: 157.46, convert: 331.04, update: 9.68>
  24.419 Generated mipmaps (3) for atlas [6] of size 4096x3216   
  24.458 Generated mipmaps (3) for atlas [7] of size 4096x1856   
  24.496 Generated mipmaps (3) for atlas [8] of size 4096x3120   
  24.551 Generated mipmaps (5) for atlas [9] of size 4096x2336   
  24.572 Generated mipmaps (3) for atlas [13] of size 4096x1312   
  24.574 Custom mipmaps uploaded.
  24.649 Factorio initialised
  99.617 Loading blueprint storage: Local timestamp 1604031012, Cloud timestamp 1604031011
  99.760 Loading level.dat: 1104128 bytes.
  99.761 Info Scenario.cpp:187: Map version 1.0.0-0
  99.778 Loading blueprint storage: Local timestamp 1604031012, Cloud timestamp 1604031011
  99.830 Checksum for script /Users/asher/Library/Application Support/factorio/temp/currently-playing/control.lua: 3931528263
 173.676 Time travel logging:
 117.281 Player 0 ran command: game.players["asher_sky"].set_controller{   type = defines.controllers.cutscene,   waypoints = {{position={2000000,0},transition_time=1,time_to_wait=600,zoom=.25}},   start_position = game.players[player_index].position }
 173.658 Player 0 ran command: game.players["asher_sky"].set_controller{   type = defines.controllers.cutscene,   waypoints = {{position={2000000,0},transition_time=1,time_to_wait=600,zoom=.25}},   start_position = game.players["asher_sky"].position }
Factorio crashed. Generating symbolized stacktrace, please wait ...
#1  0x000000010dfd78b2 in Logger::logStacktrace(StackTraceInfo*) + 0x12
#2  0x000000010d01fbf0 in Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 0x180
#3  0x000000010df4b6bc in Chunk::Chunk(Surface&, ChunkPosition const&) + 0x22c
#4  0x000000010ced545a in MapGenerationManager::request(Surface&, ChunkPosition const&, ChunkGeneratedStatus::Enum) + 0x6a
#5  0x000000010d097f33 in Surface::requestToGenerateAndActivateChunk(ChunkPosition const&, bool, bool) + 0xa3
#6  0x000000010dcce1c3 in Player::generateAndActivateNeighborChunks() + 0xe3
#7  0x000000010db7fb32 in Player::update() + 0x82
#8  0x000000010db7dbb8 in Map::updateEntities() + 0x108
#9  0x000000010d3a95ed in Game::update() + 0x2d
#10 0x000000010dd21643 in Scenario::update() + 0x5b3
#11 0x000000010db2991c in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) + 0x6fc
#12 0x000000010db27651 in MainLoop::gameUpdateLoop(MainLoop::HeavyMode) + 0x2c1
#13 0x000000010e016a54 in WorkerThread::loop() + 0x84
#14 0x000000010e4efb8e in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (WorkerThread::*)(), WorkerThread*> >(void*) + 0x3e
#15 0x00007fff7343d109 in _pthread_start + 0x94
Stack trace logging done
 173.704 Error Chunk.cpp:737: Trying to make chunk at unreasonable position [62496, -4]
Logger::writeStacktrace skipped.
 173.704 Error CrashHandler.cpp:189: Map tick at moment of crash: 1805
 173.704 Error Util.cpp:97: 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.

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

Re: [1.0.0] Factorio crashes when creating a cutscene with a waypoint beyond the map limit

Post by Loewchen »

It's intentionally throwing so you can fix your script.
Trying to make chunk at unreasonable position [62496, -4]

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [1.0.0] Factorio crashes when creating a cutscene with a waypoint beyond the map limit

Post by kovarex »

Yea, not a bug, but safety mechanism.

asher_sky
Inserter
Inserter
Posts: 44
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

Re: [1.0.0] Factorio crashes when creating a cutscene with a waypoint beyond the map limit

Post by asher_sky »

I thought that might be the case :) Thanks

Post Reply

Return to “Not a bug”