Beamdog / nwn-issues

Neverwinter Nights: Enhanced Edition Technical Bug Tracker
http://nwn.beamdog.com
31 stars 1 forks source link

Fullscreen borderless does not work with multiple monitor setups #643

Open ziplock9000 opened 4 months ago

ziplock9000 commented 4 months ago

OS

Windows

Game version

v88.8193.36-12 [d77dd024]

Describe the crash

While running the game in windowed mode I put the screen into borderless windowed mode. The game immediately becomes visually static, but clicking actions can be heard in the UI the process needs to be killed via task manager Starting the game up again, (which will now be in borderless window mode) makes the game hang on start with a white screen. This is 100% reproducible. The same thing happens when trying to put the game into exclusive mode as well, but I'm not concerned with that. I can only get the game to work in windowed mode.

Some notes:

This happens in 1080p and 4K modes, 100% and 150% Windows UI scaling, 1x and 2.5x NWN:EE UI Scaling Completely deleting the settings.xml and manually setting everything back does not help either Disabling all mods with -noworkshop in Steam does not help. AMD 5700XT GPU, Catalyst 24.6.1, W11

Finding the cause I have 3 displays with different resolutions. Even setting them all to 1080p does not help. But to experiment, I disabled all of them apart from my main one and borderless worked.

Custom content or overrides used

No response

Finaldeath commented 4 months ago

I can't reproduce but I'm on NVIDIA.

Out of interest how did you change it from windowed to fullscreen/borderless? I tried with alt+enter and it worked fine, as did the menu options.

When it hangs with a white screen can you post the log file?

ziplock9000 commented 4 months ago

I change it within the Options, Game Options, Graphics.

The UI then becomes static, but the game still runs (I hear clicks). So I have to kill the process.

Alt-Enter is the same.. The whole screen is static but the game sounds and clicking etc can be heard.

When loading the game up again it just hangs on start, black or white screen. It's not just the UI, the whole process hangs.

I'm wondering if it's getting confused about which is the primary monitor.

Logs are mostly empty.

nwclientError1.txt nwclientLog1.txt

Finaldeath commented 4 months ago

It could be a driver issue that's probably the most common issue. A clean install of GPU drivers may help. AMD has a tool to do this; https://www.amd.com/en/resources/support-articles/faqs/GPU-601.html

If you can change the setting and still type, pressing ` then typing pleasecrash and pressing enter might generate a crash dump.

ziplock9000 commented 4 months ago

Driver reset didn't work.

I also checked with another OpenGL game in borderless and that worked fine.

I performed pleasecrash after changing to borderless. There seems to be no crash dump file as mentioned in the wiki 'Instantly crashes the game. Doesn't seem to generate a crash dump in the documents folder.'

I've included the log files but changed keys

Is there a separate crash file you know of?

nwclientError1.txt nwclientlog1.txt

Finaldeath commented 4 months ago

Yeah it might need updating to the latest preview for better logs although I guess it will just say it's trying to change it to fullscreen but failing. You can find that on the NWN Developer Discord linked to here: https://discord.gg/CukSHZq

I am not sure there are better ways to debug the AMD drivers over this though.

ziplock9000 commented 4 months ago

I'd bet it's unlikely to be the driver.

I'm a game developer myself and perform a huge amount of game tests on this system and they all work fine in borderless mode. Also there's dozens of other games that get tested on this system that are fine too.

There's a slim chance It could be some very unique way NWN interacts with the GPU driver, but that's unlikely.

Either way, I tried it with the latest preview build 89.8193.37-5 and here's the forced crash report. I had to compress it as github is complaining it does not support that file type

(BTW, it still didn't work with borderless)

nwmain-crash-1720542575.zip