adrien-ben / imgui-rs-vulkan-renderer

A Vulkan renderer for imgui-rs using Ash
MIT License
63 stars 18 forks source link

full screen crash found #45

Open CheetoTrump opened 2 months ago

CheetoTrump commented 2 months ago

Hello, when working with this project i noticed that attempting to full screen using

window.set_fullscreen(Some(Fullscreen::Borderless(None)));

or

let primary_monitor = window.primary_monitor().expect("Failed to get primary monitor"); let video_mode = primary_monitor.video_modes().next().expect("Failed to get video mode"); window.set_fullscreen(Some(Fullscreen::Exclusive(video_mode))); (dumbed down version of what i had before, both failed)

causes crashes of the window when on AMD systems, i tested it on my nvidia system and it runs perfectly but my amd system no matter what i try and consult with gpt, i cant find a solution

both PCs are windows

nvidia gpu: 3080 amd gpu:rx vega 64

CheetoTrump commented 2 months ago

I was able to get 2 other people to try it and 1 crashed and another didnt, there dosnt seem to be any coloration to the amd drivers i can tell, or the card as in total a rx vega 64 was tested with 3 different driver versions, latest 22.11.1(made for vulkan according to amd website) a really old version from like last year(idk it but was over 1y old) and latest version

the rx590 used latest drivers and it worked perfectly fine

rx 480 used latest drivers and didnt work

filnet commented 2 months ago

What makes you think this project is causing the crash and not imgui-rs itself or winit (that you apparently use) or something else ?

CheetoTrump commented 2 months ago

What makes you think this project is causing the crash and not imgui-rs itself or winit (that you apparently use) or something else ?

It could be caused by them due to the versions used/enforced by this project but ive used imgui-rs and winnit using directx 9 and 11 and had no issues with fullscreening, so that is why im making it here since i couldnt find any coloration but maybe someone smarter than me will see this issue and give useful info on what i could be doing wrong or could make a pr with a fix for said issue