https://bugs.winehq.org/show_bug.cgi?id=55270
Bug ID: 55270 Summary: NVIDIA OptiX SDK samples hang forever Product: Wine Version: 7.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: cybermax@dexter.no Distribution: ---
Running NVIDA OptiX SDK samples hangs forever before drawing to screen. I have bisected this to this particular patch: https://gitlab.winehq.org/wine/wine/-/commit/18ae96e5fb3cbbd53f1a022ba81203d... This patch is from the https://gitlab.winehq.org/wine/wine/-/merge_requests/416 MR
Reverting this by removing XLockDisplay runs the samples again.
I am not sure why the need for a mutex + XLockDisplay is there, but i assume the reasoning is perfectly fine - but maybe only IF one actually expect/get an error? The OptiX samples hits the "ignored_error" thing, but seemingly just stops without releasing the XDisplay again and thus just hang.
If interested in testing these OptiX samples, i have a pre-compiled set here: https://github.com/SveSop/wine-nvoptix/pull/20#issuecomment-1079719794 (Read installation instructions in that post - since the SDK hard-links binaries to images and whatnot in the folder structure)
All of the samples in THAT particular archive do run if you use latest "nvidia-libs" from here: https://github.com/SveSop/nvidia-libs/actions Only nvcuda and nvoptix is needed - no need for DXVK/DXVK-NVAPI to run these samples - but you DO need NVIDIA RTX 2xxx gpu, and with the aforementioned revert of XLockDisplay it runs on wine-8.12 from GIT.