[Oxyd][Linux] Freeze on start after "Loading mod core.."

This subforum contains all the issues which we already resolved.
not_food
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Apr 26, 2017 3:32 am
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by not_food »

Adding a me too.

Tried clearing ./factorio folder, no sucess.
Vilsol
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Aug 06, 2015 5:27 pm
Contact:

[0.16.0][Linux][Headless] Server crash on map generation

Post by Vilsol »

Headless server crashing when running:

Code: Select all

./factorio --create oboi
Log:

Code: Select all

   0.000 2017-12-13 15:15:47; Factorio 0.16.0 (build 34159, linux64, headless)
   0.088 Operating system: Linux (Ubuntu 16.04)
   0.088 Program arguments: "./factorio" "--create" "oboi"
   0.088 Read data path: /home/factorio/factorio/data
   0.088 Write data path: /home/factorio/factorio [274829/429348MB]
   0.088 Binaries path: /home/factorio/factorio/bin
   0.106 System info: [CPU: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz, 24 cores, RAM: 64309MB]
   0.106 Running in headless mode
   0.113 Loading mod core 0.0.0 (data.lua)
*** Error in `./factorio': free(): invalid pointer: 0x00000000018b3b60 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f08830357e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f088303e37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f088304253c]
./factorio[0xabd177]
./factorio[0xabd7ba]
./factorio[0xc26b47]
./factorio[0xdd7a88]
./factorio[0xefe3a8]
./factorio[0x4a7d14]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f0882fde830]
./factorio[0x4b3b4f]
======= Memory map: ========
00400000-0186b000 r-xp 00000000 09:04 6684678                            /home/factorio/factorio/bin/x64/factorio
0186c000-01873000 r--p 0146b000 09:04 6684678                            /home/factorio/factorio/bin/x64/factorio
01873000-0188a000 rw-p 01472000 09:04 6684678                            /home/factorio/factorio/bin/x64/factorio
0188a000-018b5000 rw-p 00000000 00:00 0
019af000-01b66000 rw-p 00000000 00:00 0                                  [heap]
7f0870000000-7f0870021000 rw-p 00000000 00:00 0
7f0870021000-7f0874000000 ---p 00000000 00:00 0
7f0876d90000-7f0876da6000 r-xp 00000000 09:03 264822                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f0876da6000-7f0876fa5000 ---p 00016000 09:03 264822                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f0876fa5000-7f0876fa6000 rw-p 00015000 09:03 264822                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f0876fa6000-7f0876fa7000 ---p 00000000 00:00 0
7f0876fa7000-7f08777a7000 rw-p 00000000 00:00 0
7f08777a7000-7f08777a8000 ---p 00000000 00:00 0
7f08777a8000-7f0877fa8000 rw-p 00000000 00:00 0
7f0877fa8000-7f0877fa9000 ---p 00000000 00:00 0
7f0877fa9000-7f08787a9000 rw-p 00000000 00:00 0
7f08787a9000-7f08787aa000 ---p 00000000 00:00 0
7f08787aa000-7f0878faa000 rw-p 00000000 00:00 0
7f0878faa000-7f0878fab000 ---p 00000000 00:00 0
7f0878fab000-7f08797ab000 rw-p 00000000 00:00 0
7f08797ab000-7f08797ac000 ---p 00000000 00:00 0
7f08797ac000-7f0879fac000 rw-p 00000000 00:00 0
7f0879fac000-7f0879fad000 ---p 00000000 00:00 0
7f0879fad000-7f087a7ad000 rw-p 00000000 00:00 0
7f087a7ad000-7f087a7ae000 ---p 00000000 00:00 0
7f087a7ae000-7f087afae000 rw-p 00000000 00:00 0
7f087afae000-7f087afaf000 ---p 00000000 00:00 0
7f087afaf000-7f087b7af000 rw-p 00000000 00:00 0
7f087b7af000-7f087b7b0000 ---p 00000000 00:00 0
7f087b7b0000-7f087bfb0000 rw-p 00000000 00:00 0
7f087bfb0000-7f087bfb1000 ---p 00000000 00:00 0
7f087bfb1000-7f087c7b1000 rw-p 00000000 00:00 0
7f087c7b1000-7f087c7b2000 ---p 00000000 00:00 0
7f087c7b2000-7f087cfb2000 rw-p 00000000 00:00 0
7f087cfb2000-7f087cfb3000 ---p 00000000 00:00 0
7f087cfb3000-7f087d7b3000 rw-p 00000000 00:00 0
7f087d7b3000-7f087d7b4000 ---p 00000000 00:00 0
7f087d7b4000-7f087dfb4000 rw-p 00000000 00:00 0
7f087dfb4000-7f087dfb5000 ---p 00000000 00:00 0
7f087dfb5000-7f087e7b5000 rw-p 00000000 00:00 0
7f087e7b5000-7f087e7b6000 ---p 00000000 00:00 0
7f087e7b6000-7f087efb6000 rw-p 00000000 00:00 0
7f087efb6000-7f087efb7000 ---p 00000000 00:00 0
7f087efb7000-7f087f7b7000 rw-p 00000000 00:00 0
7f087f7b7000-7f087f7b8000 ---p 00000000 00:00 0
7f087f7b8000-7f087ffb8000 rw-p 00000000 00:00 0
7f087ffb8000-7f087ffb9000 ---p 00000000 00:00 0
7f087ffb9000-7f08807b9000 rw-p 00000000 00:00 0
7f08807b9000-7f08807ba000 ---p 00000000 00:00 0
7f08807ba000-7f0880fba000 rw-p 00000000 00:00 0
7f0880fba000-7f0880fbb000 ---p 00000000 00:00 0
7f0880fbb000-7f08817bb000 rw-p 00000000 00:00 0
7f08817bb000-7f08817bc000 ---p 00000000 00:00 0
7f08817bc000-7f0881fbc000 rw-p 00000000 00:00 0
7f0881fbc000-7f0881fbd000 ---p 00000000 00:00 0
7f0881fbd000-7f08827bd000 rw-p 00000000 00:00 0
7f08827bd000-7f08827be000 ---p 00000000 00:00 0
7f08827be000-7f0882fbe000 rw-p 00000000 00:00 0
7f0882fbe000-7f088317e000 r-xp 00000000 09:03 262712                     /lib/x86_64-linux-gnu/libc-2.23.so
7f088317e000-7f088337e000 ---p 001c0000 09:03 262712                     /lib/x86_64-linux-gnu/libc-2.23.so
7f088337e000-7f0883382000 r--p 001c0000 09:03 262712                     /lib/x86_64-linux-gnu/libc-2.23.so
7f0883382000-7f0883384000 rw-p 001c4000 09:03 262712                     /lib/x86_64-linux-gnu/libc-2.23.so
7f0883384000-7f0883388000 rw-p 00000000 00:00 0
7f0883388000-7f0883490000 r-xp 00000000 09:03 262707                     /lib/x86_64-linux-gnu/libm-2.23.so
7f0883490000-7f088368f000 ---p 00108000 09:03 262707                     /lib/x86_64-linux-gnu/libm-2.23.so
7f088368f000-7f0883690000 r--p 00107000 09:03 262707                     /lib/x86_64-linux-gnu/libm-2.23.so
7f0883690000-7f0883691000 rw-p 00108000 09:03 262707                     /lib/x86_64-linux-gnu/libm-2.23.so
7f0883691000-7f0883694000 r-xp 00000000 09:03 262701                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f0883694000-7f0883893000 ---p 00003000 09:03 262701                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f0883893000-7f0883894000 r--p 00002000 09:03 262701                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f0883894000-7f0883895000 rw-p 00003000 09:03 262701                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f0883895000-7f088389c000 r-xp 00000000 09:03 262698                     /lib/x86_64-linux-gnu/librt-2.23.so
7f088389c000-7f0883a9b000 ---p 00007000 09:03 262698                     /lib/x86_64-linux-gnu/librt-2.23.so
7f0883a9b000-7f0883a9c000 r--p 00006000 09:03 262698                     /lib/x86_64-linux-gnu/librt-2.23.so
7f0883a9c000-7f0883a9d000 rw-p 00007000 09:03 262698                     /lib/x86_64-linux-gnu/librt-2.23.so
7f0883a9d000-7f0883ab5000 r-xp 00000000 09:03 262695                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f0883ab5000-7f0883cb4000 ---p 00018000 09:03 262695                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f0883cb4000-7f0883cb5000 r--p 00017000 09:03 262695                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f0883cb5000-7f0883cb6000 rw-p 00018000 09:03 262695                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f0883cb6000-7f0883cba000 rw-p 00000000 00:00 0
7f0883cba000-7f0883ce0000 r-xp 00000000 09:03 262690                     /lib/x86_64-linux-gnu/ld-2.23.so
7f0883e94000-7f0883ec9000 rw-p 00000000 00:00 0
7f0883edc000-7f0883edf000 rw-p 00000000 00:00 0
7f0883edf000-7f0883ee0000 r--p 00025000 09:03 262690                     /lib/x86_64-linux-gnu/ld-2.23.so
7f0883ee0000-7f0883ee1000 rw-p 00026000 09:03 262690                     /lib/x86_64-linux-gnu/ld-2.23.so
7f0883ee1000-7f0883ee2000 rw-p 00000000 00:00 0
7ffc0e6f0000-7ffc0e711000 rw-p 00000000 00:00 0                          [stack]
7ffc0e734000-7ffc0e736000 r--p 00000000 00:00 0                          [vvar]
7ffc0e736000-7ffc0e738000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
GDB Backtrace:

Code: Select all

#0  0x00007ffff7110428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff711202a in __GI_abort () at abort.c:89
#2  0x00007ffff71527ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff726be98 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff715b37a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7ffff7268c6f "free(): invalid pointer", action=3) at malloc.c:5006
#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867
#5  0x00007ffff715f53c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968
#6  0x0000000000abd177 in std::experimental::filesystem::Path::~Path () at src/Filesystem/Filesystem.hpp:36
#7  PackagePath::~PackagePath () at src/Package/PackagePath.hpp:13
#8  LuaHelper::packageDofile () at /tmp/factorio-Jvn5qU/src/Util/LuaHelper.cpp:1900
#9  0x0000000000abd7ba in LuaDataLoader::loadData () at /tmp/factorio-Jvn5qU/src/Data/LuaDataLoader.cpp:107
#10 0x0000000000c26b47 in ModManager::loadMod () at /tmp/factorio-Jvn5qU/src/Data/ModManager.cpp:519
#11 0x0000000000dd7a88 in ModManager::loadData () at /tmp/factorio-Jvn5qU/src/Data/ModManager.cpp:318
#12 0x0000000000efe3a8 in GlobalContext::init () at /tmp/factorio-Jvn5qU/src/GlobalContext.cpp:479
#13 0x00000000004a7d14 in main () at /tmp/factorio-Jvn5qU/src/Main.cpp:739
Last edited by Vilsol on Wed Dec 13, 2017 2:58 pm, edited 1 time in total.
SQLek
Inserter
Inserter
Posts: 45
Joined: Tue Jun 28, 2016 10:23 am
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by SQLek »

Running with MALLOC_CHECK_=2 also didn't helped.

-- edit --
Using valgrind was able to achieve "cropping bitmaps".
Valgrind
Schmogel
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Nov 12, 2016 1:58 am
Contact:

Re: [0.16.0][Linux][Headless] Server crash on map generation

Post by Schmogel »

Code: Select all

*** Error in `./factorio': free(): invalid pointer: 0x00000000018b3b60 ***
Seems to be the same issue as this

