macOS test report (M5 Pro, CrossOver 26.3 / D3DMetal / Rosetta 2): boots and reaches the world; three Rosetta store faults found, world stays black in D3DMetal #435
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from PastiiJay/klbf-lab. Originally posted by vakaobr on 2026-12-01T15:16:28Z.
Setup
stableat4c79ac5(27 Nov),--features diagnostics, cross-compiled withcargo xwinforx86_64-pc-windows-msvcvictory.exe run <title exe> --executedirectly (no launcher, so no card profile), from a.batrun with CrossOver's Run CommandThis was done before I saw the Mac mode (
KLBF_NO_FAULT_TRACKING) in v26.11.18 and later, so everything below is with fault tracking on. I will run v26.12.3 with the Mac mode next and add the result here (see the end).Summary
write 0x0at+0x23cf683, called from+0x2215c35). You already turn it off in newer versions (KLBF_TITLE_WATCHDOG), so this one should be gone in v26.12.x.1. Rosetta 2: which stores fault, and where
The error is always the one your docs quote:
rosetta error: unexpectedly need to EmulateForward on a synchronous exception. Three things I did not see written down yet:a. It is not only masked stores.
vcvtps2phwith a memory destination fails the same way. Decoded from the bytes Rosetta prints:+0x1d6f0a2vpmaskmovd [rax], ymm7, ymm6+0x5553054vpmaskmovd [rax], ymm6, ymm4+0x5384ff5vcvtps2ph [r8+rdx*2], ymm0, 3victory.exe+0x57e2b2vpmaskmovd [rcx], ymm4, ymm3(our ownvictory_safe_merge, insafecopy.rs)(The first two offsets were seen with the same title build on a sibling fork of VIctory; the image is the same.)
b. How many there are in the title image. Decoding function by function from the unwind table (
.pdata) finds 1125 masked stores and 46vcvtps2phstores. Decoding the executable sections end to end finds 1130 and 70: the store at+0x5384ff5is in code the unwind table does not list, and it is one the title runs about a minute in.c. The layer's own assembly has two.
victory_safe_putandvictory_safe_mergeeach use onevpmaskmovdto memory. With fault tracking on, the merge one faulted about 68 s into a run. They are still there in v26.12.3. Title memory can fault under them whatever the layer guards (the title's own read-only or unmapped pages), so I think they matter with the Mac mode too. I have a small change for this, see "Code" below.What the failure looks like, for other Mac testers:
> file 2>&1. CrossOver shows it under "Command error text" in the Run Command window, and only after the process is ended (pkill -f 'victory\.exe run').winedbgcannot attach to the hung process (it hangs too), andVICTORY_STACKSprints the header and then nothing: the stuck thread cannot be suspended. A dump scheduled before the hang works.2. D3DMetal: why the world is black
From the first seconds of loading the world, on both
--console series-sand Series X:host mesh pipeline shaders=[mesh ..., pixel ...]).no host pipeline library: pipelines are not kept, so every start makes every pipeline again. During the first load the frame time went to 2.7 s (window title:0 FPS · 2706 ms · compiling 559 shaders), with about 570 pipelines made in 36 s. That stall is what woke the title's watchdog.I can send the failing shader hashes, or run with any switch that helps you narrow it down (
VICTORY_MESH_TEST=skip, a way to dump the DXIL of a failed pixel shader, ...). Tell me what is useful.3. Things that worked, for the Mac setup notes
winefrom Terminal, the layer presented over 2000 frames at 30 fps and macOS never showed a window (nothing in the Dock or in Cmd+Tab). The same command in a.batstarted with Run Command shows the window.d3dcompiler_47.dll10.0.26100.9457 from the Windows SDK package, besidevictory.exe, with thed3dcompiler_47=n,boverride (your Linux guide's finding): noE5005orX3506in any run.0x1002, device0x66af, about 38 GB of memory, in case the card profiles look at it.llvm,rustup,cargo install cargo-xwin, thencargo xwin build --release --locked -p victory --target x86_64-pc-windows-msvc. No Windows machine needed.4. A different way around the faulting stores (if it is of interest)
Instead of turning fault tracking off, I tried keeping it and replacing the stores Rosetta cannot resume:
vcvtps2phstore becomes a jump to a small stub that stores the same bytes with plainmovs (each lane whose mask bit is set; or the conversion done into a spare register first). Registers and flags are kept; nothing is stored for a lane whose mask bit is clear.It needs a decoder (
iced-x86, MIT) and is about 450 lines invictory-loader. I do not know yet whether it is faster than the Mac mode: that is what I will measure next. If you want it, I can send it as a pull request behind aKLBF_...option, off by default.Code
victory_safe_putandvictory_safe_mergethat store with plainmovs, used when Wine's host is macOS (KLBF_SAFE_PLAIN_STORES,0/1to force). Windows keeps the masked stores. I will open it againstv26123and link it here; tell me if another branch is the right base (mainhas nosafecopy.rs).Next: v26.12.3 with the Mac mode
TODO, two runs on the same Mac, same title build:
KLBF_NO_FAULT_TRACKING=0+ the store replacement of section 4No raw logs attached (they hold my user name); the lines above are copied from them. I can send trimmed logs or a report zip if you tell me which parts you want.
Imported from PastiiJay/klbf-lab. Originally posted by vakaobr on 2026-12-01T15:20:42Z.
Pull request for the two masked stores in safecopy.rs: #436
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-12-01T15:42:49Z.
thank you so much @vakaobr, this is an amazing first macOS report: full setup, a direct start from source, and three store faults pinned down, plus a pull request right away 🙏 it's with the team, together with #436. for the next run, the newest pre-release has a Mac mode and Mac missions on the Missions page ("Mac: how far does the Mac mode take you?"), and its reports go straight to us; that would give a clean comparison with what you found here.
Imported from PastiiJay/klbf-lab. Originally posted by vakaobr on 2026-12-01T16:07:58Z.
v26.12.3 with the Mac mode (official release, started from the launcher)
Same Mac (M5 Pro, 48 GB, macOS 27.2.1, CrossOver 26.3.0 / D3DMetal), same title build. This time the official
KLBF-Lab-win64.zip, nothing built by me, started from your launcher.Setup that worked, following your Linux guide inside a CrossOver bottle:
C:\Program Files\PowerShell\7C:\KLBF Lab, every file checked againstSHA256SUMS.txtd3dcompiler_47.dll10.0.26100.9457 besidevictory.exe, overrided3dcompiler_47=n,b.batthat runspwsh.exe -NoProfile -ExecutionPolicy Bypass -File play.ps1 -Victory victory.exe -Setup(whatKLBF Lab.cmddoes, with the output kept)The launcher works on macOS. Its window opens, the game folder is chosen as
Z:\..., components download, the game starts. It says:Card profile: none for Apple M5 Pro, system Wine on macOS, and picks Profile S with AMD FSR 3.1 and frame generation on.The Mac mode turns itself on (
macOS/Rosetta: fault-based tracking off (Wine host Darwin; ...)), and the title's watchdog is turned off. No Rosetta error in either run.Where run 2 stopped. The world started drawing: 1,741 pipelines bound for the first time within one minute (616 compute, 489 pixel, 300 vertex, 244 mesh in the last 40 s). The last host pipeline was made at 16:02:42, and then the hang watch said:
The submission was still not finished when I ended the process, about a minute after the picture stopped (the log's last line is 33 s after the last pipeline was made). The other threads kept logging their meters, so it is not the Rosetta hang (that one stops everything, and prints its error: there was none). The hang watch's stacks of 162 threads are in the run log.
What D3DMetal printed (CrossOver's "Command error text"), and nothing else:
24 times. Neither log has a
Failed to compile fragment functionor aTotal mesh size ... exceedsline this time, unlike the olderstablebuild in my first message. I do not know yet whether they are gone or only not reaching the log through the launcher.The cost of the Mac mode, as far as these two runs show: by the end the layer copies about 160 to 176 MB per frame (
copies 15.1 ms 159.1 MB), and the opening screens run at 17 to 30 fps where a build with fault tracking on (and the faulting stores replaced, as in section 4 above) held 30. Different versions and settings, so only a hint. I will run that comparison on v26.12.3 next.I can attach the launcher's Report a bug zip of run 2 if you want the full hang watch with the stacks. Tell me if you would rather have another run with a particular launch option first.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-12-01T16:11:13Z.
thanks again @vakaobr, this second run with the official build and the Mac mode is exactly the comparison we needed 🙏 it's with the team, next to your first report and #436. if the Mac missions show up on your Missions page, Run all on them would add clean numbers.
Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T17:34:10Z.
For the stuck submission on your M5 Pro, open Missions → Mac: how far does the Mac mode take you? Choose Start run A, load the same save, and note the last frame or time. Reopen that card, select B, and choose Start run B. B supplies
VICTORY_ASYNC_SUBMIT=0for you. Whether B reaches another frame past A’s stopping point would be useful here.I checked the packaged v26.12.3 and v26.12.4 launchers with both the bundled feed and revision 53. Both Mac cards use manual play, so neither has a Run all button. The separate Mac memory card tests
KLBF_8GB_SAFE=1and can wait.