Forums » Bugs

Crash on selecting DX11

Oct 18, 2014 J37T3R link
When i go into video options and select the new DX11 setting, the game immediately crashes. The program freezes and the screen becomes completely black until I force-quit the program. I am using an NVIDIA GTX 760, so I know my graphics card can handle DX11. No errors are reported on crash, and the error.txt file indicates nothing. The only thing I could find is near the end of directx11.txt, where it looks to be a bit odd.

[10/18/14 04:15:46] Setting up Mode List
640x480 32bpp @ 60Hz: format = 87, s1=1, s2=1
640x480 32bpp @ 60Hz: format = 87, s1=0, s2=1
720x480 32bpp @ 60Hz: format = 87, s1=1, s2=1
720x480 32bpp @ 60Hz: format = 87, s1=0, s2=1
720x576 32bpp @ 60Hz: format = 87, s1=1, s2=1
720x576 32bpp @ 60Hz: format = 87, s1=0, s2=1
800x600 32bpp @ 60Hz: format = 87, s1=1, s2=1
800x600 32bpp @ 60Hz: format = 87, s1=0, s2=1
1024x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1024x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1152x864 32bpp @ 60Hz: format = 87, s1=1, s2=1
1152x864 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x720 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x720 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x800 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x800 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x960 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x960 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x1024 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x1024 32bpp @ 60Hz: format = 87, s1=0, s2=1
1360x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1360x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1366x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1366x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1440x900 32bpp @ 60Hz: format = 87, s1=0, s2=1
1440x900 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x900 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x900 32bpp @ 60Hz: format = 87, s1=0, s2=1
1600x1024 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x1024 32bpp @ 60Hz: format = 87, s1=0, s2=1
1680x1050 32bpp @ 60Hz: format = 87, s1=1, s2=1
1680x1050 32bpp @ 60Hz: format = 87, s1=0, s2=1
1920x1080 32bpp @ 60Hz: format = 87, s1=0, s2=1
[10/18/14 04:15:46] Device has 268435456 bytes total.
[10/18/14 04:15:46] D3D is valid.
[10/18/14 04:15:46] SetMode(34, "Vendetta");
unknown query
selectedAdapter = 00000000, driverType = 1
hr = 0 (0x00000000)
m_pSwapChain->ResizeTarget hr = 0 (0x00000000)
Oct 19, 2014 raybondo link
Is this on a desktop or laptop?
When you get a blank screen, what happens if you press Alt+Enter?
Oct 19, 2014 J37T3R link
Desktop. I've done some more tests.

Test 1 (control): No driver change (started on DX9 as normal). Alt+enter switches from fullscreen to windowed and back as normal.

Test 2: Started in fullscreen. Selected DX11 driver. Game froze and went to black screen. Alt+enter had no effect. Waited for a bit, still no response. Task manager reported Vendetta not responding, ended Vendetta via task manager.

Test 3: Started in fullscreen, Alt+enter went to windowed mode. Selected DX11 driver. Game hanged for a bit, then a loading screen popped up but with no load bar. Top right hand corner mentioned DX9. Got to login screen. Checked options menu, confirmed that DX9 was still selected.

Test 4: Started in windowed. Alt+enter went to fullscreen. Selected DX11 driver. Game hanged for a bit, went to loading screen with no bar. Top right hand corner mentioned DX11. Got to login screen. Checked options, confirmed that DX11 was selected. Logged in and shot a station, confirmed that new lighting effects were working.

Test 5: Started in windowed, loading screen was normal this time. Alt+enter went to fullscreen. Checked options, confirmed DX11 selected. Logged in, shot station, confirmed new lighting effects still working. Noted that Alt+tab now auto-switches to windowed mode whereas before it did not.

I have no idea why it now works and I'm blaming magic.

**EDIT**

Started game in fullscreen with DX11, got Fatal error: Couldn't open window. Tried manually editing config.ini, under [directx11] changed windowmode=0 to 1, which did get me a window, but messed up my resolution. There appears to be no option to modify resolution when using DX11 in the in-game options menu. Next I manually changed the driver to DX9 and fixed my resolution with that, but when in fullscreen and switching to DX11 the game crashed same as in test 2. Switching to DX11 while windowed seems to work just fine.

