Build-19 crashes on startup on Ubuntu / OpenGL detection problem.

Bug #1654583 reported by Tuukka Ryyppö
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Medium
Unassigned

Bug Description

This happened right after having added the PPA sources, updating the sources and installing widelands with sudo apt install widelands.

The game flashes a presumably 800x600 px window, but refuses to start, with the following error:

-------------
-------------

dakkus@ubuntu:~$ widelands
This is Widelands Version build-19 (Release)
Set home directory: /home/dakkus/.widelands
Adding directory: /usr/share/games/widelands/data
selected language: en
using locale en_US.utf-8
Graphics: Try to set Videomode 800x600
glewInit returns 1
Your OpenGL installation must be __very__ broken. Missing GL version

Caught exception (of type '10WException') in outermost handler!
The exception said: [/build/widelands-Ya1K3G/widelands-19/src/graphic/gl/initialize.cc:90] glewInit returns 1: Broken OpenGL installation.

This should not happen. Please file a bug report on version build-19(Release).
and remember to specify your operating system.

-------------
-------------

dakkus@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

-------------
-------------

Just earlier the same day, build-18, which I had gotten from the default Ubuntu repositories, was running just fine. The OS installation should be new. I just bought the computer yesterday at a city bureau that readies city workers' old work laptops for sale and always installs fresh Ubuntu installations on them. All that I had done

Tags: crash opengl
Revision history for this message
kaputtnik (franku) wrote :

Could you please provide the used graphics card and driver?

I am not familiar with Ubuntu anymore but something like this may work:

lspci -nnk | grep -i VGA -A2

If you have package mesa-utils installed:

glxinfo | grep 'OpenGL version string'

Revision history for this message
Tuukka Ryyppö (dakkus) wrote :

dakkus@ubuntu:~$ lspci -nnk | grep -i VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
 Subsystem: Fujitsu Limited. Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [10cf:137a]
 Kernel driver in use: i915
dakkus@ubuntu:~$ glxinfo | grep 'OpenGL version string'
OpenGL version string: 1.4 Mesa 11.2.0
dakkus@ubuntu:~$

Revision history for this message
Tuukka Ryyppö (dakkus) wrote :

dakkus@ubuntu:~$ lspci -nnk | grep -i VGA -A6
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
 Subsystem: Fujitsu Limited. Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [10cf:137a]
 Kernel driver in use: i915
 Kernel modules: i915, intelfb
00:02.1 Display controller [0380]: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [8086:27a6] (rev 03)
 Subsystem: Fujitsu Limited. Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [10cf:137a]
00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 02)
dakkus@ubuntu:~$

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Hello, and welcome to Launchpad :)

>build-18, which I had gotten from the default Ubuntu repositories, was running just fine

Older versions (like build 18) used to have a software renderer as fall-back if opengl didn't work. You may have only used this briefly before upgrading, but do you remember whether build18 was using opengl or not?

Also, could you try running `glxgears`? This is a small sample opengl program so we can see whether the issue is general or limited to Widelands.

tags: added: crash opengl
Changed in widelands:
importance: Undecided → Medium
Revision history for this message
SirVer (sirver) wrote :

please also report output of glxinfo.

Revision history for this message
Tuukka Ryyppö (dakkus) wrote :
Download full text (11.0 KiB)

dakkus@ubuntu:~$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_swap_control
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile,
    GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float,
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB,
    GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) 945GM x86/MMX/SSE2 (0x27a2)
    Version: 11.2.0
    Accelerated: yes
    Video memory: 192MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 1.4
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) 945GM x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 11.2.0
OpenGL extensions:
    GL_3DFX_texture_compression_FXT1, GL_AMD_shader_trinary_minmax,
    GL_ANGLE_texture_compression_dxt3, GL_ANGLE_...

Revision history for this message
kaputtnik (franku) wrote :

For comparison i attache the output of glxinfo from my Laptop, also Intel driven graphics.

On first view this seems suspicious:
> Video memory: 192MB

On my machine this is:
Video memory: 1536MB

-------------------------------
Launchpad makes trouble with the attachment, i will upload it later

Revision history for this message
kaputtnik (franku) wrote :
Revision history for this message
Tuukka Ryyppö (dakkus) wrote :

I now downloaded the build-18 package for reference (and data for build-18) and unpacked the deb. Got it from packages.ubuntu.com and it's the package for my Ubuntu version. After copying a font file around, I was able to run build-18 under my home dir. So:

The starting menu views and presumably the whole game works. Build-19 of course still doesn't work, so this is only for reference.

