Skip to content

Crash when pasting multiple loaders in editor mode #53

Description

@LiteralGenie

What kind of issue is this?

  • Compatibility
  • Locale (names, descriptions, unknown keys)
  • Graphical
  • Crash
  • Other

What is the problem?

Copy-pasting multiple loaders causes a crash when...

  • in editor mode
  • and in remote view
  • and copy pasting multiple loaders
Error while running event loader-utils::on_built_entity (ID 6)
__loader-utils__/control.lua:304: attempt to index a nil value
stack traceback:
	__loader-utils__/control.lua:304: in function <__loader-utils__/control.lua:283>
 144.134 Info AppManager.cpp:353: Deleting active scenario.
 215.525 Loading level.dat: 621286 bytes.
 215.525 Info Scenario.cpp:154: Map version 2.0.76-0
 215.588 Checksum for script __level__/control.lua: 3792629764
 215.589 Checksum for script __perel__/control.lua: 2990204855
 215.590 Checksum for script __loader-utils__/control.lua: 819201067
 229.761 Error MainLoop.cpp:1468: Exception at tick 843: The mod Loader Utilities (1.1.9) caused a non-recoverable error.
Please report this error to the mod author.

Steps to reproduce

  1. Enter /editor mode.
  2. Place 2+ loaders
  3. Enter remote view (tab)
  4. Copy-paste the loaders

Additional context

Screencast_20260613_073520.mp4

Log file