Also as a bit of a tangent, any chance with this new graphics stuff for virtual fullscreen mode or the ability to run Vendetta in a maximized window?
Oct 20, 2014 raybondo link
The next time you try to use DX11 and it fails, please post the directx11.log file that is put into the Vendetta Online folder. That should have some info about what failed.

The dx11 auto-switches to window-mode when you alt-tab out of it. I don't know why it does that. It's something to do with the dx11 system drivers but I haven't figured out how to make it not do that.

I don't know what you mean about 'virtual fullscreen mode' but we're not going to make the window-mode window dynamically resizable or add a res where the window will be maximized.

We'll be adding the screen resolution setting.
Oct 20, 2014 abortretryfail link
Why not make window-mode dynamically resizeable? Some other games have this and it's a really nice feature. You could even set a minimum size and acceptable aspect ratio range to prevent UI quirks from making it a problem.
Oct 20, 2014 J37T3R link
By 'virtual fullscreen mode' I'm talking about an option I've seen in other games. Basically, it makes the game look fullscreen, but act like it's windowed.

As for logs form DX11 failing, here they are.

This is what the log says when I attempt to start the game with settings set to DX11 and fullscreen and it immediately crashes with a 'Fatal error: Couldn't open window' message.

[10/20/14 22:39:37] Setting up Mode List
640x480 32bpp @ 60Hz: format = 87, s1=1, s2=1
640x480 32bpp @ 60Hz: format = 87, s1=0, s2=1
720x480 32bpp @ 60Hz: format = 87, s1=1, s2=1
720x480 32bpp @ 60Hz: format = 87, s1=0, s2=1
720x576 32bpp @ 60Hz: format = 87, s1=1, s2=1
720x576 32bpp @ 60Hz: format = 87, s1=0, s2=1
800x600 32bpp @ 60Hz: format = 87, s1=1, s2=1
800x600 32bpp @ 60Hz: format = 87, s1=0, s2=1
1024x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1024x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1152x864 32bpp @ 60Hz: format = 87, s1=1, s2=1
1152x864 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x720 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x720 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x800 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x800 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x960 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x960 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x1024 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x1024 32bpp @ 60Hz: format = 87, s1=0, s2=1
1360x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1360x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1366x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1366x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1440x900 32bpp @ 60Hz: format = 87, s1=0, s2=1
1440x900 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x900 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x900 32bpp @ 60Hz: format = 87, s1=0, s2=1
1600x1024 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x1024 32bpp @ 60Hz: format = 87, s1=0, s2=1
1680x1050 32bpp @ 60Hz: format = 87, s1=1, s2=1
1680x1050 32bpp @ 60Hz: format = 87, s1=0, s2=1
1920x1080 32bpp @ 60Hz: format = 87, s1=0, s2=1
[10/20/14 22:39:37] Device has 268435456 bytes total.
[10/20/14 22:39:37] D3D is valid.
[10/20/14 22:39:37] SetMode(34, "Vendetta");
unknown query
selectedAdapter = 00000000, driverType = 1
hr = 0 (0x00000000)
m_pSwapChain->ResizeTarget hr = 0 (0x00000000)
m_pSwapChain->SetFullscreenState hr = -2005270494 (0x887a0022)
failed: errorcode = 0x887a0022.
[10/20/14 22:39:37] .\d3dinit.cpp(341) : 0x887a0022
[10/20/14 22:39:37] SetMode(0, "Vendetta");
unknown query
selectedAdapter = 00000000, driverType = 1
hr = 0 (0x00000000)
m_pSwapChain->ResizeTarget hr = 0 (0x00000000)
m_pSwapChain->SetFullscreenState hr = -2005270494 (0x887a0022)
failed: errorcode = 0x887a0022.
[10/20/14 22:39:37] .\d3dinit.cpp(341) : 0x887a0022

When I launch Vendetta in windowed mode using DX11 it will launch, but when I try to go fullscreen the log looks like this

