Fullscreen mode crash

Jan 16, 2016, 11:21 am
#1
Joined: Jan 16, 2016
Posts: 4
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(?)
Jan 16, 2016, 3:00 pm
#2
Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 2,299
Thanks for reporting that. Tested, same thing happens to me on 64-bit Windows 10
Feb 23, 2016, 6:13 am
#3
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
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?
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Feb 24, 2016, 2:02 pm
#4
Joined: Apr 2, 2014
Occupation: Navastating
Location: Aslona
Posts: 764
Thanks for the config file workaround anyway. It was slightly annoying to play with the little window.
Feb 26, 2016, 2:47 am
#5
Joined: Jan 16, 2016
Posts: 4
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
Feb 26, 2016, 3:12 am
#6
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
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.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Feb 26, 2016, 7:36 am
#7
Joined: Jun 11, 2015
Location: Paris, France
Posts: 6
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
Mar 4, 2016, 8:36 pm
#8
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
May be related, I get a message from windows saying IVAN has crashed when I wake my computer up from sleep mode.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Mar 13, 2016, 3:56 am
#9
Joined: Jan 16, 2016
Posts: 4
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
Mar 15, 2016, 8:32 am
#10
Joined: Mar 12, 2016
Posts: 4
I too have this issue, running windows 7 witb msi 390x gpu
Jun 9, 2016, 11:46 pm
#11
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
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?
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jul 14, 2016, 2:25 am
#12
Joined: Jan 16, 2016
Posts: 4
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?
Jul 15, 2016, 5:42 am
#13
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
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
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jul 29, 2016, 8:45 pm
#14
Joined: Jul 29, 2016
Posts: 2
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.
Jul 31, 2016, 12:12 am
#15
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
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.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jump to