viewtopic.php?f=7&t=54540
alinde
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Dec 13, 2017 2:36 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by alinde »

REMOVED - looks like different bug.
Added to viewtopic.php?f=7&t=54549&p=321381#p321381.
Last edited by alinde on Wed Dec 13, 2017 2:44 pm, edited 2 times in total.
AndreasTPC
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Dec 13, 2017 2:36 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by AndreasTPC »

Also getting this problem. I ran factorio in gdb and got a backtrace for you:

Code: Select all

(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007f39f8a3019a in __GI_abort () at abort.c:89
#2  0x00007f39f8a6d310 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f39f8b67d30 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007f39f8a7396e in malloc_printerr (action=3, str=0x7f39f8b64887 "free(): invalid pointer", ptr=<optimized out>, ar_ptr=<optimized out>) at malloc.c:5079
#4  0x00007f39f8a741ce in _int_free (av=0x7f39f8d98b00 <main_arena>, p=0x18b8150 <__gnu_internal::get_mutex(unsigned char)::m+624>, have_lock=0) at malloc.c:3875
#5  0x0000000000abf627 in std::experimental::filesystem::Path::~Path () at src/Filesystem/Filesystem.hpp:36
#6  PackagePath::~PackagePath () at src/Package/PackagePath.hpp:13
#7  LuaHelper::packageDofile () at /tmp/factorio-3PrYrF/src/Util/LuaHelper.cpp:1900
#8  0x0000000000abfc6a in LuaDataLoader::loadData () at /tmp/factorio-3PrYrF/src/Data/LuaDataLoader.cpp:107
#9  0x0000000000c21e77 in ModManager::loadMod () at /tmp/factorio-3PrYrF/src/Data/ModManager.cpp:519
#10 0x0000000000dd9f58 in ModManager::loadData () at /tmp/factorio-3PrYrF/src/Data/ModManager.cpp:318
#11 0x0000000000f03198 in GlobalContext::init () at /tmp/factorio-3PrYrF/src/GlobalContext.cpp:479
#12 0x0000000000f1f8f3 in MainLoop::run(std::experimental::filesystem::Path const&, std::experimental::filesystem::Path const&, bool, bool, std::function<void ()>, std::experimental::filesystem::Path const&, MainLoop::HeavyMode) () at /tmp/factorio-3PrYrF/src/MainLoop.cpp:249
#13 0x00000000004b1ccd in main () at /tmp/factorio-3PrYrF/src/Main.cpp:1030
I guess the problem is with loading a lua file?
Last edited by AndreasTPC on Wed Dec 13, 2017 2:40 pm, edited 1 time in total.
thuejk
Fast Inserter
Fast Inserter
Posts: 121
Joined: Fri Feb 13, 2015 8:41 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by thuejk »

alinde: That looks like a separate bug. You should post it in a new thread instead.
xentec
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Dec 13, 2017 1:02 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by xentec »

SQLek wrote:Running with MALLOC_CHECK_=2 also didn't helped.

-- edit --
Using valgrind was able to achieve "cropping bitmaps".
Valgrind
Can confirm the same on Arch:

Code: Select all

==24167== Memcheck, a memory error detector
==24167== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24167== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==24167== Command: bin/x64/factorio -v
==24167==
--24167-- WARNING: Serious error when reading debug info
--24167-- When reading debug info from /home/xentec/factorio/bin/x64/factorio:
--24167-- abbv_code not found in ht_abbvs table
   0.028 2017-12-13 15:45:32; Factorio 0.16.0 (build 34159, linux64, alpha)
   0.100 Operating system: Linux (arch rolling)
   0.112 Program arguments: "bin/x64/factorio" "-v"
   0.122 Read data path: /home/xentec/factorio/data
   0.124 Write data path: /home/xentec/factorio [49667/403045MB]
   0.125 Binaries path: /home/xentec/factorio/bin
   0.778 System info: [CPU:         Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz, 8 cores, RAM: 16009MB]
   0.872 Display options: [FullScreen: 1] [VSync: 1] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   1.117 Available display adapters: 3
   1.120  [0]: resolution 3840x2160px at [1280,0]
   1.123  [1]: resolution 1200x1920px at [5120,0]
   1.123  [2]: resolution 1280x1024px at [0,0]
   1.126 Create display on adapter 2. Size 1280x720 at position [0, 134].
==24167== Use of uninitialised value of size 8
==24167==    at 0xF48A4B0: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF47F7DB: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF4B8737: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF4B8DD3: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF47AC68: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF4A5816: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF4A8991: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF0688D5: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xF06891F: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==    by 0xCFCC6DA: ??? (in /usr/lib/libGLX_mesa.so.0.0.0)
==24167==    by 0xCFCDEFE: ??? (in /usr/lib/libGLX_mesa.so.0.0.0)
==24167==    by 0xF06A005: ??? (in /usr/lib/xorg/modules/dri/radeonsi_dri.so)
==24167==
   5.728 Initialised OpenGL:[2] AMD Radeon (TM) RX 470 Graphics (AMD POLARIS10 / DRM 3.19.0 / 4.14.4-1-ARCH, LLVM 5.0.0); driver: 3.0 Mesa 17.2.6
   5.736   Video memory size (dedicated/total available/current available): 8055/16244/8050 MB
   9.931 Graphics settings preset: very-high
   9.941 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 25%] [DXT: false] [Shader: 1]
   9.951                   [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
  12.528 Loading mod core 0.0.0 (data.lua)
==24167== Invalid free() / delete / delete[] / realloc()
==24167==    at 0x4C2E64B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24167==    by 0xABF626: LuaHelper::packageDofile(lua_State*, PackagePath const&, std::string const&, int, Crc*) (Filesystem.hpp:36)
==24167==    by 0xABFC69: LuaDataLoader::loadData(PackagePath const&, Paths*, Crc&) (LuaDataLoader.cpp:107)
==24167==    by 0xC21E76: ModManager::loadMod(ModID, LuaDataLoader&, ModManager::LuaHistoryData&, PackagePath const&, char const*, Crc&) (ModManager.cpp:519)
==24167==    by 0xDD9F57: ModManager::loadData(bool, LocaleProvider*) (ModManager.cpp:318)
==24167==    by 0xF03197: GlobalContext::init(bool, bool, bool) [clone .constprop.59207] (GlobalContext.cpp:479)
==24167==    by 0xF1F8F2: MainLoop::run(std::experimental::filesystem::Path const&, std::experimental::filesystem::Path const&, bool, bool, std::function<void ()>, std::experimental::filesystem::Path const&, MainLoop::HeavyMode) (MainLoop.cpp:249)
==24167==    by 0x4B1CCC: main (Main.cpp:1030)
==24167==  Address 0x18b8160 is in the BSS segment of /home/xentec/factorio/bin/x64/factorio
==24167==
==24167== Invalid free() / delete / delete[] / realloc()
==24167==    at 0x4C2E64B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24167==    by 0xABFCDC: LuaDataLoader::loadData(PackagePath const&, Paths*, Crc&) (Filesystem.hpp:36)
==24167==    by 0xC21E76: ModManager::loadMod(ModID, LuaDataLoader&, ModManager::LuaHistoryData&, PackagePath const&, char const*, Crc&) (ModManager.cpp:519)
==24167==    by 0xDD9F57: ModManager::loadData(bool, LocaleProvider*) (ModManager.cpp:318)
==24167==    by 0xF03197: GlobalContext::init(bool, bool, bool) [clone .constprop.59207] (GlobalContext.cpp:479)
==24167==    by 0xF1F8F2: MainLoop::run(std::experimental::filesystem::Path const&, std::experimental::filesystem::Path const&, bool, bool, std::function<void ()>, std::experimental::filesystem::Path const&, MainLoop::HeavyMode) (MainLoop.cpp:249)
==24167==    by 0x4B1CCC: main (Main.cpp:1030)
==24167==  Address 0x18b8160 is in the BSS segment of /home/xentec/factorio/bin/x64/factorio
==24167==
  13.297 Loading mod base 0.16.0 (data.lua)
==24167== Invalid free() / delete / delete[] / realloc()
==24167==    at 0x4C2E64B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24167==    by 0x6F0F44: PackagePath::parentPath() const (Filesystem.hpp:36)
==24167==    by 0xABF9DD: LuaDataLoader::loadData(PackagePath const&, Paths*, Crc&) (LuaDataLoader.cpp:83)
==24167==    by 0xC21E76: ModManager::loadMod(ModID, LuaDataLoader&, ModManager::LuaHistoryData&, PackagePath const&, char const*, Crc&) (ModManager.cpp:519)
==24167==    by 0xC22175: ModManager::loadModsPhase(LuaDataLoader&, ModManager::LuaHistoryData&, char const*) (ModManager.cpp:410)
==24167==    by 0xDDA01E: ModManager::loadData(bool, LocaleProvider*) (ModManager.cpp:326)
==24167==    by 0xF03197: GlobalContext::init(bool, bool, bool) [clone .constprop.59207] (GlobalContext.cpp:479)
==24167==    by 0xF1F8F2: MainLoop::run(std::experimental::filesystem::Path const&, std::experimental::filesystem::Path const&, bool, bool, std::function<void ()>, std::experimental::filesystem::Path const&, MainLoop::HeavyMode) (MainLoop.cpp:249)
==24167==    by 0x4B1CCC: main (Main.cpp:1030)
==24167==  Address 0x18b8160 is in the BSS segment of /home/xentec/factorio/bin/x64/factorio
==24167==
==24167== Invalid free() / delete / delete[] / realloc()
==24167==    at 0x4C2E64B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24167==    by 0x6F0F44: PackagePath::parentPath() const (Filesystem.hpp:36)
==24167==    by 0xABF60A: LuaHelper::packageDofile(lua_State*, PackagePath const&, std::string const&, int, Crc*) (LuaHelper.cpp:1900)
==24167==    by 0xABFC69: LuaDataLoader::loadData(PackagePath const&, Paths*, Crc&) (LuaDataLoader.cpp:107)
==24167==    by 0xC21E76: ModManager::loadMod(ModID, LuaDataLoader&, ModManager::LuaHistoryData&, PackagePath const&, char const*, Crc&) (ModManager.cpp:519)
==24167==    by 0xC22175: ModManager::loadModsPhase(LuaDataLoader&, ModManager::LuaHistoryData&, char const*) (ModManager.cpp:410)
==24167==    by 0xDDA01E: ModManager::loadData(bool, LocaleProvider*) (ModManager.cpp:326)
==24167==    by 0xF03197: GlobalContext::init(bool, bool, bool) [clone .constprop.59207] (GlobalContext.cpp:479)
==24167==    by 0xF1F8F2: MainLoop::run(std::experimental::filesystem::Path const&, std::experimental::filesystem::Path const&, bool, bool, std::function<void ()>, std::experimental::filesystem::Path const&, MainLoop::HeavyMode) (MainLoop.cpp:249)
==24167==    by 0x4B1CCC: main (Main.cpp:1030)
==24167==  Address 0x18b8160 is in the BSS segment of /home/xentec/factorio/bin/x64/factorio
==24167==
  17.734 Loading mod base 0.16.0 (data-updates.lua)
  19.443 Checksum for core: 3886358456
  19.444 Checksum of base: 2132534782
  27.024 Verbose ModManager.cpp:399: Time to load mods: 15.2589
  27.410 Loading sounds...
  30.378 Info PlayerData.cpp:67: Local player-data.json unavailable
  30.380 Info PlayerData.cpp:72: Cloud player-data.json unavailable
  32.000 Loaded shader file /home/xentec/factorio/data/core/graphics/shaders/game.glsl
  32.064 Loaded shader file /home/xentec/factorio/data/core/graphics/shaders/zoom-to-world.glsl
  32.077 Loaded shader file /home/xentec/factorio/data/core/graphics/shaders/alpha-mask.glsl
  32.081 Crop bitmaps.
studmuffin
Inserter
Inserter
Posts: 44
Joined: Fri Apr 01, 2016 4:41 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by studmuffin »

can confirm. exact happenings here as well.
Attachments
server1-screenlog-2017-12-13-07_50_54.log
Screen log with manual terminal attempt
(29.95 KiB) Downloaded 166 times
server1-factorio-current-2017-12-13-07_50_54.log
(3.46 KiB) Downloaded 154 times
bigbear1989
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Dec 13, 2017 2:45 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by bigbear1989 »

all my log:

Code: Select all

bigbear@bigbear-H81M-S1 ~/.steam/steam/steamapps/common/Factorio/bin/x64 $ /bin/bash -c ./factorio 
   0.000  Initializing Steam API.
rm: невозможно удалить '/home/bigbear/.steam/steam': Это каталог
rm: невозможно удалить '/home/bigbear/.steam/bin': Это каталог
Running Steam on linuxmint 18.3 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
bigbear@bigbear-H81M-S1 ~/.steam/steam/steamapps/common/Factorio/bin/x64 $
and game starting

Code: Select all

$ uname -a
Linux bigbear-H81M-S1 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
simonalsn
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Oct 02, 2015 7:45 am
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by simonalsn »

Got the same problem, stops loading at 02 % both on the steam and non-steam version.

I WANT TO PLAY WITH ARTILLERY :-P

Oh well thanks for the release regardless, hope this issue gets solved soon :-)
Bottles
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jun 02, 2014 7:58 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by Bottles »

I'm running Ubuntu 16.04.3 and while Factorio freezes at loading core 2%, the error log is different.

Code: Select all

ERROR: ld.so: object '/home/sami/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Loaded Config for Local Selection Path for App ID 427520: /home/sami/.local/share/Steam/SteamApps/workshop/content/241100/627030001/controller_configuration.vdf
[427520]Non-Steam Controller Configs Enabled: 1
This is the same whether or not I have a steam controller plugged in (restarted steam between the attempts). The dbus errors are part of Linux steam.

Edit: The log shows it finds a controller somewhere, but I only have a mouse and keyboard plugged in during this time.
Attachments
error2.txt
No steam controller plugged in
(27.96 KiB) Downloaded 128 times
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by Oxyd »

Thanks for all the reports, we are painfully aware of the issue. Currently investigating, I'll keep you updated.
Insouciance
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Dec 13, 2017 3:29 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by Insouciance »

I am experiencing this on my Ubuntu 17.10 headless server as well.
Attachments
factorio-current.log
(9.12 KiB) Downloaded 143 times
sandro8086
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Sep 30, 2017 11:45 am
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by sandro8086 »

Same here, this is my output

Code: Select all

./factorio -v
   0.000 2017-12-13 16:41:17; Factorio 0.16.0 (build 34159, linux64, alpha)
   0.028 Operating system: Linux (ManjaroLinux 17.1pre3)
   0.028 Program arguments: "./factorio" "-v" 
   0.028 Read data path: /home/user/Scaricati/factorio/data
   0.028 Write data path: /home/user/Scaricati/factorio [219606/350858MB]
   0.028 Binaries path: /home/user/Scaricati/factorio/bin
   0.053 System info: [CPU:       Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz, 8 cores, RAM: 7808MB]
   0.072 Display options: [FullScreen: 1] [VSync: 1] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.690 Available display adapters: 1
   0.690  [0]: resolution 1920x1080px at [0,0]
   0.690 Create display on adapter 0. Size 1280x720 at position [310, 162].
   1.084 Initialised OpenGL:[0] Mesa DRI Intel(R) Ivybridge Mobile ; driver: 3.0 Mesa 17.2.6
   1.084   GL_NVX_gpu_memory_info not supported, VRAM detection won't work properly
   1.215 Graphics settings preset: medium
   1.215 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: false] [Shader: 1]
   1.215                   [Parallel sprite loading: 1] [Max texture size: 0/4096] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
   1.967 Loading mod core 0.0.0 (data.lua)
