microsoft / microsoft/DirectX-Graphics-Samples

HelloFrameBuffer sample - crash on run - DXSample.cpp

Open
#923 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
6.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Error -
Unhandled exception at 0x00007FF8CA0C4058 (amdihk64.dll) in D3D12HelloFrameBuffering.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

At -
DXSample.cpp (Line 75 ~ 78)
if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), D3D_FEATURE_LEVEL_11_0, _uuidof(ID3D12Device), nullptr))) { break; }

I've modified nothing in the code. I downloaded the sample as-is, and am able to run successfully at least HelloConstBuffer and HelloTexture samples. So now I'm trying to run HelloFrameBuffer, which I can't, because of the error above.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash by running the HelloFrameBuffer sample and inspect DXSample.cpp around lines 75–78, where D3D12CreateDevice is called. Compare its behavior with the working HelloConstBuffer and HelloTexture samples, then identify a verified fix that lets HelloFrameBuffer run without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.