[StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

This subforum contains all the issues which we already resolved.
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

[StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

My server is crashing running Space Age.

macOS High Sierra / 10.13.6
Intel Core i7 / 32GB

Code: Select all

dyld: lazy symbol binding failed: Symbol not found: _aligned_alloc
  Referenced from: /Users/peter/factorio/../factorio.app/Contents/MacOS/factorio
  Expected in: /usr/lib/libSystem.B.dylib
Any suggestions? Full output and factorio-current.log below.

Thanks.

Code: Select all

   0.000 2024-10-21 20:46:30; Factorio 2.0.7 (build 79385, mac-x64, steam)
   0.000 Operating system: macOS 10.13.6
   0.000 Program arguments: "../factorio.app/Contents/MacOS/factorio" "--start-server" "MAP" "--server-settings" "./server-settings.json" "--server-banlist" "./banlist.json" "--server-adminlist" "./adminlist.json" "--console-log" "./console.log" 
   0.000 Config path: /Users/peter/Library/Application Support/factorio/config/config.ini
   0.000 Read data path: /Users/peter/factorio.app/Contents/data
   0.000 Write data path: /Users/peter/Library/Application Support/factorio [340729/953669MB]
   0.000 Binaries path: /Users/peter/factorio.app/Contents
   0.026 System info: [CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, 8 cores, RAM: 32768 MB]
   0.027 Running in headless mode
   0.027 Audio is disabled
   0.027 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   0.027 Info ModManager.cpp:434: FeatureFlag freezing = true
   0.027 Info ModManager.cpp:434: FeatureFlag quality = true
   0.027 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   0.027 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   0.027 Info ModManager.cpp:434: FeatureFlag space-travel = true
   0.027 Info ModManager.cpp:434: FeatureFlag spoiling = true
   0.030 Loading mod core 0.0.0 (data.lua)
   0.045 Loading mod base 2.0.7 (data.lua)
   0.208 Loading mod elevated-rails 2.0.7 (data.lua)
   0.230 Loading mod quality 2.0.7 (data.lua)
   0.241 Loading mod space-age 2.0.7 (data.lua)
   0.469 Loading mod base 2.0.7 (data-updates.lua)
   0.482 Loading mod quality 2.0.7 (data-updates.lua)
   0.501 Loading mod space-age 2.0.7 (data-updates.lua)
   0.614 Checksum for core: 649243273
   0.614 Checksum of base: 2653731351
   0.614 Checksum of elevated-rails: 1891730324
   0.614 Checksum of quality: 3715527832
   0.614 Checksum of space-age: 3499025889
   1.024 Prototype list checksum: 984080119
   1.117 Info PlayerData.cpp:68: Local player-data.json unavailable
   1.117 Info PlayerData.cpp:73: Cloud player-data.json unavailable
   1.118 Factorio initialised
   1.118 Warning FileUtil.cpp:587: MAP not found; using MAP.zip
   1.118 Info ServerSynchronizer.cpp:22: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   1.118 Info ServerMultiplayerManager.cpp:805: updateTick(18446744073709551615) changing state from(Ready) to(PreparedToHostGame)
   1.118 Info ServerMultiplayerManager.cpp:805: updateTick(18446744073709551615) changing state from(PreparedToHostGame) to(CreatingGame)
   1.118 Loading map /Users/peter/factorio/MAP.zip: 3079153 bytes.
   1.153 Loading level.dat: 9257350 bytes.
   1.158 Info Scenario.cpp:178: Map version 2.0.7-0
   2.035 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
   2.148 Loading script.dat: 276523 bytes.
   2.151 Checksum for script __level__/control.lua: 2463946943
   2.153 Info UDPSocket.cpp:32: Opening socket at (IP ADDR:({0.0.0.0:34197}))
   2.153 Hosting game at IP ADDR:({0.0.0.0:34197})
   2.153 Info HttpSharedState.cpp:55: Downloading https://auth.factorio.com/generate-server-padlock-2?api_version=6
   2.617 Info AuthServerConnector.cpp:94: Obtained serverPadlock for serverHash (e8JAvOjJsYENQD9QTvYggtCGW0QMOZtD) from the auth server.
   2.617 Info ServerMultiplayerManager.cpp:805: updateTick(829) changing state from(CreatingGame) to(InGame)
   2.992 Info ServerRouter.cpp:668: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197, pingpong3.factorio.com:34197, pingpong4.factorio.com:34197) for own address
   2.992 Info UDPSocket.cpp:44: Opening socket for broadcast
   2.992 Info CommandLineMultiplayer.cpp:292: Maximum segment size = 100; minimum segment size = 25; maximum-segment-size peer count = 10; minimum-segment-size peer count = 20
   3.260 Info ServerRouter.cpp:547: Own address is IP ADDR:({49.176.252.47:34197}) (confirmed by pingpong3)
   3.260 Info ServerRouter.cpp:547: Own address is IP ADDR:({49.176.252.47:34197}) (confirmed by pingpong1)
   3.343 Info ServerRouter.cpp:547: Own address is IP ADDR:({49.176.252.47:34197}) (confirmed by pingpong2)
   4.433 Info MatchingServer.cpp:122: Matching server game `18689965` has been created.
   4.445 Info ServerMultiplayerManager.cpp:735: Matching server connection resumed
  10.696 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({10.0.0.3:62063}))
  10.696 Info ServerRouter.cpp:634: Generated hmac(QSCtSk5GAT1TfGpVzN6maA==) and serverKey(IalGOxMqf/qh+S0FaiVDzw==) for username(peternlewis) differ. Generated from message(peternlewis_n7XvbTe45qS5kgD6tAHJy8B6E06kXykggmWtZYijXn8=_241021123901).
  10.696 Refusing connection for address (IP ADDR:({10.0.0.3:62063})), username (peternlewis). UserVerificationMismatch
  11.046 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({10.0.0.3:64287}))
  11.046 Refusing connection for address (IP ADDR:({10.0.0.3:64287})), username (peternlewis). ModsMismatch
  43.047 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({10.0.0.3:49444}))
  43.047 Refusing connection for address (IP ADDR:({10.0.0.3:49444})), username (peternlewis). UserVerificationMissing
  44.163 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({10.0.0.3:64495}))
  44.163 Info ServerRouter.cpp:465: Replying to connectionRequest for address(IP ADDR:({10.0.0.3:64495})).
  44.163 Info ServerSynchronizer.cpp:594: nextHeartbeatSequenceNumber(2469) adding peer(1)
  44.181 Info ServerMultiplayerManager.cpp:805: updateTick(829) changing state from(InGame) to(InGameSavingMap)
  44.193 Info ServerMultiplayerManager.cpp:975: updateTick(829) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
  44.326 Info ServerMultiplayerManager.cpp:1036: UpdateTick(829) Serving map(/Users/peter/Library/Application Support/factorio/temp/mp-save-0.zip) for peer(1) size(3036237) auxiliary(349) crc(2072940638)
  44.326 Info ServerMultiplayerManager.cpp:805: updateTick(829) changing state from(InGameSavingMap) to(InGame)
  44.392 Info ServerMultiplayerManager.cpp:975: updateTick(829) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  45.229 Info ServerMultiplayerManager.cpp:975: updateTick(829) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  45.643 Info ServerMultiplayerManager.cpp:975: updateTick(829) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
  45.643 Info ServerMultiplayerManager.cpp:975: updateTick(829) received stateChanged peerID(1) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
  45.660 Info GameActionHandler.cpp:4300: UpdateTick (829) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect) 
  45.812 Info ServerMultiplayerManager.cpp:975: updateTick(838) received stateChanged peerID(1) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
