Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: win32 backend requires vsync=.triple or it will stall on 2048th' frame, unsure why #1259

Open
slimsag opened this issue Aug 25, 2024 · 2 comments
Labels
bug Something isn't working needs-triage Issues that need triaging

Comments

@slimsag
Copy link
Member

slimsag commented Aug 25, 2024

Needs debugging.

https://github.com/hexops/mach/pull/1258/files#diff-c03659dc4af60ec5392d6014dce3314fd1eb5f68181c212366ec53a20ba4a82eR133

the final problem ,which I have not figured out what is causing is that d3d12 fails with an error when presenting frame 2048. There must be something that is not being released somewhere, it is always on frame 2048.

@slimsag slimsag added bug Something isn't working needs-triage Issues that need triaging labels Aug 25, 2024
@hordurj
Copy link
Contributor

hordurj commented Sep 3, 2024

This is still happening on my machine but less frequently. Saw it happen after 4096 and 8192 frames and 6x2048 frames. I have been able to get the error in my own program I am working on and once the "hardware check" example. I will investigate further.

The windows debug output is
[29572] D3D12 ERROR: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable amount of time to execute its commands, or the hardware crashed/hung. As a result, the TDR (Timeout Detection and Recovery) mechanism has been triggered. The current Device Context was executing commands when the hang occurred. The application may want to respawn and fallback to less aggressive use of the display hardware). [ EXECUTION ERROR #232: DEVICE_REMOVAL_PROCESS_AT_FAULT]

@RonaldZielaznicki
Copy link
Contributor

@slimsag @hordurj Are y'all still able to replicate this error after #1289?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issues that need triaging
Projects
None yet
Development

No branches or pull requests

3 participants