*** Error in `./factorio': free(): invalid pointer: 0x00000000018b8160 ***
*** Error in `./factorio': free(): invalid pointer: 0x000000000188e400 ***
this error

Code: Select all

*** Error in `./factorio': free(): invalid pointer: 0x000000000188e400 ***
goes on until I kill the process

Log attached
Attachments
factorio-current.log
(3.15 KiB) Downloaded 157 times
Last edited by sandro8086 on Wed Dec 13, 2017 4:00 pm, edited 2 times in total.
Moonheart08
Inserter
Inserter
Posts: 27
Joined: Wed Jun 01, 2016 8:15 am
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by Moonheart08 »

I'm having the same issue. I've attached the results of factorio being ran in strace.
In terms of the actual factorio log, it's the same as everyone else's (I ran it through diff to check.)
Hope that helps :)
(strace always helps; right? righhtttt? /s)
Attachments
log.txt
(4.47 MiB) Downloaded 144 times
xentec
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Dec 13, 2017 1:02 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by xentec »

For what it's worth I've managed to start a map with help of valgrind before the game gracefully crashed.
Log below. I've annotated some of my actions with "##### ".
Attachments
valgrind.log
(137.88 KiB) Downloaded 160 times
Green_Baron
Burner Inserter
Burner Inserter
Posts: 16
Joined: Tue Jan 03, 2017 8:03 pm
Contact:

Re: [0.16.0][Linux] Freeze on start after "Loading mod core.."

Post by Green_Baron »

Same problem after updating from 0.15.40, and with a new 0.16 install.

Code: Select all

   0.000 2017-12-13 15:44:52; Factorio 0.16.0 (build 34159, linux64, alpha)
   0.070 Operating system: Linux (Debian testing)
   0.070 Program arguments: "/home/kemde/factorio/bin/x64/factorio" 
   0.070 Read data path: /home/kemde/factorio/data
   0.070 Write data path: /home/kemde/factorio [696470/749939MB]
   0.070 Binaries path: /home/kemde/factorio/bin
   0.075 System info: [CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz, 8 cores, RAM: 15981MB]
   0.076 Display options: [FullScreen: 1] [VSync: 1] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.174 Available display adapters: 1
   0.174  [0]: resolution 1920x1080px at [0,0]
   0.174 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.459 Initialised OpenGL:[0] GeForce GTX 970/PCIe/SSE2; driver: 4.5.0 NVIDIA 375.82
   0.459   Video memory size (dedicated/total available/current available): 4096/4096/3904 MB
   0.482 Graphics settings preset: very-high
   0.482 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 25%] [DXT: false] [Shader: 1]
   0.482                   [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
   0.526 Loading mod core 0.0.0 (data.lua)
Factorio crashed. Generating symbolized stacktrace, please wait ...
Factorio crashed. Generating symbolized stacktrace, please wait ...
An invalid pointer is being free()d apparently ...
striepan
Inserter
Inserter
Posts: 23
Joined: Wed Jan 27, 2016 5:23 pm
Contact:

Re: [Oxyd][Linux] Freeze on start after "Loading mod core.."

Post by striepan »

If it's of any interest factorio does exit for me after second SIGTERM in this situation.
rad4day
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Dec 13, 2017 4:22 pm
Contact:

Re: [Oxyd][Linux] Freeze on start after "Loading mod core.."

Post by rad4day »

Got stuck at 2% too.
My log and Full gdb bt:

factorio-current.log:
https://gist.github.com/rad4day/0eef8a8 ... e1fcaf5212

factorio.bt:
https://gist.github.com/rad4day/efb7e48 ... c7a5f8ba99
Post Reply

Return to “Resolved Problems and Bugs”