log file
   0.000 2026-06-13 07:35:10; Factorio 2.0.76 (build 84451, linux64, full, space-age)
   0.018 Operating system: Linux (Ubuntu 22.04)
   0.018 Program arguments: "[redacted]/factorio/bin/x64/factorio" 
   0.018 Config path: [redacted]/factorio/config/config.ini
   0.018 Read data path: [redacted]/factorio/data
   0.018 Write data path: [redacted]/factorio [200159/1876193MB]
   0.018 Binaries path: [redacted]/factorio/bin
   0.024 System info: [CPU: 12th Gen Intel(R) Core(TM) i7-12700K, 20 cores, RAM: 128548 MB]
   0.024 Environment: DISPLAY=:0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=plasma XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.036 Display options: [FullScreen: true] [VSync: true] [UIScale: automatic (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
   0.055 Video driver: x11
   0.055 Available displays: 1
   0.055  [0]: Mi TV 30" - {[0,0], 2560x1600, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.336 Initialised OpenGL:[0] NVIDIA GeForce RTX 3090/PCIe/SSE2; driver: 3.3.0 NVIDIA 580.126.09
   0.336   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes, ARB_pipeline_statistics_query:yes, ARB_gl_spirv:yes, ARB_ES2_compatibility:yes
   0.336   [Version] 3.3
   0.365 Graphics settings preset: very-high
   0.365   Dedicated video memory size 24822 MB (detected from NVIDIA GeForce RTX 3090; VendorID: 0x10de; DeviceID: 0x2204)
   0.465 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   0.466                   [Max threads (load/render): 32/20] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   0.476 [Audio] Driver:pulseaudio, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   0.602 Info ModManager.cpp:449: FeatureFlag expansion-shaders = false
   0.602 Info ModManager.cpp:449: FeatureFlag freezing = false
   0.602 Info ModManager.cpp:449: FeatureFlag quality = false
   0.602 Info ModManager.cpp:449: FeatureFlag rail-bridges = false
   0.602 Info ModManager.cpp:449: FeatureFlag segmented-units = false
   0.602 Info ModManager.cpp:449: FeatureFlag space-travel = false
   0.602 Info ModManager.cpp:449: FeatureFlag spoiling = false
   0.609 Loading mod settings perel 1.1.9 (settings.lua)
   0.610 Loading mod settings loader-utils 1.1.9 (settings.lua)
   0.611 Loading mod settings loader-utils 1.1.9 (settings-final-fixes.lua)
   0.615 Loading mod core 0.0.0 (data.lua)
   0.626 Loading mod base 2.0.76 (data.lua)
   0.715 Loading mod perel 1.1.9 (data.lua)
   0.721 Loading mod base 2.0.76 (data-updates.lua)
   0.728 Loading mod loader-utils 1.1.9 (data-final-fixes.lua)
   0.769 Checksum for core: 4187927925
   0.769 Checksum of base: 1879415942
   0.769 Checksum of perel: 576961540
   0.769 Checksum of loader-utils: 1369854503
   0.889 Prototype list checksum: 3495992633
   0.910 Loading sounds...
   1.004 Info PlayerData.cpp:64: Local player-data.json available, timestamp 1781350510
   1.004 Info PlayerData.cpp:71: Cloud player-data.json unavailable
   1.005 Post-data load graphics options: [Light occlusion: no]
   1.138 Initial atlas bitmap size is 16384
   1.156 Created an atlas bitmap (size 16384x16384) [none]
   1.156 Created an atlas bitmap (size 16384x12652) [none]
   1.156 Created an atlas bitmap (size 16384x7424) [low-object]
   1.156 Created an atlas bitmap (size 16384x12096) [corpse-decay]
   1.156 Created an atlas bitmap (size 8192x4352) [decal]
   1.157 Created an atlas bitmap (size 8192x5632) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.157 Created an atlas bitmap (size 4096x1632) [smoke, mipmap, linear-minification, linear-magnification]
   1.157 Created an atlas bitmap (size 16384x6288) [terrain, mipmap, linear-minification, linear-mip-level]
   1.157 Created an atlas bitmap (size 4096x2960) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   1.157 Created an atlas bitmap (size 4096x3104) [mipmap]
   1.157 Created an atlas bitmap (size 8192x2560) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   1.157 Created an atlas bitmap (size 8192x5168) [alpha-mask]
   1.170 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
   1.170 Created an atlas bitmap (size 4096x1268) [shadow, linear-magnification, alpha-mask]
   1.170 Created an atlas bitmap (size 8192x2352) [shadow, mipmap, linear-magnification, alpha-mask]
   1.170 Created an atlas bitmap (size 4096x176) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   1.170 Loading 3D bitmaps.
   1.179 Texture processor created (4096). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   1.284 Parallel sprite loader initialized (threads: 19, bitmaps: 4656)
   6.749 Sprites loaded
   6.770 Generated mipmaps (4) for atlas [2] of size 16384x7424   
   6.779 Generated mipmaps (3) for atlas [5] of size 8192x5632   
   6.782 Generated mipmaps (3) for atlas [6] of size 4096x1632   
   6.797 Generated mipmaps (3) for atlas [7] of size 16384x6288   
   6.799 Generated mipmaps (3) for atlas [8] of size 4096x2960   
   6.830 Generated mipmaps (3) for atlas [9] of size 4096x3104   
   6.851 Generated mipmaps (5) for atlas [10] of size 8192x2560   
   6.854 Generated mipmaps (3) for atlas [14] of size 8192x2352   
   6.870 Custom mipmaps uploaded (2366)
   6.882 Video memory usage: 1599.11 MB (Atlases: 1587.57 MB, Textures: 11.54 MB)
   6.890 Custom inputs active: 3
   6.936 Factorio initialised
   6.938 Info AuthServerConnector.cpp:620: Performing TLS check.
   6.938 Info HttpSharedState.cpp:57: Downloading https://auth.factorio.com/tls-check/success
   7.330 Info AuthServerConnector.cpp:653: TLS check success.
   7.330 Info HttpSharedState.cpp:57: Downloading https://updater.factorio.com/updater/get-available-versions?username=<private>&token=<private>&apiVersion=2
   7.587 Some core updates would be reachable if experimental updates were enabled.
   7.587 0 packages available to download (experimental updates disabled).
  13.997 Loading level.dat: 621286 bytes.
  13.997 Info Scenario.cpp:154: Map version 2.0.76-0
  14.062 Checksum for script __level__/control.lua: 3792629764
  14.063 Checksum for script __perel__/control.lua: 2990204855
  14.064 Checksum for script __loader-utils__/control.lua: 819201067
  32.999 Error MainLoop.cpp:1468: Exception at tick 1131: The mod Loader Utilities (1.1.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event loader-utils::on_built_entity (ID 6)
__loader-utils__/control.lua:304: attempt to index a nil value
stack traceback:
	__loader-utils__/control.lua:304: in function <__loader-utils__/control.lua:283>
  40.159 Info AppManager.cpp:353: Deleting active scenario.
  51.994 Info HttpSharedState.cpp:57: Downloading https://mods.factorio.com/api/mods?page_size=max&full=True&version=2.0.76&lang=en&is_space_age=true
  63.170 Loading level.dat: 621286 bytes.
  63.170 Info Scenario.cpp:154: Map version 2.0.76-0
  63.234 Checksum for script __level__/control.lua: 3792629764
  63.235 Checksum for script __perel__/control.lua: 2990204855
  63.235 Checksum for script __loader-utils__/control.lua: 819201067
  93.678 Error MainLoop.cpp:1468: Exception at tick 1819: The mod Loader Utilities (1.1.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event loader-utils::on_built_entity (ID 6)
__loader-utils__/control.lua:304: attempt to index a nil value
stack traceback:
	__loader-utils__/control.lua:304: in function <__loader-utils__/control.lua:283>
 106.082 Info AppManager.cpp:353: Deleting active scenario.
 121.801 Loading level.dat: 621286 bytes.
 121.801 Info Scenario.cpp:154: Map version 2.0.76-0
 121.866 Checksum for script __level__/control.lua: 3792629764
 121.867 Checksum for script __perel__/control.lua: 2990204855
 121.868 Checksum for script __loader-utils__/control.lua: 819201067
 142.604 Error MainLoop.cpp:1468: Exception at tick 1237: The mod Loader Utilities (1.1.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event loader-utils::on_built_entity (ID 6)
__loader-utils__/control.lua:304: attempt to index a nil value
stack traceback:
	__loader-utils__/control.lua:304: in function <__loader-utils__/control.lua:283>
 144.134 Info AppManager.cpp:353: Deleting active scenario.
 215.525 Loading level.dat: 621286 bytes.
 215.525 Info Scenario.cpp:154: Map version 2.0.76-0
 215.588 Checksum for script __level__/control.lua: 3792629764
 215.589 Checksum for script __perel__/control.lua: 2990204855
 215.590 Checksum for script __loader-utils__/control.lua: 819201067
 229.761 Error MainLoop.cpp:1468: Exception at tick 843: The mod Loader Utilities (1.1.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event loader-utils::on_built_entity (ID 6)
__loader-utils__/control.lua:304: attempt to index a nil value
stack traceback:
	__loader-utils__/control.lua:304: in function <__loader-utils__/control.lua:283>
 231.058 Info AppManager.cpp:353: Deleting active scenario.
 240.163 Quitting: user-quit.
 240.381 Goodbye

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions