[Bug 60300] New: Unity 6: crashes on startup before a window appears (D3D11 CreateFence)
http://bugs.winehq.org/show_bug.cgi?id=60300 Bug ID: 60300 Summary: Unity 6: crashes on startup before a window appears (D3D11 CreateFence) Product: Wine Version: 7.7 Hardware: x86-64 OS: MacOS Status: UNCONFIRMED Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@list.winehq.org Reporter: programmeruser517@gmail.com Target Milestone: --- Created attachment 82047 --> http://bugs.winehq.org/attachment.cgi?id=82047 Unity Player.log from a pre-shim crash; key line: `GpuFence::Create(): Failed to create ID3D11Fence, error 0x80004001` Unity 6 D3D11 titles exit immediately on startup under Wine — no game window. The process dies during D3D11 device setup. Without any workaround, wine logs show CreateFence / ID3D11Device5 failing or unimplemented. Unity 6 appears to require ID3D11Fence. Verified with How to Fish (Steam AppID 4001890, Unity 6000.4.4f1). Userspace workaround (native version.dll that stubs the fence; also bridges WM_POINTER for a separate mouse issue). Not used for this repro: https://github.com/programmeruser517/unity6-wine-macos Environment: - wine-7.7 (Whisky 2.3.5) - macOS 26.6.2, MacBook Air (Apple M5; arm64 host / x86_64 Wine) - Bottle: Windows 10 Terminal output attached. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60300 --- Comment #1 from Ken Sharp <imwellcushtymelike@gmail.com> --- Wine 7.7 was relased in 2022. Upgrade and try again. https://gitlab.winehq.org/wine/wine/-/wikis/Download -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60300 --- Comment #2 from Nikolay Sivov <bunglehead@gmail.com> --- (In reply to Ken Sharp from comment #1)
Wine 7.7 was relased in 2022.
Upgrade and try again. https://gitlab.winehq.org/wine/wine/-/wikis/Download
Does current Wine have CreateFence() implemented? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60300 Stian Low <wineryyyyy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wineryyyyy@gmail.com --- Comment #3 from Stian Low <wineryyyyy@gmail.com> --- (In reply to Nikolay Sivov from comment #2)
Does current Wine have CreateFence() implemented?
returning S_OK instead of E_NOTIMPL for d3d11_device_CreateFence() fixed Hollow Knight Silksong recently: - https://bugs.winehq.org/show_bug.cgi?id=59414#c5 Maybe it's enough to work around other crashes. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60300 --- Comment #4 from programmeruser517@gmail.com --- (In reply to Ken Sharp from comment #1)
Wine 7.7 was relased in 2022.
Upgrade and try again. https://gitlab.winehq.org/wine/wine/-/wikis/Download
Agreed, Wine 7.7 is old, BUT that is what Whisky 2.3.5 ships (archived GPTK-lineage runtime; no easy bump to current wine-devel inside Whisky). (In reply to Nikolay Sivov from comment #2)
(In reply to Ken Sharp from comment #1)
Wine 7.7 was relased in 2022.
Upgrade and try again. https://gitlab.winehq.org/wine/wine/-/wikis/Download
Does current Wine have CreateFence() implemented?
Re: CreateFence — current Wine still does not implement it. In master, d3d11_device_CreateFence / OpenSharedFence are stubs returning E_NOTIMPL (same failure Unity logs as 0x80004001). (In reply to Stian Low from comment #3)
(In reply to Nikolay Sivov from comment #2)
Does current Wine have CreateFence() implemented?
returning S_OK instead of E_NOTIMPL for d3d11_device_CreateFence() fixed Hollow Knight Silksong recently: - https://bugs.winehq.org/show_bug.cgi?id=59414#c5
Maybe it's enough to work around other crashes.
Returning success from CreateFence can unblock Unity 6, but it needs a fence object plus Signal/Wait stubs (not only flipping E_NOTIMPL → S_OK). That is what the userspace version.dll shim does for How to Fish. Silksong’s VIDEO_SUPPORT issue (59414) is a related Unity D3D11 pain, but a separate path. Happy to retest on stock wine-devel if that helps triage; the missing CreateFence looks unchanged upstream either way. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60300 Zeb Figura <z.figura12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com --- Comment #5 from Zeb Figura <z.figura12@gmail.com> --- It's not implemented yet; there's no point retesting. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla