Widelands closes immediately on startup in Windows 10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Start Widelands, blink and you miss it. Log output is blank.
The computer is a bit older, but 64 bit (Intel Core2 Duo, 4BG RAM).
Graphics driver: Mobile Intel 4 Series Express Chipset Family (Microsoft Corporation WDDM 1.1
The same computer has no problem with Linux, so it's probably a graphics drivers issue / Win 10 specific.
Tested with Build 19.
And AppVeyor Debug Build results in a "Terminated in an unusual way" message and some log output.
This is Widelands Version master-
Set home directory: C:\Users\
There's no configuration file, using default values.
Widelands executable directory: C:\bin\Widelands
Adding directory: C:\bin\
selected language: (system language)
Graphics: Try to set Videomode 800x600
Graphics: OpenGL: Version "1.1.0"
Graphics: SDL_GL_RED_SIZE is 8
Graphics: SDL_GL_GREEN_SIZE is 8
Graphics: SDL_GL_BLUE_SIZE is 8
Graphics: SDL_GL_ALPHA_SIZE is 0
Graphics: SDL_GL_BUFFER_SIZE is 24
Graphics: SDL_GL_DOUBLEBUFFER is 1
Graphics: SDL_GL_DEPTH_SIZE is 16
Graphics: SDL_GL_STENCIL_SIZE is 8
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_STEREO is 0
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: OpenGL: Double buffering enabled
Graphics: OpenGL: Max texture size: 1024
Graphics: OpenGL: ShadingLanguage: "(null)"
**** GRAPHICS REPORT ****
VIDEO DRIVER windows
pixel fmt 370546692
size 800 600
**** END GRAPHICS REPORT ****
description: | updated |
description: | updated |
description: | updated |
Changed in widelands: | |
milestone: | none → build21-rc1 |
status: | New → Confirmed |
> Graphics: OpenGL: Version "1.1.0"
SDL did not get a OpenGL Version >= 2.1 (which we require). This seems to be a known issue on some Windows 10 machines, see for example https:/ /communities. intel.com/ thread/ 78542.
The only valid way of checking if a certain version of a driver is available is trying to create an OpenGL context and see if that succeeds: https:/ /gamedev. stackexchange. com/questions/ 28451/how- do-i-properly- check-if- a-particular- opengl- version- is-available.
We create our context using https:/ /wiki.libsdl. org/SDL_ GL_CreateContex t in src/graphic/ gl/initialize. cc - but we fail to check if that actually succeeded.