[2.0.45] Crash while paused and unattended (MetalUnlocker.hpp (20): getCommandBuffer)

Things that has been reported already before.
stu
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Apr 25, 2025 12:41 am
Contact:

[2.0.45] Crash while paused and unattended (MetalUnlocker.hpp (20): getCommandBuffer)

Post by stu »

Factorio crashed while in the background after being paused for about an hour.

I had not interacted with it nor even looked at the workspace where it was visible for a long time before the crash.

I'm using the new experimental Metal renderer for MacOS and noticed a lot of references to Metal libraries in the stack trace, don't know if that's relevant.

Code: Select all

   0.001 2025-04-24 14:17:42; Factorio 2.0.45 (build 82413, mac-arm64, steam, space-age)
   0.001 Operating system: macOS 15.4.1
   0.000 Initializing Steam API.
   0.001 Program arguments: "/Users/me/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio" 
   0.001 Config path: /Users/me/Library/Application Support/factorio/config/config.ini
   0.001 Read data path: /Users/me/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data
   0.001 Write data path: /Users/me/Library/Application Support/factorio [196131/471482MB]
   0.001 Binaries path: /Users/me/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
   0.077 System info: [CPU: arm64, 8 cores, RAM: 16384 MB]
   0.080 Display options: [FullScreen: true] [VSync: true] [UIScale: automatic (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmW] [Lang: en]
   0.787 Video driver: cocoa
   0.787 Available displays: 1
   0.787  [0]: 0 - {[0,0], 1710x1112, SDL_PIXELFORMAT_ARGB8888, 60Hz, 0x0001(0x01)}
   1.908 Initialised Metal:[0] Apple M2
   1.908   [Size] Window: 1710x1070, Drawable: 3420x2140
   1.908   [Supports] depth16_format:yes, storage_mode_memoryless:yes, sampler_border_color:yes
   1.908   [Device] depth24_stencil8_format:NO, memoryless_render_targets:yes, nonprivate_depth_stencil:yes
   1.908   [Device] timestamp_counters:yes, invocation_counters:NO, draw_boundary_counters:NO, blit_boundary_counters:NO, stage_boundary_counters:yes
   1.908 Graphics settings preset: very-high
   1.908   Dedicated video memory size 10922 MB (detected from Apple M2; VendorID: 0x106b)
   1.919 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   1.919                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   3.482 [Audio] Driver:coreaudio, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   3.679 Info ModManager.cpp:444: FeatureFlag expansion-shaders = true
   3.679 Info ModManager.cpp:444: FeatureFlag freezing = true
   3.679 Info ModManager.cpp:444: FeatureFlag quality = true
   3.679 Info ModManager.cpp:444: FeatureFlag rail-bridges = true
   3.679 Info ModManager.cpp:444: FeatureFlag segmented-units = true
   3.679 Info ModManager.cpp:444: FeatureFlag space-travel = true
   3.679 Info ModManager.cpp:444: FeatureFlag spoiling = true
   3.686 Loading mod core 0.0.0 (data.lua)
   3.709 Loading mod base 2.0.45 (data.lua)
   3.904 Loading mod elevated-rails 2.0.45 (data.lua)
   3.938 Loading mod quality 2.0.45 (data.lua)
   3.960 Loading mod space-age 2.0.45 (data.lua)
   4.384 Loading mod base 2.0.45 (data-updates.lua)
   4.402 Loading mod quality 2.0.45 (data-updates.lua)
   4.426 Loading mod space-age 2.0.45 (data-updates.lua)
   4.526 Checksum for core: 2238732386
   4.526 Checksum of base: 313337860
   4.526 Checksum of elevated-rails: 3689699154
   4.526 Checksum of quality: 3594706471
   4.526 Checksum of space-age: 2014830746
   4.940 Prototype list checksum: 1602860809
   4.975 Loading sounds...
   5.580 Info PlayerData.cpp:66: Local player-data.json unavailable
   5.580 Info PlayerData.cpp:69: Cloud player-data.json available, timestamp 1745497759
   5.588 Post-data load graphics options: [Light occlusion: YES]
   6.013 Initial atlas bitmap size is 16384
   6.027 Created an atlas bitmap (size 16384x16384) [none]
   6.045 Created an atlas bitmap (size 16384x16372) [none]
   6.070 Created an atlas bitmap (size 16384x16372) [none]
   6.071 Created an atlas bitmap (size 16384x15076) [none]
   6.076 Created an atlas bitmap (size 16384x16352) [low-object]
   6.076 Created an atlas bitmap (size 4096x1664) [low-object]
   6.076 Created an atlas bitmap (size 16384x14140) [corpse-decay]
   6.076 Created an atlas bitmap (size 16384x9268) [decal]
   6.076 Created an atlas bitmap (size 16384x5580) [none]
   6.076 Created an atlas bitmap (size 1676x79) [not-compressed]
   6.076 Created an atlas bitmap (size 16384x4256) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   6.076 Created an atlas bitmap (size 4096x3040) [smoke, mipmap, linear-minification, linear-magnification]
   6.080 Created an atlas bitmap (size 16384x16352) [terrain, mipmap, linear-minification, linear-mip-level]
   6.081 Created an atlas bitmap (size 16384x4944) [terrain, mipmap, linear-minification, linear-mip-level]
   6.081 Created an atlas bitmap (size 8192x5728) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   6.081 Created an atlas bitmap (size 8192x2608) [mipmap]
   6.081 Created an atlas bitmap (size 3504x768) [mipmap]
   6.081 Created an atlas bitmap (size 4096x3152) [mipmap]
   6.081 Created an atlas bitmap (size 4096x3152) [mipmap]
   6.081 Created an atlas bitmap (size 4096x3152) [mipmap]
   6.081 Created an atlas bitmap (size 8192x3872) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   6.081 Created an atlas bitmap (size 16384x6120) [alpha-mask]
   6.102 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
   6.106 Created an atlas bitmap (size 16384x16340) [shadow, linear-magnification, alpha-mask]
   6.106 Created an atlas bitmap (size 16384x3788) [shadow, linear-magnification, alpha-mask]
   6.106 Created an atlas bitmap (size 8192x4000) [shadow, mipmap, linear-magnification, alpha-mask]
   6.106 Created an atlas bitmap (size 4096x336) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   6.106 Loading 3D bitmaps.
   6.138 Texture processor created (4096). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   6.232 Parallel sprite loader initialized (threads: 7, bitmaps: 8366)
  46.558 Sprites loaded
  46.596 Generated mipmaps (4) for atlas [4] of size 16384x16352   
  46.600 Generated mipmaps (4) for atlas [5] of size 4096x1664   
  46.608 Generated mipmaps (3) for atlas [10] of size 16384x4256   
  46.615 Generated mipmaps (3) for atlas [11] of size 4096x3040   
  46.632 Generated mipmaps (3) for atlas [12] of size 16384x16352   
  46.639 Generated mipmaps (3) for atlas [13] of size 16384x4944   
  46.642 Generated mipmaps (3) for atlas [14] of size 8192x5728   
  46.694 Generated mipmaps (3) for atlas [15] of size 8192x2608   
  46.697 Generated mipmaps (3) for atlas [16] of size 3504x768   
  46.699 Generated mipmaps (3) for atlas [17] of size 4096x3152   
  46.731 Generated mipmaps (3) for atlas [18] of size 4096x3152   
  46.733 Generated mipmaps (3) for atlas [19] of size 4096x3152   
  46.757 Generated mipmaps (5) for atlas [20] of size 8192x3872   
  46.763 Generated mipmaps (3) for atlas [25] of size 8192x4000   
  46.783 Custom mipmaps uploaded (3441)
  46.796 Video memory usage: 3599.37 MB (Atlases: 3469.07 MB, Textures: 130.30 MB)
  46.879 Factorio initialised
  46.888 Steam Storage Quota: 18918/23841
  53.942 Loading map /Users/me/Library/Application Support/factorio/saves/game2-111.zip: 59166884 bytes.
  53.974 Loading level.dat: 161348513 bytes.
  53.986 Info Scenario.cpp:153: Map version 2.0.45-2
  55.275 Loading blueprint storage: Local timestamp 1745491751, Cloud timestamp 1745491751
  55.282 Loading script.dat: 1222 bytes.
  55.290 Checksum for script __level__/control.lua: 2734153661
 196.891 Info AppManager.cpp:323: Saving to _autosave3 (blocking).
 197.977 Info AppManagerStates.cpp:2097: Saving finished
 498.477 Info AppManager.cpp:323: Saving to _autosave1 (blocking).
 499.521 Info AppManagerStates.cpp:2097: Saving finished
 799.583 Info AppManager.cpp:323: Saving to _autosave2 (blocking).
 800.605 Info AppManagerStates.cpp:2097: Saving finished
1100.963 Info AppManager.cpp:323: Saving to _autosave3 (blocking).
1101.940 Info AppManagerStates.cpp:2097: Saving finished
1402.630 Info AppManager.cpp:323: Saving to _autosave1 (blocking).
1403.655 Info AppManagerStates.cpp:2097: Saving finished
1707.029 Info AppManager.cpp:323: Saving to _autosave2 (blocking).
1708.009 Info AppManagerStates.cpp:2097: Saving finished
2012.979 Info AppManager.cpp:323: Saving to _autosave3 (blocking).
2013.957 Info AppManagerStates.cpp:2097: Saving finished
2315.162 Info AppManager.cpp:323: Saving to _autosave1 (blocking).
2316.173 Info AppManagerStates.cpp:2097: Saving finished
2617.868 Info AppManager.cpp:323: Saving to _autosave2 (blocking).
2618.828 Info AppManagerStates.cpp:2097: Saving finished
2921.660 Info AppManager.cpp:323: Saving to _autosave3 (blocking).
2922.623 Info AppManagerStates.cpp:2097: Saving finished
7251.981 Time travel logging:
 657.091 Popped blueprint record (player-index: 65535, ID: 282) from book (player-index: 65535, ID: 66)
7251.982 Error CrashHandler.cpp:641: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (334): writeStacktrace
src/Util/Logger.cpp (379): logStacktrace
src/Util/CrashHandler.cpp (181): writeStackTrace
src/Util/CrashHandler.cpp (644): commonSignalHandler
src/Util/CrashHandler.cpp (652): SignalHandler
0x195073623
libraries/metal-cpp/Foundation/NSObject.hpp (216): sendMessage<MTL::CommandBuffer *>
libraries/metal-cpp/Foundation/NSObject.hpp (106): retain
libraries/metal-cpp/Foundation/NSSharedPtr.hpp (174): SharedPtr
libraries/metal-cpp/Foundation/NSSharedPtr.hpp (175): SharedPtr
src/Graphics/Metal/MetalUnlocker.hpp (20): getCommandBuffer
src/Graphics/Metal/MetalResourceLock.cpp (14): isLocked
libraries/metal-cpp/Foundation/NSObject.hpp (216): sendMessage<MTL::CommandBuffer *>
libraries/metal-cpp/Foundation/NSObject.hpp (106): retain
libraries/metal-cpp/Foundation/NSSharedPtr.hpp (174): SharedPtr
libraries/metal-cpp/Foundation/NSSharedPtr.hpp (175): SharedPtr
src/Graphics/Metal/MetalUnlocker.hpp (20): getCommandBuffer
src/Graphics/Metal/MetalResourceLock.cpp (14): isLocked
src/Graphics/Metal/MetalBufferPool.cpp (62): obtainNext
src/Graphics/Metal/BufferPoolVideoBufferMetal.cpp (62): mapBuffer
src/Graphics/StreamedVertexBuffer.hpp (88): startBatch
src/Graphics/DrawCommandBatch.cpp (537): flushTextBatch
src/Graphics/DrawCommandBatch.cpp (2181): flush
src/Graphics/GraphicsInterface.cpp (247): flushDrawCommandBatch
src/Graphics/Metal/GraphicsInterfaceMetal.cpp (805): bindFramebuffer
src/Util/ScopedBind.hpp (10): ScopedBind
src/Util/ScopedBind.hpp (9): ScopedBind
src/Util/ScopedBind.hpp (13): ScopedBind
src/Graphics/GuiRenderer.cpp (85): render
src/GlobalContext.cpp (1470): renderGui
src/MainLoop.cpp (1562): render
src/MainLoop.cpp (778): mainLoopStep
src/MainLoop.cpp (414): run
src/Main.cpp (1364): fmain
src/Main.cpp (1386): main
Stack trace logging done
7254.154 Error CrashHandler.cpp:190: Map tick at moment of crash: 151586788
7254.154 Uploading log file
7254.164 Info SystemUtil.cpp:869: Started /Users/me/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio; trampoline PID: 41538
7254.164 Error Util.cpp:95: 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.

factorio-current.log
(11.23 KiB) Downloaded 21 times
Post Reply

Return to “Duplicates”