Skip to content

[macOS] Lua VM allocation fails at startup; null dereference in libserver.dylib on Intel MacBook Pro 2016 #3579

Open

Description

@vitaliecaimacan-oss

Summary

Dota 2 exits during startup on a 2016 Intel MacBook Pro running macOS Sequoia via OpenCore Legacy Patcher (OCLP). The game initializes Steam, Vulkan, the client, and the local server. During server startup, VScript reports a failed 1 MiB Lua allocation, cannot create the Lua VM, and the process crashes in libserver.dylib while initializing CPlayerVoiceListener.

This report describes the observed failure; the underlying reason the Lua allocation fails is not known.

System

  • Model: MacBookPro13,3 (MacBook Pro 15-inch, 2016)
  • CPU: Quad-Core Intel Core i7, 2.7 GHz
  • Memory: 16 GB
  • GPUs: Intel HD Graphics 530; AMD Radeon Pro 455 (2 GB)
  • Metal: Metal 2 reported for both GPUs
  • OS: macOS Sequoia 15.8.2, build 24H232; Darwin 24.6.0
  • OCLP: 2.5.1; Intel Skylake and AMD Polaris root patches installed
  • Steam client build observed in Steam logs: 1792618285
  • Dota 2 app build: 26253230 (AppID 570)

This Mac model is outside Apple’s supported Sequoia model list; Sequoia is running through OCLP.

Reproduction

  1. Start Steam and launch Dota 2. It also reproduces when launching the game executable while the Steam client is running.
  2. The game initializes the client and local server, enters game loop mode, then exits during initial server startup.

Representative final console lines:

[Server] CNetworkGameServerBase::SetServerState (ss_dead -> ss_waitingforgamesessionmanifest)
[Server] SV: maxplayers set to 1
[VScript] WARNING: Lua allocation of 1048576 failed
[VScript] WARNING: Lua unable to create VM

An LLDB-captured reproduction continues:

VM Did not start!
CPlayerVoiceListener::GameInit()
EXC_BAD_ACCESS (code=1, address=0x0)
libserver.dylib + 0x1ee935d
movq   (%rbx), %rcx   ; RBX = 0

Tests performed

The crash persists after Steam file verification, safe/autoconfig launch options, audio suppression, a clean local Dota config, and tests with both GPUs. With -adapter 1, the game selects Intel HD Graphics 530 and still fails; the default adapter selects AMD Radeon Pro 455 and also fails. The -gl flag does not switch this build away from Vulkan in the console log.

One-shot tests with MallocNanoZone=0 and MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=0, and startup command +voice_enable 0, did not resolve it. The Steam overlay was absent from the captured module list. System memory and process address-space limits were not exhausted.

The console also prints repeated “No valid vcs file found for shader generic.vfx” warnings. The captured log does not show VK_ERROR_DEVICE_LOST or a Vulkan descriptor-pool allocation failure, so it is unclear whether those shader warnings are related.

Request

Please investigate why Lua VM initialization reports a failed 1 MiB allocation during initial local server startup and then crashes in CPlayerVoiceListener::GameInit() instead of handling the failed VM creation. Is this a known macOS/Source 2 issue, and is there a workaround or additional diagnostic flag that would identify the allocation failure?

CrashID=bp-6e7f2c67-175f-4ac4-a076-fa0702261031.dmp
lldb-trace.redacted.txt

console-redacted.log

Activity

  1. ORISBIT commented on Nov 26, 2026

    @ORISBIT

    Same issue here, different model:

    • Model: iMac18,3 (iMac Retina 5K, 27-inch, 2017)
    • CPU: Intel Core i5 3.4 GHz quad-core
    • Memory: 16 GB
    • GPU: AMD Radeon Pro 570 (4 GB), Metal: Supported
    • OS: macOS Sequoia, build 24H241, via OpenCore Legacy Patcher
    • Booting from an external Thunderbolt 3 NVMe SSD

    Same final console lines (with -condebug):
    [Server] CNetworkGameServerBase::SetServerState (ss_dead -> ss_waitingforgamesessionmanifest)
    [Server] SV: maxplayers set to 1
    [VScript] WARNING: Lua allocation of 1048576 failed
    [VScript] WARNING: Lua unable to create VM
    CPlayerVoiceListener::GameInit()

    The game exits right after this. No crash report is generated in
    ~/Library/Logs/DiagnosticReports. Verifying game files and -autoconfig did not help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions