-
Notifications
You must be signed in to change notification settings - Fork 508
Strange null ref in COM call #6042
Comments
I tried to repro this, but I'm getting:
All I did was downloading your branch as a ZIP from GitHub and running the command you provided. |
Looks like you're missing the 2.1.0 runtime, or your SDK is targeting a different version or something? I haven't kept up with the SDK well enough to understand what that error means. |
No, the case of missing runtime is:
I got that first, so I uninstalled all the .NET Core SDKs I had and installed the latest one from the web. |
This is https://github.com/dotnet/cli/issues/9544. It can be worked around it by adding I can get further with this workaround, but the repro steps are still failing for me:
|
@jkotas Hm, sorry about that -- I haven't seen that issue before. Instead of working around that, I've pushed a commit that changes another one of the projects to use CoreRT. It's simpler but still exhibits the same crash.
|
I opened a pull request with a fix. Once that's merged, you'll hit a I used following RD.XML to fix it: <Directives>
<Application>
<Assembly Name="SharpDX.D3DCompiler" Dynamic="Required All" />
<Assembly Name="SharpDX.Direct3D11" Dynamic="Required All" />
<Assembly Name="SharpDX" Dynamic="Required All" />
<Assembly Name="SharpDX.DXGI" Dynamic="Required All" />
<Assembly Name="Veldrid" Dynamic="Required All" />
<Assembly Name="Veldrid.MetalBindings" Dynamic="Required All" />
<Assembly Name="Veldrid.OpenGLBindings" Dynamic="Required All" />
<Assembly Name="Veldrid.SDL2" Dynamic="Required All" />
<Assembly Name="Veldrid.StartupUtilities" Dynamic="Required All" />
<Assembly Name="vk" Dynamic="Required All" />
</Application>
</Directives> It's possible not all of this is needed (having this all means compilation throughput and size of the output binary is worse), but I prefer not fixing these one-by-one. You should be able to tweak it as needed. |
After #5587 was fixed, I'm able to get much further with my project. Most everything works, but there's still some issues calling into SharpDX (or so it seems). I get a crash with this stack:
I believe that it's hitting a null ref on this line.
dxgiDevice
is null when it shouldn't be, and isn't when using CoreCLR. That query function shouldn't return null (it should throw instead), as far as I know.The problem can be reprod by checking out the
corert-crash
branch of https://github.com/mellinoe/veldrid-samples/tree/corert-crash.dotnet publish -r win-x64 src\Instancing\Desktop\Instancing.Desktop.csproj
The text was updated successfully, but these errors were encountered: