[Rseding] [0.14.20] Crash when starting base/supply scenario with mods

This subforum contains all the issues which we already resolved.
jendefer
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Nov 10, 2016 11:44 pm
Contact:

[Rseding] [0.14.20] Crash when starting base/supply scenario with mods

Post by jendefer »

I tried to start a Custom scenario game and Factorio crashed. That was the first time I ever tried to open a Custom scenario. The problem happened with 0.14.19, so I updated to 0.14.20 to see if that helped, and the crash still happened. I tried a couple more times and it crashed each time. The mods I have enabled are "Long Reach" and "Peace Mod". "Homeworld" is currently disabled since it doesn't work with 0.14. I tried again with all the mods turned off and the scenario loaded! It also loaded with "Long Reach" turned on. So it now seems to me that the crash happens when "Peace Mod" is turned on, though I don't know why they would interact that way.

Play->Custom scenario->base/supply

Code: Select all

0.000 Program arguments: "/.../Library/Application Support/Steam/steamapps/common/Factorio/factorio.app" 
   0.000 Read data path: /.../Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data
   0.000 Write data path: /.../Library/Application Support/factorio
   0.000 Binaries path: /.../Library/Application Support/Steam/steamapps/common
   0.038 System info: [CPU: Intel(R) Core(TM)2 Duo CPU     E8135  @ 2.66GHz, 2 cores, RAM: 4096MB]
   0.056 Display options: [FullScreen: 1] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
   0.056 Available display adapters: 1
   0.056  [0]: resolution 1920x1200px at [0,0]
   0.056 Create display on adapter 0. Size 1280x720 at position [310, 222].
   1.346 Initialised OpenGL:[0] NVIDIA GeForce 9400 OpenGL Engine; driver: 2.1 NVIDIA-10.0.51 310.90.10.05b12
   2.244 Total system memory is low (4294967296). Setting graphics preset to MacWithLowRAM.
   2.244 Graphics options: [Graphics quality: low] [Video memory usage: high] [Light scale: 100%] [DXT: auto]
   2.595 Loading mod core 0.0.0 (data.lua)
   2.727 Loading mod base 0.14.20 (data.lua)
   3.561 Loading mod peacemod 0.1.3 (data.lua)
   3.663 Loading mod long-reach 0.0.6 (data-final-fixes.lua)
   3.763 Checksum for core: 1291735968
   3.763 Checksum for mod base: 786624017
   3.763 Checksum for mod long-reach: 3674062281
   3.763 Checksum for mod peacemod: 3808001365
   4.403 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1478657383
   4.403 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1477092326
  33.644 Initial atlas bitmap size is 8192
  33.647 Created atlas bitmap 8192x3705
  33.650 Created atlas bitmap 4096x4092
  33.650 Created atlas bitmap 4096x672
  33.650 Created atlas bitmap 4096x804
  33.651 Created atlas bitmap 4096x1044
  63.581 Sprites loaded
  63.581 Convert atlas 4096x4092 to: compressed 
  64.289 Convert atlas 4096x672 to: compressed 
  64.374 Convert atlas 4096x804 to: trilinear-filtering 
  64.441 Convert atlas 4096x1044 to: mipmap 
  64.554 Loading sounds...
  68.060 Custom inputs active: 0
  68.340 Factorio initialised
  74.222 Info PrototypeMigrationList.cpp:87: Activating migration base/2015-10-16_Factorio_0.13.0.json
  74.223 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-04-22_Factorio_0.13.0.json
  74.223 Warning PrototypeMigrationList.cpp:176: "discharge-defense-equipment" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
  74.223 Warning PrototypeMigrationList.cpp:176: "personal-laser-defense-equipment" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
  74.223 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-14_Factorio_0.13.0.json
  74.223 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-21_Factorio_0.13.0.json
  74.223 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-25_Factorio_0.13.0.json
  74.223 Warning PrototypeMigrationList.cpp:176: "grenade" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
  74.223 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-27_Factorio_0.13.0.json
  74.472 Applying migration: Base Mod: 2015-07-02_Factorio_0.12.0.lua
  74.501 Error CrashHandler.cpp:230: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x00000001006e8f42 in Logger::logStacktrace(StackTraceInfo*) (in factorio) (Logger.cpp:391)
