Skip to content

Crash when client attempts to unload map

either disconnect, map, changelevel, anything that attempts to unload the current level causes a crash.

Backtrace instance of map change:

* thread #1, name = 'MainThrd', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xb1fee902)
  * frame #0: 0x2391fb9b client.dylib`ClientModeShared::LevelShutdown() + 43
    frame #1: 0x23ab581a client.dylib`CHLModeManager::LevelShutdown() + 26
    frame #2: 0x2390a58e client.dylib`CHLClient::LevelShutdown() + 78
    frame #3: 0x0f8a672c engine.dylib`CL_ClearState() + 380
    frame #4: 0x0fa1d0b0 engine.dylib`CClientState::Disconnect(char const*, bool) + 256
    frame #5: 0x0f96ebaa engine.dylib`Host_Map_Helper(CCommand const&, bool, bool, bool) + 650
    frame #6: 0x0f96edc9 engine.dylib`Host_Map_f(CCommand const&) + 41
    frame #7: 0x0fb93e70 engine.dylib`ConCommand::Dispatch(CCommand const&) + 32
    frame #8: 0x19d80867 synergy.dylib`ContentManager::Server_EngineCommandInterject(CCommand const&) + 2359
    frame #9: 0x19db6720 synergy.dylib`ConCommand::Dispatch(CCommand const&) + 32
    frame #10: 0x0f8c8510 engine.dylib`Cmd_ExecuteCommand(CCommand const&, cmd_source_t, int) + 1232
    frame #11: 0x0f8c6e18 engine.dylib`Cbuf_Execute() + 408
    frame #12: 0x0f9682a1 engine.dylib`_Host_RunFrame(float) + 1201
    frame #13: 0x0f98416c engine.dylib`CHostState::State_Run(float) + 348
    frame #14: 0x0f98351f engine.dylib`CHostState::FrameUpdate(float) + 671
    frame #15: 0x0f983275 engine.dylib`HostState_Frame(float) + 37
    frame #16: 0x0fa7104c engine.dylib`CEngine::Frame() + 1244
    frame #17: 0x0fa6ddce engine.dylib`CEngineAPI::MainLoop() + 478
    frame #18: 0x0fa6e94e engine.dylib`CModAppSystemGroup::Main() + 206
    frame #19: 0x0fb84592 engine.dylib`CAppSystemGroup::Run() + 98
    frame #20: 0x0fa6e0f6 engine.dylib`CEngineAPI::RunListenServer() + 102
    frame #21: 0x0597c54a launcher_core.dylib`CSourceAppSystemGroup::Main() + 26
    frame #22: 0x059891d2 launcher_core.dylib`CAppSystemGroup::Run() + 98
    frame #23: 0x0598d09b launcher_core.dylib`CSteamApplication::Main() + 43
    frame #24: 0x059891d2 launcher_core.dylib`CAppSystemGroup::Run() + 98
    frame #25: 0x0597cba0 launcher_core.dylib`LauncherMain + 960
    frame #26: 0x00001de5 hl2_osx`start + 53