Page 1 of 1

[1.1.83] Crashes when ran from the command line.

Posted: Sat Jun 17, 2023 9:39 pm
by LucidMoses
I have a power shell script that backup the game and then starts factrio like this;

Code: Select all

echo "Run"
cd "$FactorioDir\bin\x64"
.\Factorio.exe
The game comes up and works find but if I close the Powershell box that started it, factorio crashes. Nothing added to the log even when I add the -v option to factorio.

Not the biggest of problems but I would like to free up the memory used by powerhsell and close the box.

I tried this with CMD as well and same thing happens.

It runs fine from the Desktop Icon so it can't require a cmd box.

Any ideas what's going wrong?

Re: [1.1.83] Crashes when ran from the command line.

Posted: Sun Jun 18, 2023 9:43 am
by MEOWMI
To launch it detached from the powershell, you have to type

Code: Select all

& .\Factorio.exe
For the normal windows command line, the syntax is likely a bit different.

Re: [1.1.83] Crashes when ran from the command line.

Posted: Thu Jun 29, 2023 10:33 pm
by LucidMoses
I tried that. Same thing. I crashes (or at least exits without saving) when I close the starting powershell instance. I've also tried

Start .\Factorio.exe

and then I tried via cmd and you all the following. It's like it's sending a bunch of stuff to standard out and dies if it gets an error while writing to it???

Code: Select all

C:\Factorio\FactorioV11\bin\x64>start .\factorio.exe

C:\Factorio\FactorioV11\bin\x64>   0.003 2023-06-29 17:30:03; Factorio 1.1.78 (build 60560, win64, full)
   0.004 Operating system: Windows 10 (build 19045)
   0.005 Program arguments: ".\factorio.exe"
   0.006 Config path: C:/Factorio/FactorioV11/config/config.ini
   0.006 Read data path: C:/Factorio/FactorioV11/data
   0.007 Write data path: C:/Factorio/FactorioV11 [217386/924512MB]
   0.007 Binaries path: C:/Factorio/FactorioV11/bin
   0.020 System info: [CPU:       Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz, 8 cores, RAM: 4879/12183 MB, page: 5466/24471 MB, virtual: 4248/134217727 MB, extended virtual: 0 MB]
   0.072 Memory info:
   0.072  [0]: Samsung M471B5273DH0-CK0 4096 MB 1600 MHz
   0.073  [1]: Hynix HMT41GS6MFR8C-PB 8192 MB 1600 MHz
   0.075 Display options: [FullScreen: 0] [VSync: 0] [UIScale: custom (125.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
   0.091 Available displays: 1
   0.092  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 4000 {0x05, [0,0], 1920x1080, 32bit, 40Hz}
   0.172 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
   0.620 Initialised Direct3D[0]: NVIDIA GeForce GT 630M; id: 10de-0de9; driver: nvldumdx.dll 23.21.13.8912
   0.621   D3D Feature Level: 11.0, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
   0.621   [Local Video Memory] Budget: 1700MB, CurrentUsage: 0MB, Reservation: 0/900MB
   0.622   [Non-Local Vid.Mem.] Budget: 5531MB, CurrentUsage: 0MB, Reservation: 0/2893MB
   0.623   Tiled resources: Tier 1
   0.624   Unified Memory Architecture: No
   0.625   BGR 565 Supported: Yes
   0.625   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.626 Graphics settings preset: high
   0.627   Dedicated video memory size 2000 MB
   0.704 Desktop composition is active.
   0.705 Graphics options: [Graphics quality: normal] [Video memory usage: high] [DXT: low-quality] [Color: 16bit]
   0.705                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: low] [Other: STDCwt] [B:80,C:0,S:100]
   0.777 [Audio] Backend:SDL(default); Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100
   0.924 Loading mod core 0.0.0 (data.lua)
   1.044 Loading mod base 1.1.78 (data.lua)
   1.582 Loading mod base 1.1.78 (data-updates.lua)
   1.762 Checksum for core: 3955387189
   1.762 Checksum of base: 434889501
   2.181 Prototype list checksum: 3034860339
   2.264 Loading sounds...
   3.482 Info PlayerData.cpp:71: Local player-data.json available, timestamp 1688076966
   3.483 Info PlayerData.cpp:78: Cloud player-data.json unavailable
   3.691 Initial atlas bitmap size is 16384
   3.699 Created atlas bitmap 16384x6272 [none]
   3.699 Created atlas bitmap 4096x2120 [decal]
   3.702 Created atlas bitmap 8192x2960 [low-object]
   3.703 Created atlas bitmap 4096x2464 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   3.704 Created atlas bitmap 8192x3840 [terrain, mipmap, linear-minification, linear-mip-level]
   3.705 Created atlas bitmap 4096x1632 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   3.706 Created atlas bitmap 4096x1664 [smoke, mipmap, linear-minification, linear-magnification]
   3.707 Created atlas bitmap 4096x928 [mipmap]
   3.710 Created atlas bitmap 8192x2240 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   3.711 Created atlas bitmap 4096x828 [alpha-mask]
   3.715 Created atlas bitmap 16384x4196 [shadow, linear-magnification, alpha-mask]
   3.719 Created atlas bitmap 4096x1312 [shadow, mipmap, linear-magnification, alpha-mask]
   3.722 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   3.735 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   8.379 Parallel Sprite Loader initialized (threads: 7)
  12.373 Sprites loaded
  12.409 Generated mipmaps (3) for atlas [2] of size 8192x2960
  12.422 Generated mipmaps (3) for atlas [3] of size 4096x2464
  12.457 Generated mipmaps (3) for atlas [4] of size 8192x3840
  12.470 Generated mipmaps (3) for atlas [5] of size 4096x1632
  12.482 Generated mipmaps (3) for atlas [6] of size 4096x1664
  12.516 Generated mipmaps (3) for atlas [7] of size 4096x928
  12.530 Generated mipmaps (5) for atlas [8] of size 8192x2240
  12.543 Generated mipmaps (3) for atlas [11] of size 4096x1312
  12.584 Custom mipmaps uploaded.
  13.029 Factorio initialised
  16.534 Loading map C:\Factorio\FactorioV11\saves\011th-Save29.zip: 228493482 bytes.
  16.676 Loading level.dat: 753543213 bytes.
  16.682 Info Scenario.cpp:199: Map version 1.1.78-1
  52.147 Loading script.dat: 531 bytes.
  52.183 Checksum for script C:/Factorio/FactorioV11/temp/currently-playing/control.lua: 3661357476