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

Debug Callback does not work. #16

Closed
Berserker66 opened this issue Jul 25, 2017 · 5 comments
Closed

Debug Callback does not work. #16

Berserker66 opened this issue Jul 25, 2017 · 5 comments

Comments

@Berserker66
Copy link
Contributor

Berserker66 commented Jul 25, 2017

Or at least it doesn't for me.

If we take the Vulkan Tutorial:
https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Validation_layers#page_Message_callback

Then not removing the debug callback before destroying the instance should yield a debug output.

So we change the almost last line in the vulkan example to
#vkDestroyDebugReportCallbackEXT(instance, callback, None)
So that we intentionally trip this debug message.

What I found is, that no debug message appears.

I've started investigating this as I noticed the debug callback function never executes in my own project, which makes debugging harder than it should be.

Should it matter, this is win10 64bit on amd graphics, with as of now recent drivers.

@realitix
Copy link
Owner

Hello @Berserker66,
I just tried and I get the good log DEBUG: DebugReport Debug Report callbacks not removed before DestroyInstance.

I know the debug callback works great because I use it a lot (on Windows 10 64 bits too).
I'm sorry to say it looks like a driver bug.

Can you try others vulkan demos to confirm that it's your driver ?

@Berserker66
Copy link
Contributor Author

Berserker66 commented Jul 25, 2017

What would that "others vulkan demos" be? A link would likely help.

Am cleaning out my driver and reinstalling, will report back in a while.

@realitix
Copy link
Owner

In the Vulkan SDK, you have some examples available and this repository is very good for demos: https://github.com/SaschaWillems/Vulkan

@Berserker66
Copy link
Contributor Author

Well, too late for that, I went from AMD beta drivers I think 17.10 to 17.7 and now everything works just fine. Thanks for helping, though.

@realitix
Copy link
Owner

Nice! I close

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

No branches or pull requests

2 participants