Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.08k stars 513 forks source link

Chapter 21 (Descriptor layout and buffer) Causes graphics driver crash #194

Closed FlyingWaffleDev closed 4 years ago

FlyingWaffleDev commented 4 years ago

When I try to run chapter 21's code my screen freezes right after the window shows up. Nothing ever gets rendered and my mouse can still move but nothing else works. I was able to switch to TTY2 and tried killing the process and switching back but this just got me a black screen with only my cursor working. After rebooting and retrying several times I noticed that KDE says the compositor has been crashing due OpenGL/driver issues.

First encountered with my own code (from following the tutorial), then tried the .cpp file from the tutorial and got the same result. It seems to cause some kind of page fault. I did manage to get part of a dmesg log which I have attached.

I'm running Gentoo-kernel 5.7.9 with latest KDE on a thinkpad t495s.

Any help would be appreciated. (Should I also make a bug report for the kernel/graphics drivers?)

VulkanTut-DriverCrash.txt

FlyingWaffleDev commented 4 years ago

Tried everything again on my desktop; it didn't crash this time, so I was able to get enough information out of the debug messages to figure out that I needed to go through chapter 22 as well before trying to run it. I grabbed the code from chapter 22 and was able to get it running again on my laptop! [Desktop has Nvidia GPU, that might be part of it.]

So my problems are solved, but I'll go report the crash the kernel/driver teams. Even if the code from chapter 21 should error out and produce debug messages, it shouldn't be crashing my display driver entirely.