Dota2-Gameplay icon indicating copy to clipboard operation
Dota2-Gameplay copied to clipboard

MacOS crash

Open nikbann opened this issue 4 months ago • 10 comments

Description

Crash when clicking on "team bundles" after opening international menu on MacOS. Here is part of my crash report:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process:             dota2 [4021]
Path:                /Users/USER/Library/Application Support/Steam/*/dota2.app/Contents/MacOS/dota2
Identifier:          com.valvesoftware.dota2
Version:             1.0.0
Code Type:           X86-64 (Translated)
Role:                Foreground
Parent Process:      bash [4016]
Coalition:           com.valvesoftware.steam [1351]
Responsible Process: steam_osx [1695]
User ID:             501

Date/Time:           2026-07-31 11:55:43.7834 +0700
Launch Time:         2026-07-31 11:53:51.0964 +0700
Hardware Model:      Mac15,9
OS Version:          macOS 26.5.2 (25F84)
Release Type:        User

Crash Reporter Key:  12F4A12A-4EE3-83CD-F027-5BC8B4BB1EC8
Incident Identifier: 185401C5-0D59-422D-BF9E-9430A04CE34D

Sleep/Wake UUID:       C16C454B-32E5-48C3-88CD-FA3A7304D4AB

Time Awake Since Boot: 15000 seconds
Time Since Wake:       1453 seconds

System Integrity Protection: enabled

Triggered by Thread: 3

Exception Type:    EXC_GUARD
Exception Subtype: GUARD_TYPE_MACH_PORT
Exception Message:  INVALID_OPTIONS on mach port 0 (guarded with 0x8001430200000003)
Exception Codes:   0x0000000009c00000, 0x8001430200000003

Termination Reason:  Namespace GUARD, Code 2305843022098595840, 

Thread 0:: MainThrd Dispatch queue: com.apple.main-thread
0   ???                           	    0x7ff8a7d6101c ???
1   libsystem_c.dylib             	    0x7ff81b742965 __vfprintf + 4717
2   libsystem_c.dylib             	    0x7ff81b771490 _vsnprintf + 242
3   libsystem_c.dylib             	    0x7ff81b746121 vsnprintf + 68
4   libtier0.dylib                	         0x668f176 V_vsnprintfSize + 54
5   libtier0.dylib                	         0x6533a5d CBufferString::AppendFormatV(char const*, __va_list_tag*) + 317
6   libclient.dylib               	        0xd4142fbc 0xd4124000 + 126908
7   libclient.dylib               	        0xd7369764 0xd4124000 + 52713316
8   libclient.dylib               	        0xd7369a85 0xd4124000 + 52714117
9   libclient.dylib               	        0xd736a770 0xd4124000 + 52717424
10  libpanorama.dylib             	        0xbee67fec 0xbee4b000 + 118764
11  libpanorama.dylib             	        0xbee66f5b 0xbee4b000 + 114523
12  libengine2.dylib              	        0x81088216 0x80df0000 + 2720278
13  libclient.dylib               	        0xd44653fa 0xd4124000 + 3412986
14  libengine2.dylib              	        0x80e96925 0x80df0000 + 682277
15  libengine2.dylib              	        0x80e96925 0x80df0000 + 682277
16  libengine2.dylib              	        0x80e91dca 0x80df0000 + 662986
17  libengine2.dylib              	        0x80e8fffa 0x80df0000 + 655354
18  libengine2.dylib              	        0x80e7463f 0x80df0000 + 542271
19  libengine2.dylib              	        0x80e74332 0x80df0000 + 541490
20  libengine2.dylib              	        0x80e6a5e9 0x80df0000 + 501225
21  libengine2.dylib              	        0x80e6b7bf 0x80df0000 + 505791
22  libengine2.dylib              	        0x80e6dbf9 Source2Main + 345
23  dota2                         	         0x4e9dc30 0x4e9a000 + 15408
24  dota2                         	         0x4e9db79 0x4e9a000 + 15225
25  dyld                          	       0x105236b28 start + 3240

Thread 3 Crashed:
0   ???                           	    0x7ff8a774ab80 ???
1   ???                           	    0x7ff8a7d0307c ???
2   libsystem_kernel.dylib        	    0x7ff81b879f57 mach_msg2_internal + 83
3   libsystem_kernel.dylib        	    0x7ff81b884923 exception_raise + 191
4   Breakpad                      	        0x808aeff6 google_breakpad::ForwardException(unsigned int, unsigned int, int, int*, unsigned int) + 182
5   libsystem_kernel.dylib        	    0x7ff81b884eec _Xexception_raise + 166
6   libsystem_kernel.dylib        	    0x7ff81b8851a7 exc_server + 97
7   Breakpad                      	        0x808afe94 google_breakpad::ExceptionHandler::WaitForMessage(void*) + 314
8   libsystem_pthread.dylib       	    0x7ff81b8afd49 _pthread_start + 115
9   libsystem_pthread.dylib       	    0x7ff81b8ab82f thread_start + 15

Model: Mac15,9, BootROM 18000.121.3, proc 16:12:4:0 processors, 48 GB, SMC 
Graphics: Apple M3 Max, Apple M3 Max, Built-In

### Example Match ID (and possibly Timestamp)

_No response_

### Screenshots

<img width="413" height="151" alt="Image" src="https://github.com/user-attachments/assets/eb40d7de-b094-479d-88ed-abe9adda3296" />

nikbann avatar Jul 31 '26 05:07 nikbann

Same issue on MacBook Pro M1 Pro, macOS 15.7.7. Dota crashes every time when opening the Compendium/International Team Bundles. Verified game files, cleared Panorama cache, tried -safe_mode, -gl and -vulkan — no change. Crash is reproducible 100%.

danchik123o1 avatar Jul 31 '26 07:07 danchik123o1

I have the same. Crashes when clicking on team bundles.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process:             dota2 [90567]
Path:                /Users/USER/Library/Application Support/Steam/*/dota2.app/Contents/MacOS/dota2
Identifier:          com.valvesoftware.dota2
Version:             1.0.0
Code Type:           X86-64 (Translated)
Role:                Background
Parent Process:      launchd [1]
Coalition:           com.valvesoftware.dota2 [103311]
User ID:             501

