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

Crashes if I set the application to use a specific GPU #27

Open
SouljaVR opened this issue Dec 27, 2023 · 0 comments
Open

Crashes if I set the application to use a specific GPU #27

SouljaVR opened this issue Dec 27, 2023 · 0 comments

Comments

@SouljaVR
Copy link

Hi,

Thank you for your work, it has been quite useful. However I have one small issue with it. For some reason if I set my application to use a specific GPU in the Windows 11 settings (Graphics settings > Browse > Add application to the list then set it to use a non-primary GPU) it will crash. This is the error I get:

Exception thrown: 'SharpGen.Runtime.SharpGenException' in SharpGen.Runtime
Exception thrown: 'System.NullReferenceException' in SharpGen.Runtime
Object reference not set to an instance of an object.

Extracted embedded document "/_/src/Vortice.Direct3D11/obj/SharpGen-dlpP0O1fxIg71ru7toZjEspM3SEWycxI33HTG2U0-wg/SharpGen.Bindings.g.cs" to "C:\Users\redacted\AppData\Local\Temp\.vsdbgsrc\b59c979149b9e423f798cdf58884ed5deffddeab2a0edf36fe51751a9333ed2c\SharpGen.Bindings.g.cs"

I am using a 4090 as the primary GPU and 3060 as the secondary, so both should be fully compatible with this. I am able to set 99% of applications I work with to any GPU without any issues so I assume this is just a bug of some kind. I have a feeling that when I set the application to use the second GPU, it still tries to access the first one causing it to crash or something. Honestly not sure. But to my understanding I cant specify which GPU to use within the API itself. I hope this all makes sense anyway, thank you once again for your work.

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

1 participant