NVIDIA-RTX / NVIDIA-RTX/Streamline

Misinformation in slInit

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

Nobody has claimed this yet.

ack bug
Dominant language
C
Stars
1.2k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

I found that slInit always displayed this warning:

Seems like some DX/VK APIs were invoked before slInit()!!! This may result in incorrect behaviour.

when called by my initialization function. But I didn't call any DX/VK APIs before.

After some debugging, I found that sl::interposer::getInterface was actually called by slInit it self:

ConfigureLogOverrides
ConfigureLogOverridesFromInterposerConfig, sl::interposer::getInterface be called here

Contributor guide

Open the contributing guide

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

Start at slInit and trace the ConfigureLogOverrides and ConfigureLogOverridesFromInterposerConfig calls into sl::interposer::getInterface. Reproduce the warning during initialization and determine why that internal call is treated as a premature DX/VK API invocation; done means the warning no longer appears for this initialization path while still detecting genuinely early calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.