Comments (5)
Hey @jrouwe I just tested on the test/no-shadow
branch, on this branch when I compile and run the Samples
target I get everything running just without shadows.
from joltphysics.
The error is:
DXGI_ERROR_DEVICE_REMOVED
0x887A0005
which is a very generic error that doesn't say much.
First thing to check is if your graphics drivers are up to date.
Next thing would be to run Samples in Debug mode and look at the debugger output (usually it traces a meaningful message because the DirectX debug layer is active in debug mode). Easiest way to get to the debugger output is to compile and run everything using Visual Studio 2022 (free to download). In MSYS2 it is probably also possible but you'll need an external tool like DebugView++ to view the debug output.
Perhaps you can also break the application when the error message triggers to get the callstack (and line number) where the problem happens.
from joltphysics.
Ok, so I was able to get some more info through the CLion IDE which gives me some easy debugging utilities. I chose to use CLion because it seems more similar to my linux experience.
It comes bundled with a toolchain, which is as follows: (if that info is useful)
Here I'm attempting to run Samples
with debugging.
[New Thread 2412.0xcc0]
warning: D3D Error 887e0003: (2504@14664953) at 00007FFC02F8F985 - Using the Redistributable D3D12 SDKLayers dll also requires that the latest SDKLayers for Windows 10 is installed.
warning: D3D12GetDebugInterface: This method requires the D3D12 SDK Layers for Windows 10, but they are not present on the system.
warning: Created font "Arial" with height 24 in a 512x256 surface
warning: D3D12: Removing Device.
warning: Fatal Error: DirectX error returned: -2005270523 (The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action)
[Thread 2412.0x296c exited with code 1]
I managed to solve the above problem by enabling "Graphics Tools" which is an optional windows settings. To enable it you have to press the windows key, search for manage optional features
, and then click add a features
, and install Graphics Tools
. This probably automatically happens with VS so might not have been noted down in the build guide for windows.
Now building and attempting to run Samples
gives the following feedback:
[New Thread 7636.0x2ce4]
warning: Created font "Arial" with height 24 in a 512x256 surface
warning: D3D12 ERROR: ID3D12Device::CreateShaderResourceView: The Format (0x29, R32_FLOAT) is invalid when creating a View; the Resource was already created with a fully qualified Format, which is not castable (0x28, D32_FLOAT). [ STATE_CREATION ERROR #28: CREATESHADERRESOURCEVIEW_INVALIDFORMAT]
warning: D3D12: **BREAK** enabled for the previous message, which was: [ ERROR STATE_CREATION #28: CREATESHADERRESOURCEVIEW_INVALIDFORMAT ]
gdb: unknown target exception 0x0000087a at 0x7ffc1578cf19
Specifically this error is eminating from this line
I believe the problem here is that on line 179
we are giving a specific format: srv_desc.Format = DXGI_FORMAT_R32_FLOAT;
, and for some reason that type is not allowed, I'm not exactly sure...
from joltphysics.
I don't know why that's not allowed on your machine, on my machine that's the only value that is allowed.
You can work around this by commenting out the shadow rendering code:
https://github.com/jrouwe/JoltPhysics/tree/test/no_shadows
from joltphysics.
Adding the patch for future reference before deleting the branch:
from joltphysics.
Related Issues (20)
- GCC 13.2: warning: ISO C++ prohibits anonymous structs [-Wpedantic] HOT 2
- Some userdata variables are still uint32_t HOT 2
- Support multiple collisions per vertex for a soft body
- CharacterContactListener: add OnContactPersisted and OnContactRemoved HOT 3
- Should DecoratedShapeSettings allow for raw pointers in its constructor? HOT 3
- Epsilon values in asserts causing issues in Debug builds HOT 9
- Automatic transmission HOT 2
- Crash in SkeletonMapperTest sample HOT 3
- [MSVC] Internal compiler error
- Compile error on Sample project HOT 5
- [Question] I intergrate JoltPhysics into my project with exception thrown HOT 1
- Is it possible to cast sphere ? HOT 2
- Misaligned ABI when using JPH_DOUBLE_PRECISION causes a problem on the VirtualCharacter HOT 13
- Slow HeightfieldShape Save/RestoreBinaryState HOT 2
- Poor performance with high amount of static colliders HOT 1
- Why the character cannot collide with the floor ? HOT 1
- [Feature Request] CharacterVirtual needs support for enhanced internal edge removal HOT 4
- Problem serializing/deserializing BodyCreationSettings with sRestoreWithChildren HOT 2
- GCC 14 inlining failed in call to always_inline HOT 2
- Annoying identical color HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joltphysics.