[10/20/14 22:31:32] Setting up Mode List
640x480 32bpp @ 60Hz: format = 87, s1=1, s2=1
640x480 32bpp @ 60Hz: format = 87, s1=0, s2=1
720x480 32bpp @ 60Hz: format = 87, s1=1, s2=1
720x480 32bpp @ 60Hz: format = 87, s1=0, s2=1
720x576 32bpp @ 60Hz: format = 87, s1=1, s2=1
720x576 32bpp @ 60Hz: format = 87, s1=0, s2=1
800x600 32bpp @ 60Hz: format = 87, s1=1, s2=1
800x600 32bpp @ 60Hz: format = 87, s1=0, s2=1
1024x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1024x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1152x864 32bpp @ 60Hz: format = 87, s1=1, s2=1
1152x864 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x720 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x720 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x800 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x800 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x960 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x960 32bpp @ 60Hz: format = 87, s1=0, s2=1
1280x1024 32bpp @ 60Hz: format = 87, s1=1, s2=1
1280x1024 32bpp @ 60Hz: format = 87, s1=0, s2=1
1360x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1360x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1366x768 32bpp @ 60Hz: format = 87, s1=1, s2=1
1366x768 32bpp @ 60Hz: format = 87, s1=0, s2=1
1440x900 32bpp @ 60Hz: format = 87, s1=0, s2=1
1440x900 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x900 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x900 32bpp @ 60Hz: format = 87, s1=0, s2=1
1600x1024 32bpp @ 60Hz: format = 87, s1=1, s2=1
1600x1024 32bpp @ 60Hz: format = 87, s1=0, s2=1
1680x1050 32bpp @ 60Hz: format = 87, s1=1, s2=1
1680x1050 32bpp @ 60Hz: format = 87, s1=0, s2=1
1920x1080 32bpp @ 60Hz: format = 87, s1=0, s2=1
[10/20/14 22:31:32] Device has 268435456 bytes total.
[10/20/14 22:31:32] D3D is valid.
[10/20/14 22:31:32] SetMode(34, "Vendetta");
unknown query
selectedAdapter = 00000000, driverType = 1
hr = 0 (0x00000000)
m_pSwapChain->ResizeTarget hr = 0 (0x00000000)
m_pSwapChain->SetFullscreenState hr = 0 (0x00000000)
Device description: 'NVIDIA GeForce GTX 760'.
DedicatedVideoMemory = 2087387136
DedicatedSystemMemory = 0
SharedSystemMemory = 2147807232
Initializing Device Objects...Error: Failed to load vs[8] shader.
Error: Failed to load vs[9] shader.
Error: Failed to load vs[12] shader.
Error: Failed to load vs[13] shader.
success.
Restoring Device Objects...
success.
Reloading Textures...done.
m_pSwapChain->ResizeBuffers failed: errorcode = 0x887a0001.

With the last line repeating for every time I attempt to go fullscreen.

When I launch Vendetta in fullscreen mode using DX9 and try to switch to DX11, it crashes and generates a log the exact same as in my first post.
Oct 21, 2014 raybondo link
Are you using the latest video drivers for your hardware?
It seems that for some reason VO cannot go fullscreen no your hardware.
I will be fixing it so it won't fail and instead enter window-mode if VO is starting up.
Oct 21, 2014 J37T3R link
Yep. Using the 344.11 driver from 9/18/14, which both my update checker and NVIDIA's website says is the latest.

UPDATE: with Vendetta 1.8.309 the issues somewhat still occur (error log same as the 3rd one I posted, the one with m_pSwapChain->ResizeBuffers failed: errorcode = 0x887a0001) but the new behavior does prevent a situation where I can't launch the game without having to manually edit the config.

I can consistently get DX11 and fullscreen at the same time if I launch the game with DX11 drivers and then switch to fullscreen after loading, but not if I switch to DX11 without relaunching.

I'm also curious of anyone else is having issues like this, or if anyone is running the same hardware but isn't. I can't think of anything on my end that might be causing the problem, but the fact that I haven't seen anyone else mention issues like mine makes me wonder if I'm not overlooking something.
Nov 10, 2014 myztkl-kev link
I had similar issues getting into DX11 mode and I use an AMD r9 280x with newest drivers. Had to go into Windowed mode to get it to switch to DX 11 otherwise it would hang the game. Ended up switching back to DX9 though as there is no AA in DX11 yet.