2024-10-21 20:47:16 [JOIN] peternlewis joined the game
 120.129 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({129.1.194.109:31421}))
 120.129 Refusing connection for address (IP ADDR:({129.1.194.109:31421})), username (C4extreme_2020). UserVerificationMissing
 120.895 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({129.1.194.109:28274}))
 120.895 Refusing connection for address (IP ADDR:({129.1.194.109:28274})), username (C4extreme_2020). ModsMismatch
2024-10-21 20:48:31 [COLOR] peternlewis's color is now 255 153 51.
 130.346 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({129.1.194.109:15080}))
 130.346 Refusing connection for address (IP ADDR:({129.1.194.109:15080})), username (C4extreme_2020). UserVerificationMissing
 130.976 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({129.1.194.109:50794}))
 130.976 Refusing connection for address (IP ADDR:({129.1.194.109:50794})), username (C4extreme_2020). ModsMismatch
 155.946 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({129.1.194.109:33614}))
 155.946 Refusing connection for address (IP ADDR:({129.1.194.109:33614})), username (C4extreme_2020). UserVerificationMissing
 156.896 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({129.1.194.109:10294}))
 156.896 Info ServerRouter.cpp:465: Replying to connectionRequest for address(IP ADDR:({129.1.194.109:10294})).
 156.896 Info ServerSynchronizer.cpp:594: nextHeartbeatSequenceNumber(9225) adding peer(2)
 156.912 Info ServerMultiplayerManager.cpp:805: updateTick(7500) changing state from(InGame) to(InGameSavingMap)
 157.013 Info ServerMultiplayerManager.cpp:1036: UpdateTick(7500) Serving map(/Users/peter/Library/Application Support/factorio/temp/mp-save-1.zip) for peer(2) size(1782591) auxiliary(349) crc(2322260930)
 157.013 Info ServerMultiplayerManager.cpp:805: updateTick(7500) changing state from(InGameSavingMap) to(InGame)
 157.196 Info ServerMultiplayerManager.cpp:975: updateTick(7510) received stateChanged peerID(2) oldState(Ready) newState(ConnectedWaitingForMap)
 157.396 Info ServerMultiplayerManager.cpp:975: updateTick(7522) received stateChanged peerID(2) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
 158.296 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({219.79.111.105:57636}))
 158.296 Refusing connection for address (IP ADDR:({219.79.111.105:57636})), username (Yeetan). UserVerificationMissing
 159.446 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({219.79.111.105:64781}))
 159.446 Refusing connection for address (IP ADDR:({219.79.111.105:64781})), username (Yeetan). ModsMismatch
 160.312 Info ServerMultiplayerManager.cpp:975: updateTick(7697) received stateChanged peerID(2) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
 160.793 Info ServerMultiplayerManager.cpp:975: updateTick(7726) received stateChanged peerID(2) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
 161.145 Info ServerMultiplayerManager.cpp:975: updateTick(7747) received stateChanged peerID(2) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
 161.146 Info GameActionHandler.cpp:4300: UpdateTick (7747) processed PlayerJoinGame peerID(2) playerIndex(1) mode(create) 
 161.527 Info ServerMultiplayerManager.cpp:975: updateTick(7770) received stateChanged peerID(2) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