Date/Time:           2026-07-31 15:59:57.8981 +0800
Launch Time:         2026-07-31 15:58:46.6327 +0800
Hardware Model:      MacBookPro18,3
OS Version:          macOS 26.5.2 (25F84)
Release Type:        User

Crash Reporter Key:  BFD49908-0104-1B48-F418-BBF20346FD24
Incident Identifier: 4586E141-EF9B-4440-A2F7-C37E7637C74A

Time Awake Since Boot: 480000 seconds

System Integrity Protection: enabled

Triggered by Thread: 0  MainThrd, Dispatch Queue: com.apple.main-thread

Exception Type:    EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Codes:   0x0000000000000001, 0x0000000000000010

Termination Reason:  Namespace SIGNAL, Code 11, Segmentation fault: 11
Terminating Process: exc handler [90567]

~~~

Model: MacBookPro18,3, BootROM 18000.121.3, proc 8:6:2:0 processors, 16 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: HDMI, 1920 x 1080 (1080p FHD - Full High Definition), Main, MirrorOff, Online
Display: Color LCD, 3024 x 1964 Retina, MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Jan 20 2026 17:44:15 version 20.140.13.0.8.7.224 FWID 01-b2a3fd0d
IO80211_driverkit-1561.3 "IO80211_driverkit-1561.3" Apr 18 2026 17:42:26
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

lawlozano93 avatar Jul 31 '26 08:07 lawlozano93

same issue here

mylaluna avatar Jul 31 '26 08:07 mylaluna

Same issue here on 2025 MacBook Air M5 and MacOS 26.3.2

7z79m6kmz2-dev avatar Jul 31 '26 09:07 7z79m6kmz2-dev

same issue bro

azamadeus avatar Jul 31 '26 09:07 azamadeus

same issue

Olex-Engineering avatar Jul 31 '26 10:07 Olex-Engineering

Same crash here on macOS 26.5.2 / Apple Silicon, client 6877. I disassembled the shipped libclient.dylib against my crash dumps — here is the root cause. Full write-up in #34016.

Your backtrace offsets and mine are identical, so this is definitely one bug:

Frame Your report (#34008) Mine
6 + 126908 = 0x1efbc 0x1efbc
7 + 52713316 = 0x3245764 0x3245764
8 + 52714117 = 0x3245a85 0x3245a85
9 + 52717424 = 0x3246770 0x3246770

What's actually happening: the function that builds team fan-content logo paths passes two arguments to a three-conversion format string. Three instructions apart in the same function:

; .vtex_c lookup — CORRECT, 3 varargs
32457a0:  mov  rsi, [rbp-0x158]   ; "panorama/images/teamfancontent/season_%u/%u/teamlogo%s_png.vtex_c"
32457a7:  mov  edx, 0xc           ; %u  season
32457ac:  mov  ecx, r15d          ; %u  team id
32457af:  mov  r8,  r14           ; %s  "" or "_special"   <-- passed
32457b4:  call 0x1eee0

; file:// URL builder — BROKEN, 2 varargs
324574e:  mov  rsi, [rbp-0x148]   ; "file://{images}/teamfancontent/season_%u/%u/teamlogo%s.png"
3245755:  mov  edx, 0xd           ; %u  season
324575a:  mov  ecx, r15d          ; %u  team id
                                  ; %s  <-- NEVER SET; r8 holds junk from the preceding call
324575f:  call 0x1eee0            ; return address 0x3245764 == the crash frame

vsnprintf then reads that stale r8 as a char* and dereferences it. The registers confirm it: at the fault r10/r15 point into that format string at offsets 43 and 54 — exactly after the 2nd %u and after %s — and rdi (the %s pointer) is 0xf340e970, which is not inside any mapped image.

Why it hits Team Bundles specifically: the broken branch only runs when the team's logo texture is found. This patch shipped season_13 team logos for 16 teams under panorama/images/teamfancontent/season_13/, which made that path reachable for the first time. All three logo sizes (small/medium/full) go through the same function, and the season_12 fallback at +0x324586f has the identical missing argument.

So, for everyone in this thread:

  • Verifying game files, clearing Panorama/shader cache, and -safe_mode / -gl / -vulkan cannot help. The shipped assets are fine; the defect is in the code. Nothing on our side fixes it.
  • Only workaround is to avoid the Compendium pages that render team logos until Valve patches it. The rest of the client is unaffected.

One thing Valve should know: these crashes are probably not reaching your telemetry. Breakpad itself dies on the macOS 26 Mach-port guard while forwarding the exception (ExceptionHandler::WaitForMessage → ForwardException → EXC_GUARD / GUARD_TYPE_MACH_PORT), which is why the reported exception type is EXC_GUARD rather than the real EXC_BAD_ACCESS that lawlozano93 captured above. The upload likely never happens, so this may look far quieter internally than it is.

thequesha avatar Jul 31 '26 10:07 thequesha

Issue was resolved in last update! Thank you guys!

nikbann avatar Jul 31 '26 17:07 nikbann

But the same error now occurs 😂 Now i need to click "mid" button not "core duo"

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process:             dota2 [28823]
Path:                /Users/USER/Library/Application Support/Steam/*/dota2.app/Contents/MacOS/dota2
Identifier:          com.valvesoftware.dota2
Version:             1.0.0
Code Type:           X86-64 (Translated)
Role:                Foreground
Parent Process:      bash [28818]
Coalition:           com.valvesoftware.steam [1351]
Responsible Process: steam_osx [1695]
User ID:             501

Date/Time:           2026-08-01 00:13:48.5449 +0700
Launch Time:         2026-08-01 00:11:11.2692 +0700
Hardware Model:      Mac15,9
OS Version:          macOS 26.5.2 (25F84)
Release Type:        User

Crash Reporter Key:  12F4A12A-4EE3-83CD-F027-5BC8B4BB1EC8
Incident Identifier: 38F4B070-F4FD-4B67-9E16-DBAF0B2F0F88

Sleep/Wake UUID:       BD75A022-42A1-4C6F-9BB2-BCF8A984B765

Time Awake Since Boot: 52000 seconds
Time Since Wake:       9853 seconds

System Integrity Protection: enabled

Triggered by Thread: 2

Exception Type:    EXC_GUARD
Exception Subtype: GUARD_TYPE_MACH_PORT
Exception Message:  INVALID_OPTIONS on mach port 0 (guarded with 0x8001430200000003)
Exception Codes:   0x0000000009c00000, 0x8001430200000003

Termination Reason:  Namespace GUARD, Code 2305843022098595840, 

nikbann avatar Jul 31 '26 17:07 nikbann

fixed.

danchik123o1 avatar Jul 31 '26 20:07 danchik123o1