This is the output of build-18 before I quit the game:
dakkus@ubuntu:~/Descargas/widelands18$ ./usr/games/widelands --datadir=/home/dakkus/Descargas/widelands18/usr/share/games/widelands/
Set home directory: /home/dakkus/.widelands
No version file found
Adding directory: /home/dakkus/Descargas/widelands18/usr/share/games/widelands/
Version file found with id "build-18" (real "build-18" )
No version file found
selected language: (system language)
using locale es_ES.UTF-8
SDL_VIDEODRIVER=&
Graphics: Trying Video driver: 0 x11 SDL_VIDEODRIVER=x11
Graphics: Trying opengl
Graphics: Try to set Videomode 800x600 32 Bit
Graphics: Setting video mode was successful
Graphics: OpenGL: OpenGL enabled
Graphics: OpenGL: Double buffering enabled
Graphics: OpenGL: Max texture size: 2048
Graphics: OpenGL: Number of aux buffers: 0
Graphics: OpenGL: Number of stencil buffer bits: 8
Graphics: OpenGL: Maximum number of textures for multitextures: 8
Graphics: OpenGL: Version 1.4 "1.4 Mesa 11.2.0"
Graphics: OpenGL: Textures may have any size
Graphics: OpenGL: Multitexture capabilities sufficient
**** GRAPHICS REPORT ****
 VIDEO DRIVER x11
 hw surface possible 0
 window manager available 1
 blitz_hw 0
 blitz_hw_CC 0
 blitz_hw_A 0
 blitz_sw 0
 blitz_sw_CC 0
 blitz_sw_A 0
 blitz_fill 0
 video_mem 0
 vfmt 0x8823d58
 size 800 600
**** END GRAPHICS REPORT ****
Graphics: flags: 2
[] Section [global], key 'EXENAME' not used (did you spell the name correctly?)
Sound_Handler: loaded song "music/intro_00.ogg"
Sound_Handler: loaded song "music/menu_00.ogg"

Revision history for this message
SirVer (sirver) wrote :

glxinfo only reports Mesa. AFAIK this is a software only renderer for OpenGL. It seems likely that SDL ignores this, as it will not provide hardware accelerated graphics (which are now required for b19).

In b18, in the options menu you can enable OpenGL. I bet that it won't start then either.

It seems like you are missing OpenGL drivers for your graphics card, or they are not properly configured. I do not know how to go about this though :/.

Revision history for this message
Venatrix (elisabeth) wrote :

What I’m more concerned about is the OpenGL version. It’s said to be:

> OpenGL version string: 1.4 Mesa 11.2.0

I get this on my machine:

> OpenGL version string: 3.0 Mesa 11.2.0

So, if I had to guess I’d say it’s not Mesa which is not working properly but the card itself which is not able to support OpenGL 3.0+. Could that be?

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Came across this issue again since bug 1701966 was just reported.

Since this was initially filed, a newer version of Mesa has become available in Ubuntu 16.04. (https://launchpad.net/ubuntu/+source/mesa) I don't know whether this will affect much in practice, but doesn't hurt to try. Could you check that you have all updates installed and retry Widelands? If still doesn't work (or even if it does), could you attach the updated glxinfo output?

Revision history for this message
xorx (jrgx69) wrote :

Hi,

  just installed build19 in Xubuntu 18.04.01 and I got the same error:

Installed packages:

* widelands/bionic-updates,now 1:19+repack-4ubuntu0.18.04.1 i386;
* widelands-data/bionic-updates,now 1:19+repack-4ubuntu0.18.04.1 all

This is the output from glxinfo command:

glxinfo | grep Open
    Vendor: Intel Open Source Technology Center (0x8086)
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) 945GME x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 19.0.8
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 19.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

And this, from lscpi command:

lspci -nnk | grep -i VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GSE Express Integrated Graphics Controller [8086:27ae] (rev 03)
 Subsystem: Acer Incorporated [ALI] Mobile 945GSE Express Integrated Graphics Controller [1025:019c]
 Kernel driver in use: i915

This is the kernel version:
uname -a
Linux elhazard 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:10:46 UTC 2019 i686 i686 i686 GNU/Linux

The program glxgears works fine.

Thanks.

GunChleoc (gunchleoc)
Changed in widelands:
milestone: none → build21-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :

I guess the reason that we can't detect anything is that we'd need something like "OpenGL shading language version string: 1.20", which isn't reported by your graphics driver. 1.20 is our minimum supported version for the shading language.

This is what the output looks for me on a working Intel card on Ubuntu:

$ glxinfo | grep Open
    Vendor: Intel Open Source Technology Center (0x8086)
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.0.8
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 19.0.8
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.