2024-10-21 20:49:11 [JOIN] C4extreme_2020 joined the game
2024-10-21 20:49:20 [CHAT] peternlewis: This is going well so far…
2024-10-21 20:49:28 [CHAT] C4extreme_2020: indeed
 198.078 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({219.79.111.105:64731}))
 198.078 Refusing connection for address (IP ADDR:({219.79.111.105:64731})), username (Yeetan). UserVerificationMissing
 199.429 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({219.79.111.105:51864}))
 199.429 Info ServerRouter.cpp:465: Replying to connectionRequest for address(IP ADDR:({219.79.111.105:51864})).
 199.429 Info ServerSynchronizer.cpp:594: nextHeartbeatSequenceNumber(11777) adding peer(3)
 199.447 Info ServerMultiplayerManager.cpp:805: updateTick(10045) changing state from(InGame) to(InGameSavingMap)
 199.542 Info ServerMultiplayerManager.cpp:1036: UpdateTick(10045) Serving map(/Users/peter/Library/Application Support/factorio/temp/mp-save-2.zip) for peer(3) size(1917722) auxiliary(349) crc(4042524544)
 199.543 Info ServerMultiplayerManager.cpp:805: updateTick(10045) changing state from(InGameSavingMap) to(InGame)
 199.629 Info ServerMultiplayerManager.cpp:975: updateTick(10049) received stateChanged peerID(3) oldState(Ready) newState(ConnectedWaitingForMap)
 199.746 Info ServerMultiplayerManager.cpp:975: updateTick(10056) received stateChanged peerID(3) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
dyld: lazy symbol binding failed: Symbol not found: _aligned_alloc
  Referenced from: /Users/peter/factorio/../factorio.app/Contents/MacOS/factorio
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _aligned_alloc
  Referenced from: /Users/peter/factorio/../factorio.app/Contents/MacOS/factorio
  Expected in: /usr/lib/libSystem.B.dylib

 202.343 Error CrashHandler.cpp:643: Received 6
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 (183): writeStackTrace
src/Util/CrashHandler.cpp (644): commonSignalHandler
src/Util/CrashHandler.cpp (652): SignalHandler
0x7fff6222bf59
Stack trace logging done
 205.238 Error CrashHandler.cpp:190: Map tick at moment of crash: 10212
 205.238 Uploading log file
 205.252 Info SystemUtil.cpp:877: Started /Users/peter/factorio.app/Contents/MacOS/factorio; trampoline PID: 62178
 205.252 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.

