The code contains a typo, which causes a crash even before interpreter reaches the erroneous line of code.
code
What's weird for me is that it keeps coming up with new ways to crash with the same code.
Code: Select all
require "defines"
require "util"
print("Mod file is being processed")
function init(force)
print("initting1")
global.counts=global.counts or {}
global.counts[force]=global.counts[force] or {}
local force=force;
print("Initting2")
if (global.counts[force]["unl-flame-thrower-damage"]==nil then--this line causes ctd without even being run. It needs ")".
end
end
script.on_configuration_changed(
function()
print("migrating")
for _,f in pairs(game.forces) do
print("migrating2")
if (#(f.players)~=nil) then
print("migrating3")
init(f.name)
end
end
end)
First crashlog
If you keep poking it, it'll dump this:
0.000 2015-10-21 21:31:49; Factorio 0.12.12 (Build 17122, linux64)
0.000 Operating system: Linux
0.000 Program arguments: "./factorio" "--load-game" "12"
0.000 Read data path: /home/d/Programs/f/factorio/data
0.000 Write data path: /home/d/Programs/f/factorio
0.000 Binaries path: /home/d/Programs/f/factorio/bin
0.019 Available display adapters: 1
0.019 [0]: resolution 1366x768px at [0,0]
0.019 Create display on adapter 0. Size 1266x668 at position [40, 32]. Monitor 0
0.057 Initialised OpenGL:[0] Mesa DRI Intel(R) Haswell Mobile ; driver: 3.0 Mesa 10.1.3
0.095 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Screen: 255]
0.178 Loading mod core 0.0.0 (data.lua)
0.180 Loading mod base 0.12.12 (data.lua)
0.237 Loading mod UnlimitedUpgrades 0.2.0 (data.lua)
0.278 Loading mod UnlimitedUpgrades 0.2.0 (data-updates.lua)
0.772 Initial atlas bitmap size is 8192
0.790 Created atlas bitmap 8192x8191
0.791 Created atlas bitmap 8192x7004
9.356 Factorio initialised
9.357 Loading map /home/d/Programs/f/factorio/saves/12.zip
9.372 Info Scenario.cpp:123: Map version 0.12.11-2
11.675 Applying migration: Unlimited Upgrades: unl_0.1.0.lua
11.678 Applying migration: Unlimited Upgrades: unl_0.1.1.lua
All done and migrated
terminate called after throwing an instance of 'lua_longjmp*'
terminate called recursively
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0 0x7fdee7f1bd40 in ?? at ??:0
#1 0x7fdee7f1bcc9 in ?? at ??:0
#2 0x7fdee7f1f0d8 in ?? at ??:0
#3 0xd448dd in __gnu_cxx::__verbose_terminate_handler() at ??:?
11.818 Error Util.cpp:61: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
0.000 Operating system: Linux
0.000 Program arguments: "./factorio" "--load-game" "12"
0.000 Read data path: /home/d/Programs/f/factorio/data
0.000 Write data path: /home/d/Programs/f/factorio
0.000 Binaries path: /home/d/Programs/f/factorio/bin
0.019 Available display adapters: 1
0.019 [0]: resolution 1366x768px at [0,0]
0.019 Create display on adapter 0. Size 1266x668 at position [40, 32]. Monitor 0
0.057 Initialised OpenGL:[0] Mesa DRI Intel(R) Haswell Mobile ; driver: 3.0 Mesa 10.1.3
0.095 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Screen: 255]
0.178 Loading mod core 0.0.0 (data.lua)
0.180 Loading mod base 0.12.12 (data.lua)
0.237 Loading mod UnlimitedUpgrades 0.2.0 (data.lua)
0.278 Loading mod UnlimitedUpgrades 0.2.0 (data-updates.lua)
0.772 Initial atlas bitmap size is 8192
0.790 Created atlas bitmap 8192x8191
0.791 Created atlas bitmap 8192x7004
9.356 Factorio initialised
9.357 Loading map /home/d/Programs/f/factorio/saves/12.zip
9.372 Info Scenario.cpp:123: Map version 0.12.11-2
11.675 Applying migration: Unlimited Upgrades: unl_0.1.0.lua
11.678 Applying migration: Unlimited Upgrades: unl_0.1.1.lua
All done and migrated
terminate called after throwing an instance of 'lua_longjmp*'
terminate called recursively
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0 0x7fdee7f1bd40 in ?? at ??:0
#1 0x7fdee7f1bcc9 in ?? at ??:0
#2 0x7fdee7f1f0d8 in ?? at ??:0
#3 0xd448dd in __gnu_cxx::__verbose_terminate_handler() at ??:?
11.818 Error Util.cpp:61: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Different crashlog
EDIT: Yes, it definitely hates bad grammer now, I've faced another one when put space between "else" and "if".0.000 2015-10-21 21:10:36; Factorio 0.12.12 (Build 17122, linux64)
0.000 Operating system: Linux
0.000 Program arguments: "./factorio" "--load-game" "12"
0.000 Read data path: /home/d/Programs/f/factorio/data
0.000 Write data path: /home/d/Programs/f/factorio
0.000 Binaries path: /home/d/Programs/f/factorio/bin
0.013 Available display adapters: 1
0.013 [0]: resolution 1366x768px at [0,0]
0.013 Create display on adapter 0. Size 1266x668 at position [40, 32]. Monitor 0
0.045 Initialised OpenGL:[0] Mesa DRI Intel(R) Haswell Mobile ; driver: 3.0 Mesa 10.1.3
0.079 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Screen: 255]
0.154 Loading mod core 0.0.0 (data.lua)
0.156 Loading mod base 0.12.12 (data.lua)
0.203 Loading mod UnlimitedUpgrades 0.2.0 (data.lua)
0.240 Loading mod UnlimitedUpgrades 0.2.0 (data-updates.lua)
0.698 Initial atlas bitmap size is 8192
0.716 Created atlas bitmap 8192x8191
0.717 Created atlas bitmap 8192x7004
9.060 Factorio initialised
9.062 Loading map /home/d/Programs/f/factorio/saves/12.zip
9.077 Info Scenario.cpp:123: Map version 0.12.11-2
terminate called after throwing an instance of 'lua_longjmp*'
terminate called recursively
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0 0x7f86cb8aed40 in ?? at ??:0
#1 0x7f86cb8aecc9 in ?? at ??:0
#2 0x7f86cb8b20d8 in ?? at ??:0
#3 0xd448dd in __gnu_cxx::__verbose_terminate_handler() at ??:?
11.486 Error Util.cpp:61: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
12.206 Warning Logger.cpp:315: Symbols.size() == 12, usedSize == 9
Factorio crashed. Generating symbolized stacktrace, please wait ...
12.310 Warning Logger.cpp:315: Symbols.size() == 11, usedSize == 8
#0 0x7f86cb8aed40 in ?? at ??:0
#1 0x652704 in ControlInput::Value::checkModifiers(InputState const&) at /tmp/factorio-7jJxxA/src/Input/ControlInput.cpp:416
#2 0x6529c5 in ControlInput::Value::triggeredBy(ALLEGRO_EVENT const&, InputState const&, bool, bool) at /tmp/factorio-7jJxxA/src/Input/ControlInput.cpp:349
#3 0x6be3e9 in processAllegroEvent at /tmp/factorio-7jJxxA/src/Input/AppInputListener.cpp:10
#4 0xae95b6 in processAllegroEvent at /tmp/factorio-7jJxxA/src/MainLoop.cpp:123
#5 0x6d6ab8 in MainLoop::processAllegroEvents(bool) at /tmp/factorio-7jJxxA/src/MainLoop.cpp:161
#6 0x7f86cb899ec5 in tickStep at /tmp/factorio-7jJxxA/src/MainLoop.cpp:437
#7 0x40a1c9 in MainLoop::run(boost::filesystem::path const&, boost::filesystem::path const&, bool, bool, std::string const&) [clone .constprop.267] at /tmp/factorio-7jJxxA/src/MainLoop.cpp:558
12.310 Error Util.cpp:61: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
*** Error in `./factorio': corrupted double-linked list: 0x0000000003c1c120 ***
0.000 Operating system: Linux
0.000 Program arguments: "./factorio" "--load-game" "12"
0.000 Read data path: /home/d/Programs/f/factorio/data
0.000 Write data path: /home/d/Programs/f/factorio
0.000 Binaries path: /home/d/Programs/f/factorio/bin
0.013 Available display adapters: 1
0.013 [0]: resolution 1366x768px at [0,0]
0.013 Create display on adapter 0. Size 1266x668 at position [40, 32]. Monitor 0
0.045 Initialised OpenGL:[0] Mesa DRI Intel(R) Haswell Mobile ; driver: 3.0 Mesa 10.1.3
0.079 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Screen: 255]
0.154 Loading mod core 0.0.0 (data.lua)
0.156 Loading mod base 0.12.12 (data.lua)
0.203 Loading mod UnlimitedUpgrades 0.2.0 (data.lua)
0.240 Loading mod UnlimitedUpgrades 0.2.0 (data-updates.lua)
0.698 Initial atlas bitmap size is 8192
0.716 Created atlas bitmap 8192x8191
0.717 Created atlas bitmap 8192x7004
9.060 Factorio initialised
9.062 Loading map /home/d/Programs/f/factorio/saves/12.zip
9.077 Info Scenario.cpp:123: Map version 0.12.11-2
terminate called after throwing an instance of 'lua_longjmp*'
terminate called recursively
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0 0x7f86cb8aed40 in ?? at ??:0
#1 0x7f86cb8aecc9 in ?? at ??:0
#2 0x7f86cb8b20d8 in ?? at ??:0
#3 0xd448dd in __gnu_cxx::__verbose_terminate_handler() at ??:?
11.486 Error Util.cpp:61: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
12.206 Warning Logger.cpp:315: Symbols.size() == 12, usedSize == 9
Factorio crashed. Generating symbolized stacktrace, please wait ...
12.310 Warning Logger.cpp:315: Symbols.size() == 11, usedSize == 8
#0 0x7f86cb8aed40 in ?? at ??:0
#1 0x652704 in ControlInput::Value::checkModifiers(InputState const&) at /tmp/factorio-7jJxxA/src/Input/ControlInput.cpp:416
#2 0x6529c5 in ControlInput::Value::triggeredBy(ALLEGRO_EVENT const&, InputState const&, bool, bool) at /tmp/factorio-7jJxxA/src/Input/ControlInput.cpp:349
#3 0x6be3e9 in processAllegroEvent at /tmp/factorio-7jJxxA/src/Input/AppInputListener.cpp:10
#4 0xae95b6 in processAllegroEvent at /tmp/factorio-7jJxxA/src/MainLoop.cpp:123
#5 0x6d6ab8 in MainLoop::processAllegroEvents(bool) at /tmp/factorio-7jJxxA/src/MainLoop.cpp:161
#6 0x7f86cb899ec5 in tickStep at /tmp/factorio-7jJxxA/src/MainLoop.cpp:437
#7 0x40a1c9 in MainLoop::run(boost::filesystem::path const&, boost::filesystem::path const&, bool, bool, std::string const&) [clone .constprop.267] at /tmp/factorio-7jJxxA/src/MainLoop.cpp:558
12.310 Error Util.cpp:61: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
*** Error in `./factorio': corrupted double-linked list: 0x0000000003c1c120 ***