[2.0.13] Crash when setting player.spidertron_remote_selection

Things that has been reported already before.
Xorimuth
Filter Inserter
Filter Inserter
Posts: 725
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

[2.0.13] Crash when setting player.spidertron_remote_selection

Post by Xorimuth »

I haven't worked out how to reproduce this outside of my mod. The following lines (in spidertron_lib.lua) seem to be causing it

Code: Select all

      local spidertrons_selected = player.spidertron_remote_selection or {}
      table.insert(spidertrons_selected, spidertron)
      player.spidertron_remote_selection = spidertrons_selected
To reproduce:
- Load attached mod
- Start world
- Place spidertron next to car
- Press Enter to enter spidertron
- Get spidertron remote
- Click and drag over spidertron to select it
- Press Enter while in the Spidertron next to the car
- This will trigger the serialisation and deserialisation process in script, which causes it to crash instantly.

Code: Select all

   0.000 2024-10-31 03:52:07; Factorio 2.0.13 (build 79912, mac-x64, steam, space-age)
   0.001 Operating system: macOS 14.6.1
   0.000 Initializing Steam API.
   0.001 Program arguments: "/Users/tomburrows/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio" "--mod-directory" "/Users/tomburrows/Library/Application Support/factorio/mods/" "--instrument-mod" "debugadapter" "--enable-unsafe-lua-debug-api" "--check-unused-prototype-data" 
   0.001 Config path: /Users/tomburrows/Library/Application Support/factorio/config/config.ini
   0.001 Read data path: /Users/tomburrows/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data
   0.001 Write data path: /Users/tomburrows/Library/Application Support/factorio [10785/572204MB]
   0.001 Binaries path: /Users/tomburrows/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
   0.115 System info: [CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz, 16 cores, RAM: 16384 MB]
   0.124 Info ModManager.cpp:262: Found duplicate mod Custom_Planet_Names, using folder version (0.0.1).
   0.133 Info ModManager.cpp:255: Found duplicate mod GhostWarnings, using higher version (1.3.1 > 1.3.0).
   0.133 Info ModManager.cpp:262: Found duplicate mod GhostWarnings, using folder version (1.3.1).
   0.136 Info ModManager.cpp:262: Found duplicate mod IntermodalContainers, using folder version (2.1.0).
   0.140 Info ModManager.cpp:262: Found duplicate mod ModuleInserterSimplified, using folder version (2.1.1).
   0.193 Info ModManager.cpp:255: Found duplicate mod space-exploration-graphics-4, using higher version (0.6.4 > 0.6.3).
   0.196 Info ModManager.cpp:262: Found duplicate mod SpidertronEnhancements, using folder version (1.10.2).
   0.198 Info ModManager.cpp:262: Found duplicate mod stack-inserters, using folder version (1.0.0).
   0.198 Info ModManager.cpp:262: Found duplicate mod VacuumBelts, using folder version (0.6.0).
   0.200 Display options: [FullScreen: true] [VSync: false] [UIScale: manual-display-points (100.0%)] [Native DPI: true] [Screen: 1] [Special: lmW] [Lang: en]
   0.518 Video driver: cocoa
   0.518 Available displays: 1
   0.518  [0]: Color LCD - {[0,0], 1792x1120, SDL_PIXELFORMAT_ARGB8888, 60Hz, 0x4281106(0x40)}
   1.940 Initialised OpenGL:[0] AMD Radeon Pro 5500M OpenGL Engine; driver: 4.1 ATI-5.5.17
   1.940   [Size] Window: 1792x1120, Backbuffer: 3584x2240
   1.940   [Extensions] s3tc:yes; KHR_debug:NO; ARB_clear_texture:NO, ARB_copy_image:NO, ARB_pipeline_statistics_query:NO, ARB_gl_spirv:NO, ARB_ES2_compatibility:yes
   1.940   [Version] 4.1
   1.941 Graphics settings preset: very-high
   1.941   Dedicated video memory size 4080 MB (detected from AMD Radeon Pro 5500M Compute Engine; VendorID: 0x1021e00)
   1.952 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: low-quality]
   1.952                   [Max threads (load/render): 32/16] [Max texture size: 4096] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   2.165 [Audio] Driver:coreaudio, Device:Default device, Depth:16, Channels:2, Frequency:44100
   2.669 Info ModManager.cpp:434: FeatureFlag expansion-shaders = false
   2.669 Info ModManager.cpp:434: FeatureFlag freezing = false
   2.669 Info ModManager.cpp:434: FeatureFlag quality = true
   2.669 Info ModManager.cpp:434: FeatureFlag rail-bridges = false
   2.669 Info ModManager.cpp:434: FeatureFlag segmented-units = false
   2.669 Info ModManager.cpp:434: FeatureFlag space-travel = false
   2.669 Info ModManager.cpp:434: FeatureFlag spoiling = false
   2.674 Loading mod settings debugadapter 2.0.2 (instrument-settings.lua)
   2.696 Loading mod settings debugadapter 2.0.2 (settings.lua)
   2.697 Loading mod settings SpidertronEnhancements 1.10.2 (settings.lua)
   2.698 Loading mod settings WireShortcutX 1.3.0 (settings.lua)
   2.704 Loading mod core 0.0.0 (data.lua)
   2.735 Loading mod settings debugadapter 2.0.2 (instrument-data.lua)
   2.749 Loading mod base 2.0.13 (data.lua)
   5.024 Loading mod quality 2.0.13 (data.lua)
   5.071 Loading mod SpidertronEnhancements 1.10.2 (data.lua)
   5.085 Loading mod WireShortcutX 1.3.0 (data.lua)
   5.096 Loading mod base 2.0.13 (data-updates.lua)
   5.113 Loading mod quality 2.0.13 (data-updates.lua)
   5.403 Loading mod SpidertronEnhancements 1.10.2 (data-updates.lua)
   5.594 Loading mod SpidertronEnhancements 1.10.2 (data-final-fixes.lua)
   5.875 Checksum for core: 3480657504
   5.875 Checksum of base: 2691306720
   5.875 Checksum of debugadapter: 300191892
   5.875 Checksum of quality: 4264147466
   5.875 Checksum of SpidertronEnhancements: 3212241629
   5.875 Checksum of WireShortcutX: 1892842851
   6.103 Warning PrototypeLoader.cpp:199: Value ROOT.character-corpse.spidertron-enhancements-corpse.icon_mipmaps was not used.
   6.105 Warning PrototypeLoader.cpp:199: Value ROOT.spider-vehicle.spidertron-enhancements-dummy-spidertron.icon_mipmaps was not used.
   6.106 Warning PrototypeLoader.cpp:199: Value ROOT.shortcut.spidertron-enhancements-recall-shortcut.icon_mipmaps was not used.
   6.107 Finished checking unused prototype data in 0.004713 seconds. Number of properties that were used: 330294
   6.130 Prototype list checksum: 1770674457
   6.210 Loading sounds...
   6.937 Info PlayerData.cpp:68: Local player-data.json unavailable
   6.937 Info PlayerData.cpp:71: Cloud player-data.json available, timestamp 1730346689
   7.238 Initial atlas bitmap size is 4096
   7.244 Created an atlas bitmap (size 4096x4096) [none]
   7.248 Created an atlas bitmap (size 4096x4096) [none]
   7.251 Created an atlas bitmap (size 4096x4080) [none]
   7.255 Created an atlas bitmap (size 4096x4072) [none]
   7.259 Created an atlas bitmap (size 4096x4088) [none]
   7.263 Created an atlas bitmap (size 4096x4088) [none]
   7.267 Created an atlas bitmap (size 4096x4080) [none]
   7.270 Created an atlas bitmap (size 4096x4032) [none]
   7.273 Created an atlas bitmap (size 4096x4056) [none]
   7.277 Created an atlas bitmap (size 4096x4064) [none]
   7.281 Created an atlas bitmap (size 4096x4092) [none]
   7.286 Created an atlas bitmap (size 4096x4096) [none]
   7.289 Created an atlas bitmap (size 4096x4096) [none]
   7.292 Created an atlas bitmap (size 4096x4096) [none]
   7.295 Created an atlas bitmap (size 4096x4048) [none]
   7.297 Created an atlas bitmap (size 4096x4096) [none]
   7.299 Created an atlas bitmap (size 4096x4096) [none]
   7.301 Created an atlas bitmap (size 4096x4088) [none]
   7.302 Created an atlas bitmap (size 4096x4096) [none]
   7.303 Created an atlas bitmap (size 4096x3996) [none]
   7.303 Created an atlas bitmap (size 4096x4068) [none]
   7.304 Created an atlas bitmap (size 4096x4048) [linear-magnification]
   7.305 Created an atlas bitmap (size 4096x4096) [linear-magnification]
   7.306 Created an atlas bitmap (size 4096x4080) [none]
   7.307 Created an atlas bitmap (size 4096x4088) [none]
   7.307 Created an atlas bitmap (size 4096x4084) [none]
   7.308 Created an atlas bitmap (size 4096x4088) [none]
   7.308 Created an atlas bitmap (size 4096x4088) [none]
   7.308 Created an atlas bitmap (size 4096x4096) [none]
   7.308 Created an atlas bitmap (size 4096x4064) [none]
   7.309 Created an atlas bitmap (size 4096x4096) [none]
   7.309 Created an atlas bitmap (size 4096x1760) [none]
   7.309 Created an atlas bitmap (size 4096x3992) [decal]
   7.309 Created an atlas bitmap (size 4096x4044) [decal]
   7.309 Created an atlas bitmap (size 2048x1636) [decal]
   7.309 Created an atlas bitmap (size 848x592) [decal]
   7.310 Created an atlas bitmap (size 4096x4096) [low-object]
   7.310 Created an atlas bitmap (size 4096x4096) [low-object]
   7.310 Created an atlas bitmap (size 4096x4064) [low-object]
   7.311 Created an atlas bitmap (size 4096x4064) [low-object]
   7.311 Created an atlas bitmap (size 4096x4096) [low-object]
   7.311 Created an atlas bitmap (size 4096x4096) [low-object]
   7.311 Created an atlas bitmap (size 4096x4096) [low-object]
   7.311 Created an atlas bitmap (size 4096x2400) [low-object]
   7.311 Created an atlas bitmap (size 4096x4044) [corpse-decay]
   7.312 Created an atlas bitmap (size 4096x4092) [corpse-decay]
   7.312 Created an atlas bitmap (size 4096x4096) [corpse-decay]
   7.313 Created an atlas bitmap (size 4096x4016) [corpse-decay]
   7.313 Created an atlas bitmap (size 4096x4096) [corpse-decay]
   7.313 Created an atlas bitmap (size 4096x4008) [corpse-decay]
   7.313 Created an atlas bitmap (size 4096x4092) [corpse-decay]
   7.314 Created an atlas bitmap (size 4096x4092) [corpse-decay]
   7.314 Created an atlas bitmap (size 4096x4036) [corpse-decay]
   7.314 Created an atlas bitmap (size 4096x4092) [corpse-decay]
   7.314 Created an atlas bitmap (size 4096x4096) [corpse-decay]
   7.314 Created an atlas bitmap (size 4096x2364) [corpse-decay]
   7.315 Created an atlas bitmap (size 4096x4080) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   7.315 Created an atlas bitmap (size 4096x4048) [mipmap]
   7.315 Created an atlas bitmap (size 4096x3440) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   7.316 Created an atlas bitmap (size 4096x4080) [terrain, mipmap, linear-minification, linear-mip-level]
   7.316 Created an atlas bitmap (size 4096x4096) [terrain, mipmap, linear-minification, linear-mip-level]
   7.316 Created an atlas bitmap (size 4096x3984) [terrain, mipmap, linear-minification, linear-mip-level]
   7.316 Created an atlas bitmap (size 4096x4016) [terrain, mipmap, linear-minification, linear-mip-level]
   7.317 Created an atlas bitmap (size 4096x4096) [terrain, mipmap, linear-minification, linear-mip-level]
   7.317 Created an atlas bitmap (size 4096x3984) [terrain, mipmap, linear-minification, linear-mip-level]
   7.317 Created an atlas bitmap (size 4096x2112) [terrain, mipmap, linear-minification, linear-mip-level]
   7.317 Created an atlas bitmap (size 4096x2960) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   7.317 Created an atlas bitmap (size 4096x1792) [smoke, mipmap, linear-minification, linear-magnification]
   7.317 Created an atlas bitmap (size 4096x3088) [mipmap]
   7.318 Created an atlas bitmap (size 4096x4080) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   7.318 Created an atlas bitmap (size 4096x1024) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   7.319 Created an atlas bitmap (size 4096x4088) [alpha-mask]
   7.320 Created an atlas bitmap (size 4096x4084) [alpha-mask]
   7.320 Created an atlas bitmap (size 4096x2108) [alpha-mask]
   7.324 Created an atlas bitmap (size 4096x4088) [shadow, linear-magnification, alpha-mask]
   7.326 Created an atlas bitmap (size 4096x4096) [shadow, linear-magnification, alpha-mask]
   7.328 Created an atlas bitmap (size 4096x4048) [shadow, linear-magnification, alpha-mask]
   7.331 Created an atlas bitmap (size 4096x4080) [shadow, linear-magnification, alpha-mask]
   7.333 Created an atlas bitmap (size 4096x4084) [shadow, linear-magnification, alpha-mask]
   7.338 Created an atlas bitmap (size 4096x4092) [shadow, linear-magnification, alpha-mask]
   7.340 Created an atlas bitmap (size 4096x4092) [shadow, linear-magnification, alpha-mask]
   7.343 Created an atlas bitmap (size 4096x4092) [shadow, linear-magnification, alpha-mask]
   7.345 Created an atlas bitmap (size 4096x4088) [shadow, linear-magnification, alpha-mask]
   7.345 Created an atlas bitmap (size 4096x4092) [shadow, linear-magnification, alpha-mask]
   7.346 Created an atlas bitmap (size 4096x4084) [shadow, linear-magnification, alpha-mask]
   7.347 Created an atlas bitmap (size 4096x4092) [shadow, linear-magnification, alpha-mask]
   7.347 Created an atlas bitmap (size 4096x3984) [shadow, linear-magnification, alpha-mask]
   7.347 Created an atlas bitmap (size 4096x4088) [shadow, linear-magnification, alpha-mask]
   7.348 Created an atlas bitmap (size 4096x4064) [shadow, linear-magnification, alpha-mask]
   7.348 Created an atlas bitmap (size 4096x4048) [shadow, linear-magnification, alpha-mask]
   7.348 Created an atlas bitmap (size 4096x4036) [shadow, linear-magnification, alpha-mask]
   7.348 Created an atlas bitmap (size 4096x4048) [shadow, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 4096x4088) [shadow, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 4096x4032) [shadow, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 4096x4080) [shadow, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 4096x4076) [shadow, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 4096x936) [shadow, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 4096x4096) [shadow, mipmap, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 2048x1264) [shadow, mipmap, linear-magnification, alpha-mask]
   7.349 Created an atlas bitmap (size 2048x272) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   7.349 Loading 3D bitmaps.
   7.463 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   7.477 Atlases were not loaded from disk cache.
   7.480 Parallel sprite loader initialized (threads: 13, bitmaps: 4625)
  23.169 Sprites loaded
  28.374 Atlas cache saved in 5.204506 seconds.
  28.639 Generated mipmaps (4) for atlas [36] of size 4096x4096   
  28.666 Generated mipmaps (4) for atlas [37] of size 4096x4096   
  28.689 Generated mipmaps (4) for atlas [38] of size 4096x4064   
  28.715 Generated mipmaps (4) for atlas [39] of size 4096x4064   
  28.740 Generated mipmaps (4) for atlas [40] of size 4096x4096   
  28.764 Generated mipmaps (4) for atlas [41] of size 4096x4096   
  28.791 Generated mipmaps (4) for atlas [42] of size 4096x4096   
  28.810 Generated mipmaps (4) for atlas [43] of size 4096x2400   
  28.836 Generated mipmaps (3) for atlas [56] of size 4096x4080   
  28.859 Generated mipmaps (3) for atlas [57] of size 4096x4048   
  28.882 Generated mipmaps (3) for atlas [58] of size 4096x3440   
  28.905 Generated mipmaps (3) for atlas [59] of size 4096x4080   
  28.927 Generated mipmaps (3) for atlas [60] of size 4096x4096   
  28.952 Generated mipmaps (3) for atlas [61] of size 4096x3984   
  28.975 Generated mipmaps (3) for atlas [62] of size 4096x4016   
  28.999 Generated mipmaps (3) for atlas [63] of size 4096x4096   
  29.021 Generated mipmaps (3) for atlas [64] of size 4096x3984   
  29.037 Generated mipmaps (3) for atlas [65] of size 4096x2112   
  29.056 Generated mipmaps (3) for atlas [66] of size 4096x2960   
  29.073 Generated mipmaps (3) for atlas [67] of size 4096x1792   
  29.124 Generated mipmaps (3) for atlas [68] of size 4096x3088   
  29.201 Generated mipmaps (5) for atlas [69] of size 4096x4080   
  29.250 Generated mipmaps (5) for atlas [70] of size 4096x1024   
  29.275 Generated mipmaps (3) for atlas [97] of size 4096x4096   
  29.287 Generated mipmaps (3) for atlas [98] of size 2048x1264   
  29.293 Custom mipmaps uploaded (2158)
  29.305 Video memory usage: 1367.61 MB (Atlases: 1356.07 MB, Textures: 11.54 MB)
  29.311 Custom inputs active: 9
  29.481 Factorio initialised
  29.517 Steam Storage Quota: 16194/23841
  31.805 Loading map /Users/tomburrows/Library/Application Support/factorio/saves/_autosave3.zip: 1289003 bytes.
  31.836 Loading level.dat: 273653 bytes.
  31.837 Info Scenario.cpp:178: Map version 2.0.13-1
  31.862 Loading blueprint storage: Local timestamp 1729562388, Cloud timestamp 1729562385
  31.867 Loading script.dat: 1280 bytes.
  31.902 Checksum for script __level__/control.lua: 1994267839
  31.923 Checksum for script __debugadapter__/control.lua: 2218675566
  31.980 Checksum for script __SpidertronEnhancements__/control.lua: 3205535451
  32.009 Checksum for script __WireShortcutX__/control.lua: 1661124301
  32.011 Applying migration: Spidertron Enhancements: 2.0.0.lua
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 (58): logStackTrace
src/Util/Logging.cpp (97): logAndAbortOrThrow
src/Util/Logging.cpp (89): logAndAbortOrThrow
src/Graphics/SpriteDrawOrder.cpp (111): setup
src/Graphics/SpriteDrawOrder.hpp (58): SpriteDrawOrder
src/Graphics/SpriteDrawOrder.hpp (57): SpriteDrawOrder
src/Graphics/DrawOrderProvider.hpp (31): create<SpriteDrawOrder, const Sprite &, const RenderParameters &, const MapPosition &, RealOrientation, const Vector &, double &, double &, DrawingFlags &, Color, int, int, short, short>
src/Graphics/DrawQueue.cpp (1032): drawInfoIcon
src/Input/SpidertronRemoteSelection.cpp (135): drawInChart
src/Graphics/ChartRenderer.cpp (420): prepare
src/Gui/MinimapBase.cpp (103): prepare
src/Gui/MinimapBase.cpp (63): paint
src/Gui/MinimapGui.cpp (172): paintComponent
libraries/Agui/Widget/Widget.cpp (299): paint
libraries/Agui/Widget/Frame.cpp (131): recursivePaintChildrenInternal
libraries/Agui/Widget/Layout.cpp (86): recursivePaintChildrenInternal
libraries/Agui/Widget/Frame.cpp (143): recursivePaintChildrenInternal
libraries/Agui/Widget/Layout.cpp (86): recursivePaintChildrenInternal
libraries/Agui/Widget/Frame.cpp (143): recursivePaintChildrenInternal
libraries/Agui/Widget/Widget.cpp (1749): recursivePaintChildren
libraries/Agui/Widget/Widget.cpp (1773): recursivePaintChildrenInternal
libraries/Agui/Widget/Widget.cpp (1749): recursivePaintChildren
libraries/Agui/Widget/Widget.cpp (1773): recursivePaintChildrenInternal
libraries/Agui/Gui.cpp (909): render
src/Graphics/GuiRenderer.cpp (70): prepare
src/GlobalContext.cpp (1412): prepareRenderGui
src/MainLoop.cpp (1138): prepare
src/MainLoop.cpp (705): mainLoopStep
src/MainLoop.cpp (412): run
src/Main.cpp (1348): fmain
src/Main.cpp (1370): main
0x7ff81a3bc344
Stack trace logging done
  76.610 Error SpriteDrawOrder.cpp:113: Invalid sprite reference. Sprite: <EMPTY> {x = 0, y = 0, w = 0, h = 0}, 0x00007ff22a453a60
  76.610 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
  76.611 Error CrashHandler.cpp:190: Map tick at moment of crash: 12757
  76.611 Uploading log file
  76.823 Info SystemUtil.cpp:871: Started /Users/tomburrows/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio; trampoline PID: 41244
  76.823 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.
Attachments
SpidertronEnhancements_1.10.2.zip
(398.82 KiB) Downloaded 14 times
factorio-current.log
(18.58 KiB) Downloaded 16 times
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Genhis
Factorio Staff
Factorio Staff
Posts: 766
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [2.0.13] Crash when setting player.spidertron_remote_selection

Post by Genhis »

Thanks for the report. I can't reproduce it, it could be a duplicate of 117889.
Xorimuth
Filter Inserter
Filter Inserter
Posts: 725
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: [2.0.13] Crash when setting player.spidertron_remote_selection

Post by Xorimuth »

Confirmed it is fixed now :D
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Post Reply

Return to “Duplicates”