------------- Error -------------
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.

Log file location: /Users/peter/Library/Application Support/factorio/factorio-current.log

Would you like to open the folder containing the log file?
---------------------------------
Attachments
factorio-current.log
(12.67 KiB) Downloaded 20 times
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by StrangePan »

Hello, thank you for the report. Does this issue occur with a specific save file? If so, can you upload it?
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

Yes, it occurred with a new save file.

Initially I had some basic mods (eg Factory Planner), but I removed them all to see if it would avoid crashing, but even without any mods the crash continued to happen after a minute or two (by that point usually a couple people joined).

I've attached the MAP.zip and the server-settings.json (with credentials removed).

Game is run with the command:

Code: Select all

../factorio.app/Contents/MacOS/factorio --start-server MAP --server-settings ./server-settings.json --server-banlist ./banlist.json --server-adminlist ./adminlist.json --console-log ./console.log
Crash happened repeatedly each time it was restarted even after removing all mods.
Attachments
server-settings.json
(3.25 KiB) Downloaded 13 times
MAP.zip
(2.94 MiB) Downloaded 16 times
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

I tried an entirely new MAP, no mods, and the crash continues to happen after about 10 minutes.

I thought maybe it was autosave, given the timing, but it appears a little longer or related to something that happens after around that time.

Code: Select all

2024-10-22 09:02:56 [CHAT] peternlewis: "a" is just a time log
2024-10-22 09:04:09 [CHAT] peternlewis: a
2024-10-22 09:05:00 [CHAT] peternlewis: a
 599.546 Info AppManager.cpp:310: Saving to _autosave1 (blocking).
 599.643 Info AppManagerStates.cpp:2045: Saving finished
2024-10-22 09:05:22 [CHAT] peternlewis: a
2024-10-22 09:05:42 [CHAT] peternlewis: hmm, my theory is ruined by it doing an autosave just now
2024-10-22 09:07:17 [CHAT] peternlewis: a
dyld: lazy symbol binding failed: Symbol not found: _aligned_alloc
  Referenced from: /Users/peter/factorio/../factorio.app/Contents/MacOS/factorio
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _aligned_alloc
  Referenced from: /Users/peter/factorio/../factorio.app/Contents/MacOS/factorio
  Expected in: /usr/lib/libSystem.B.dylib
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

Also, the crash continues in Factorio 2.0.8 (build 79416, mac-x64, steam)

Thanks.
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by StrangePan »

Thank you for the additional info!
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

My very learned Apple DTS friend Quinn says:
It seems like a public libSystem symbol that was added in 10.15. This is its declaration the macOS 10.15 SDK:

void *aligned_alloc(size_t __alignment, size_t __size) __result_use_check __alloc_size(2) __OSX_AVAILABLE(10.15) …;
So if aligned_alloc is being used anywhere, it needs to be gated on >10.15 and an alternative on 10.13/10.14 would be needed.

Thanks.
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

The crash continues in Factorio 2.0.9.
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by StrangePan »

peternlewis wrote: Wed Oct 23, 2024 3:34 am My very learned Apple DTS friend Quinn says:
It seems like a public libSystem symbol that was added in 10.15. This is its declaration the macOS 10.15 SDK:

void *aligned_alloc(size_t __alignment, size_t __size) __result_use_check __alloc_size(2) __OSX_AVAILABLE(10.15) …;
So if aligned_alloc is being used anywhere, it needs to be gated on >10.15 and an alternative on 10.13/10.14 would be needed.

Thanks.
Thank you (and your friend) for this information; I was able to narrow down the source of the problems to build system changes made during 2.0 development a while back and correct the issue. I'm not sure yet how long it'll take for us to roll out the fix, if it'll be done before or after this weekend, but I'll update this thread when I do.
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by StrangePan »

Fix is verified. We're working fast to get it ready for release by this weekend.
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

Thanks, that is excellent news!

I look forward to verifying the fix.

Much appreciated - you folks are awesome, I hope the launch is going well for you!
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by StrangePan »

Ok, marking this as "resolved for next release". Please post here again if the issues persist in 2.0.11.
peternlewis
Inserter
Inserter
Posts: 49
Joined: Mon Aug 27, 2018 4:40 am
Contact:

Re: [StrangePan][2.0.7] Crash headless macOS 10.13, no stacktrace

Post by peternlewis »

Confirmed fixed as far as I can tell - no more crashes on the server.

You folks are awesome.
Post Reply

Return to “Resolved Problems and Bugs”