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

SharpDX crash 0x80004002 during startup #3

Open
xandershelley opened this issue Oct 6, 2018 · 8 comments
Open

SharpDX crash 0x80004002 during startup #3

xandershelley opened this issue Oct 6, 2018 · 8 comments

Comments

@xandershelley
Copy link

Windows 7 64bit
.Net 4.7.2
SteamVR+Vive

image

@xandershelley
Copy link
Author

Seems like an issue with SharpDX on my specific version of windows? Windows claims it is up to date but I will see if I can force it.
sharpdx/SharpDX#795
https://ecdesign.zendesk.com/hc/en-us/articles/115002755883-SharpDX-error-Windows-7
https://docs.microsoft.com/en-us/windows/desktop/direct3darticles/platform-update-for-windows-7
baldurk/renderdoc#402

@xandershelley xandershelley changed the title Error&Crash during startup SharpDX crash 0x80004002 during startup Oct 6, 2018
@xandershelley
Copy link
Author

Update: Updates had no effect.

@sencercoltu
Copy link
Owner

Did you discover which interface is not supported?
Seems Win7 only has partial functionality for Direct3D 11.1 and DXGI 1.2.
I'll try to find the unsupported interface(s) and remove the usage if possible.

@xandershelley
Copy link
Author

I can't find a way to get more detailed info without compiling and debugging it myself. I dug a little and my best guess is that it fails here
var dxgiDevice = device.QueryInterface<SharpDX.DXGI.Device>();

I see some reference to failure by platform version here:
https://docs.microsoft.com/en-us/windows/desktop/api/dxgi1_2/nn-dxgi1_2-idxgioutput1
https://github.com/sharpdx/sharpdx.github.io/blob/master/wiki/installation.md
(Though references still say that it ought to work with the platform update)

Is it possible this sharpDX dll is compiled for UWP-PCL instead of Desktop?
I've only a vague idea what I am looking at when it comes to graphics api's, and the way sharpDX and DirectX interact is complex. Let me know if I can be more help.

@sencercoltu
Copy link
Owner

I just found out that these 2 vars were not used anywhere in the code, so I removed them.
I probably forgot to remove them after trying stuff.

//var dxgiDevice = device.QueryInterface<SharpDX.DXGI.Device>();
//var d2DDevice = new SharpDX.Direct2D1.Device(dxgiDevice);

Try this release: https://github.com/sencercoltu/steamvr-undistort/releases/tag/v0.1.6

@xandershelley
Copy link
Author

xandershelley commented Oct 8, 2018

I tried the new release and get the same error, except now there is a duplicate that shows up after closing the first one, then this happens:
image
Maybe that was not the issue. Later tonight I will install win7 on another machine and see if it works there.

@sencercoltu
Copy link
Owner

I tried to run SteamVR on a Win7 virtual machine with no success.

@xandershelley
Copy link
Author

xandershelley commented Oct 8, 2018

I just tried it on another separate freshly installed -> all updates win764bitult machine and had the same error. Its definitely something to do with windows 7. Its not like this is all that intensive graphically, so I might just dial my lenses in on my win10 laptop.
EDIT: This works on the same machine with windows10 installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants