Fullscreen mode crash

https://attnam.com/topics/Fullscreen-mode-crash

The Cathedral of Attnam > Trouble Shooting and Bugs

#1 Jan 16, 2016, 11:21 am Hide

Echolex

Attempting fullscreen mode causes the game to crash, and it's hard to play windowed because the resolution is so small and apparently can't be changed.. 64-bit Windows 8 Intel HD Graphics card(?)
#2 Jan 16, 2016, 3:00 pm Hide

capristo

Thanks for reporting that. Tested, same thing happens to me on 64-bit Windows 10
#3 Feb 23, 2016, 6:13 am Hide

fejoa

I am stumped by this. I figured out that you can change the config file (ivan.cgf) outside the game and it will run in fullscreen, but this is only a workaround and on platforms other than windows it works as it should. Anyone got any experience with SDL 2?
#4 Feb 24, 2016, 2:02 pm Hide

red_kangaroo

Thanks for the config file workaround anyway. It was slightly annoying to play with the little window.
#5 Feb 26, 2016, 2:47 am Hide

Echolex

changing .cfg does work great until I try to alt-tab to something else... then the game crashes. but at least I can play it now, thank you warheck
#6 Feb 26, 2016, 3:12 am Hide

fejoa

Echolex wrote
changing .cfg does work great until I try to alt-tab to something else... then the game crashes. but at least I can play it now, thank you warheck

Alt-tab crashes the game? That's sad. Something is seriously wrong. Please save your thanks for when this bug is fixed.
#7 Feb 26, 2016, 7:36 am Hide

murlock

I'll give a look and I have now a PC with Windows.

It reminds me issue with SDL1.2 because context is lost.

Regards
#8 Mar 4, 2016, 8:36 pm Hide

fejoa

May be related, I get a message from windows saying IVAN has crashed when I wake my computer up from sleep mode.
#9 Mar 13, 2016, 3:56 am Hide

Echolex

fejoa wrote
May be related, I get a message from windows saying IVAN has crashed when I wake my computer up from sleep mode.

Can confirm this makes windowed mode crash for me
#10 Mar 15, 2016, 8:32 am Hide

dirtydingusmagee

I too have this issue, running windows 7 witb msi 390x gpu
#11 Jun 9, 2016, 11:46 pm Hide

fejoa

I've been following this up with the SDL forums, long suspecting that it is a bug in SDL2. There has been some talk about Direct3D renderers misbehaving with window resizing, and it may be that the bug we have is related to this one.

So I did an experiment to see whether selecting a different renderer would help. Sure enough if you set the SDL_RENDER_DRIVER environment variable to opengl then it seems to fix the problem.

Can anyone running Windows verify that IVAN full screen toggles without a crash when the sdl rendering environment variable is set in this way?
#12 Jul 14, 2016, 2:25 am Hide

Echolex

fejoa wrote
I've been following this up with the SDL forums, long suspecting that it is a bug in SDL2. There has been some talk about Direct3D renderers misbehaving with window resizing, and it may be that the bug we have is related to this one.

So I did an experiment to see whether selecting a different renderer would help. Sure enough if you set the SDL_RENDER_DRIVER environment variable to opengl then it seems to fix the problem.

Can anyone running Windows verify that IVAN full screen toggles without a crash when the sdl rendering environment variable is set in this way?
Where can I find that variable and how can I change it?
#13 Jul 15, 2016, 5:42 am Hide

fejoa

Echolex wrote
Where can I find that variable and how can I change it?

In Windows 7, for example:

1. From the desktop, right-click My Computer and click Properties.
2. On the left side menu, click Advanced system settings.
3. In the System Properties window, click on the Advanced tab.
4. In the Advanced section, click the Environment Variables button.
5. Under User variables for your username, click New... and set up a new environment variable "SDL_RENDER_DRVER" with the value "opengl" as highlighted in the attached image.

This bug will be more or less fixed in the next release, so be sure to wind this change back when you get IVAN 0.50.7
#14 Jul 29, 2016, 8:45 pm Hide

Jorvalt

fejoa wrote
In Windows 7, for example:

1. From the desktop, right-click My Computer and click Properties.
2. On the left side menu, click Advanced system settings.
3. In the System Properties window, click on the Advanced tab.
4. In the Advanced section, click the Environment Variables button.
5. Under User variables for your username, click New... and set up a new environment variable "SDL_RENDER_DRVER" with the value "opengl" as highlighted in the attached image.

This bug will be more or less fixed in the next release, so be sure to wind this change back when you get IVAN 0.50.7

Tried that, didn't help at all.
#15 Jul 31, 2016, 12:12 am Hide

fejoa

Jorvalt wrote
Tried that, didn't help at all.

This is pain. If you can compile, then the bleeding-edge master branch has a possible fix. Assuming you have an opengl render driver available on your machine?

Next release will be during or before September 2016.