#1  0x00000001006dc709 in CrashHandler::writeStackTrace() (in factorio) (CrashHandler.cpp:106)
#2  0x00000001006dc69e in CrashHandler::SignalHandler(int) (in factorio) (CrashHandler.cpp:235)
#3  0x00007fff8664552a in 0x00007fff8664552a
#4  0x00007fff611add08 in 0x00007fff611add08
#5  0x0000000100495c08 in LuaContext::runLuaCommand(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Player*) (in factorio) (ScopedCallback.hpp:20)
#6  0x000000010049593e in MigrationList::applyMigration(Mod const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Map*, Scenario*) (in factorio) (MigrationList.cpp:85)
#7  0x0000000100495445 in MigrationList::applyMissingMigrations(MigrationList const&, Map*, Scenario*) (in factorio) (MigrationList.cpp:59)
#8  0x0000000100044ba9 in ScenarioPrototype::loadFactory(ScenarioLocation const&, bool) (in factorio) (ScenarioPrototype.cpp:55)
#9  0x0000000100043e17 in AppManager::createGame(ScenarioExecutionContext const&, std::__1::function<void ()>) (in factorio) (AppManager.cpp:360)
#10 0x000000010004df2e in InNewGameDialog::process(AppManager*) (in factorio) (functional:1847)
#11 0x00000001000412e3 in AppManager::process() (in factorio) (vector:640)
#12 0x000000010051fb42 in MainLoop::mainLoopStep(WorkerThread&, MainLoop::HeavyMode) (in factorio) (MainLoop.cpp:277)
#13 0x000000010051d19e in MainLoop::run(boost::filesystem::path const&, boost::filesystem::path const&, bool, bool, bool, std::__1::function<void ()>, boost::filesystem::path const&, MainLoop::HeavyMode) (in factorio) (MainLoop.cpp:208)
#14 0x00000001005197b4 in _al_mangled_main (in factorio) (Main.cpp:808)
#15 0x0000000100a826b7 in +[AllegroAppDelegate app_main:] (in factorio) (osx_app_delegate.m:229)
#16 0x00007fff8eec2e64 in 0x00007fff8eec2e64
#17 0x00007fff862e399d in 0x00007fff862e399d
#18 0x00007fff862e391a in 0x00007fff862e391a
#19 0x00007fff862e1351 in 0x00007fff862e1351
  80.458 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.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5412
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14.20] Crash when starting base/supply scenario with mods

Post by Klonan »

Thanks for the report,
I have managed to reproduce the crash,
https://mods.factorio.com/mods/cullyn/peacemod

The mod is doing something with this function:

Code: Select all

if removeMilitaryTech==true then
	for i=1,6 do
		data.raw["technology"]["bullet-damage-" .. i] = nil
	end
	for i=1,6 do
		data.raw["technology"]["bullet-speed-" .. i] = nil
	end
	for i=1,20 do
		data.raw["technology"]["follower-robot-count-" .. i] = nil
	end
	for i=1,5 do
		data.raw["technology"]["combat-robot-damage-" .. i] = nil
        
	end
	for i=1,6 do
		data.raw["technology"]["gun-turret-damage-" .. i] = nil
	end
	for i=1,6 do
		data.raw["technology"]["laser-turret-damage-" .. i] = nil
	end
	for i=1,6 do
		data.raw["technology"]["laser-turret-speed-" .. i] = nil
	end
	for i=1,5 do
		data.raw["technology"]["rocket-damage-" .. i] = nil
	end
	data.raw["technology"]["combat-robotics"] = nil
	data.raw["technology"]["combat-robotics-2"] = nil
	data.raw["technology"]["combat-robotics-3"] = nil
	data.raw["technology"]["personal-laser-defense-equipment"] = nil
	data.raw["technology"]["discharge-defense-equipment"] = nil
	data.raw["technology"]["land-mine"] = nil
	data.raw["technology"]["tanks"] = nil
	data.raw["technology"]["laser"] = nil
    data.raw["technology"]["cluster-grenade"] = nil
	data.raw["technology"]["explosive-rocketry"] = nil
	data.raw["technology"]["turrets"] = nil
	data.raw["technology"]["laser-turrets"] = nil
	
	RemoveRecipe("pistol")
	RemoveRecipe("basic-bullet-magazine")
	RemoveRecipe("submachine-gun")
	RemoveRecipe("piercing-bullet-magazine")
	RemoveRecipe("grenade")
	RemoveRecipe("poison-capsule")
	RemoveRecipe("slowdown-capsule")
	RemoveRecipe("rocket-launcher")
	
	for index, prerequisite in pairs(data.raw["technology"]["military-3"].prerequisites) do
		if prerequisite == "laser" then
			data.raw["technology"]["military-3"].prerequisites[index] = nil
		end
	end
	
end
When the command doesn't run, the scenario doesn't crash
Rseding91
Factorio Staff
Factorio Staff
Posts: 16000
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding] [0.14.20] Crash when starting base/supply scenario with mods

Post by Rseding91 »

Fixed for 0.15. The part about it crashing - it still errors because the mod removes content that the scenario requires but it tells you what the error is instead of a CTD.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”