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

dump resources: remove calls to exit(1) #1852

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

davidlunarg
Copy link
Contributor

No description provided.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 291996.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5250 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5250 passed.

@@ -1879,7 +1879,6 @@ VkResult VulkanReplayDumpResourcesBase::QueueSubmit(const std::vector<VkSubmitIn
GFXRECON_LOG_ERROR("Dumping draw calls failed (%s). Terminating.",
util::ToString<VkResult>(res).c_str())
Release();
exit(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing these means that the message is no longer true. But the message probably means that execution can't continue. Doesn't this need to terminate somehow, either by abort or throw or some such?

Copy link
Contributor

@bradgrantham-lunarg bradgrantham-lunarg Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, probably GFXRECON_LOG_FATAL, I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at framework/util/logging.h, it seems there is no real difference between GFXRECON_LOG_ERROR and GFXRECON_LOG_FATAL. Do we want FATAL to terminate every time?

@bradgrantham-lunarg
Copy link
Contributor

Fixes #1761

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 306822.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5354 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5354 passed.

Removed calls to exit() when fatal error is encountered in
dump resources and instead call the error handler specified by
VulkanReplayConsumerBase::SetFatalErrorHandler()
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 317066.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 317071.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5516 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5516 failed.

@davidlunarg davidlunarg merged commit 4128506 into LunarG:dev Dec 4, 2024
9 checks passed
@davidlunarg davidlunarg deleted the davidp_remove_dr_exits branch December 4, 2024 20:16
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

Successfully merging this pull request may close these issues.

5 participants