ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
470 stars 38 forks source link

Game doesn't start on OSX, ignores vulkan launch flags #2099

Open jdecked opened 2 years ago

jdecked commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.

Expected: Dota launches with -vulkan flag either when set in launch options from Steam or passed in from command line, using Vulkan like I've told it to Actual: Dota tries starting up, then this error appears: Screen Shot 2022-08-07 at 10 20 23 PM

Then Dota shuts itself down.

This bug happens to me every few months and seems disconnected from the timing of OS, Dota, or Steam updates. It's most similar to #1904 which was eventually resolved by the bug reporter after restarting + redownloading dota multiple times – usually this is also what works for me, but not this time. I was able to play fine yesterday but today I tried opening dota from Steam and Steam froze my entire computer, so I restarted the computer – and then this problem appeared again.

From command line:

$ ./dota.sh -vulkan -vconsole -con_logfile
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/Users/<$USER redacted>/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/steamclient.dylib' OK.
Setting breakpad minidump AppID = 570
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
found breakpad via in process memory: '/Users/<$USER redacted>/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/Frameworks/Breakpad.framework/Versions/A/Resources'
Installing breakpad crash handler
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamID:  0, universe Public
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  <steam ID redacted> [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  <steam ID redacted>
SteamID:  <steam ID redacted>, universe Public
SteamID:  0, universe Public
Setting breakpad minidump AppID = 373300
Attempting to create OpenGL context: v3.3 (Core profile)...failed.
Attempting to create OpenGL context: v3.1 (Core profile)...failed.

And the contents of ~/Library/Application Support/Steam/steamapps/common/dota 2 beta/game/dota/console.log:

$ cat dota/console.log
08/07 22:05:48 [RenderSystem] Failed to create an OpenGL context.
08/07 22:05:48 [RenderSystem] Unable to create dummy context for GLMDisplayDB.
08/07 22:05:48 [Localization System] virtual const char *CLocalize::FindSafe(const char *) failed to localize: Failed to create an OpenGL context.
Your graphics card must support at least OpenGL v3.1.

I've also tried the -gl launch option but it doesn't seem to make a difference. I've also ensured that Dota isn't being blocked by antivirus software. Please good folks I just want to play one (1) game of Dota as a treat.

Steps for reproducing this issue:

  1. Open dota on a mac
  2. ???
  3. Do not profit.
viciecal commented 2 years ago

+1

z0s0 commented 2 years ago

this happens randomly, sometimes u can launch the game a few hours later without even rebooting the machine

it persists for a year or more but apparently nobody will fix it