Widelands does not start on old Intel hardware...

Bug #1701966 reported by Lists-jjorge
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Medium
SirVer

Bug Description

I know that Widelands requires OpenGl 2 since build19. But it seems it does not check for it well as it crashes on Intel 945 which announces OpenGL2.1 :

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: [/home/iurt/rpmbuild/BUILD/widelands-build19-src/src/graphic/gl/initialize.cc:90] glewInit returns 1: Broken OpenGL installation.

Tags: crash opengl
Revision history for this message
Lists-jjorge (lists-jjorge) wrote :

I know that this hardware has limited OpenGL 2 support, so I join the glxinfo result.

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

Thanks for reporting.

We've seen some similar issues with build19, though I'm a bit hesitant to mark this as a duplicate since there might be different hardware at play here.

Could you please provide some additional information:
1. Which operating system and version are you running?
2. The path seem to indicate you built Widelands yourself, did you have any issues with building regards to the required dependencies? Not sure how thorough the checks are at compilation time, but just in case glew or opengl printed some warnings.
3. Could you attach the full output when attempting to start Widelands? I suspect it will look similar to the one in the bug mentioned above, but would be good to know if it contains more details on the graphics setup.

Changed in widelands:
importance: Undecided → Medium
tags: added: crash opengl
Revision history for this message
Lists-jjorge (lists-jjorge) wrote :

I am running Mageia 6, for which I help packaging, I don't build it myself but I can. The important point is that this hardware is so limited that Mesa announces OpenGL 1.4 if I don't enable two options through driconf, as explained here :

https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/intel-linux/14274-945-generation-and-opengl-2-0?p=570149#post570149

The full output adds nothing, do you believe I should try upcoming b20 ( are there any changes in OpenGL code?).

Revision history for this message
GunChleoc (gunchleoc) wrote :

There are no changes planned to the OpenGL code for Build20.

The one thing that we would like to do is to give the user a more informative message when things fail, but nothing in that regard has been implemented yet.

Revision history for this message
Joseph (josephomorrow-e) wrote :

widelands version bzr8560[widelands](Release)

Desktop computer

Operating system: fedora 27

kernel: 4.14.13-300.fc27.x86_64

 *-pci
          description: Host bridge
          product: 82945G/GZ/P/PL Memory Controller Hub
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 02
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: 82945G/GZ Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:16 memory:e0100000-e017ffff ioport:30e0(size=8) memory:d0000000-dfffffff memory:e0180000-e01bffff memory:c0000-dffff

  *-core
       description: Motherboard
       product: D945GCPE
       vendor: Intel Corporation
       physical id: 0
       version: AAD97209-201
       serial: AZPE74200FAA
       slot: Base Board Chassis Location
     *-cpu
          description: CPU
          product: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
          vendor: Intel Corp.
          physical id: 0
          bus info: cpu@0
          version: Intel(R) Core(TM)2 CPU E7500 @ 2.93GHz
          slot: LGA 775
          size: 1596MHz
          capacity: 4GHz
          width: 64 bits
          clock: 100MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni monitor tm2 ssse3 lahf_lm pti retpoline dtherm dtes64 ds_cpl vmx est cx16 xtpr pdcm sse4_1 xsave tpr_shadow vnmi flexpriority cpufreq

Revision history for this message
Joseph (josephomorrow-e) wrote :

(#5 continued)

Relevant output when trying to run widelands:

This is Widelands Version bzr8560[widelands] (Release)

. . .

Graphics: Try to set Videomode 1680x1050
glewInit returns 1
Your OpenGL installation must be __very__ broken. Missing GL version

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

This should not happen. Please file a bug report on version bzr8560[widelands](Release).
and remember to specify your operating system.

Revision history for this message
kaputtnik (franku) wrote :

Hi Joseph,

thanks for posting. This problem seems to be very rare and appear only on intel hardware. Can you provide the output of

glxinfo -B -l

Do you use other OpenGl games?

Revision history for this message
Joseph (josephomorrow-e) wrote :
Download full text (4.2 KiB)

[me]$ glxinfo -B -l

name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) 945G (0x2772)
    Version: 17.2.4
    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) 945G
OpenGL version string: 1.4 Mesa 17.2.4
OpenGL limits:
    GL_MAX_ATTRIB_STACK_DEPTH = 16
    GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 16
    GL_MAX_CLIP_PLANES = 6
    GL_MAX_ELEMENTS_VERTICES = 3000
    GL_MAX_ELEMENTS_INDICES = 3000
    GL_MAX_EVAL_ORDER = 30
    GL_MAX_LIGHTS = 8
    GL_MAX_LIST_NESTING = 64
    GL_MAX_MODELVIEW_STACK_DEPTH = 32
    GL_MAX_NAME_STACK_DEPTH = 64
    GL_MAX_PIXEL_MAP_TABLE = 256
    GL_MAX_PROJECTION_STACK_DEPTH = 32
    GL_MAX_TEXTURE_STACK_DEPTH = 10
    GL_MAX_TEXTURE_SIZE = 2048
    GL_MAX_3D_TEXTURE_SIZE = 256
    GL_MAX_VIEWPORT_DIMS = 16384, 16384
    GL_ALIASED_LINE_WIDTH_RANGE = 1, 7
    GL_SMOOTH_LINE_WIDTH_RANGE = 1, 7
    GL_ALIASED_POINT_SIZE_RANGE = 1, 255
    GL_SMOOTH_POINT_SIZE_RANGE = 1, 3
    GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 2048
    GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 2048
    GL_MAX_TEXTURE_UNITS_ARB = 8
    GL_MAX_TEXTURE_LOD_BIAS_EXT = 14
    GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 4
    GL_MAX_DRAW_BUFFERS_ARB = 1
    GL_MAX_RENDERBUFFER_SIZE = 2048
    GL_MAX_COLOR_ATTACHMENTS = 8
    GL_MAX_SAMPLES = 0
    GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 2047
    GL_MAX_VERTEX_ATTRIB_BINDINGS = 16
    GL_NUM_COMPRESSED_TEXTURE_FORMATS = 5
        GL_COMPRESSED_RGB_FXT1_3DFX
        GL_COMPRESSED_RGBA_FXT1_3DFX
        GL_COMPRESSED_RGB_S3TC_DXT1_EXT
        GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
        GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
    GL_VERTEX_PROGRAM_ARB:
        GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ATTRIBS_ARB = 16
        GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 16
        GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 1
        GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 1
        GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 256
    GL_FRAGMENT_PROGRAM_ARB:
        GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 96
        GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 16
        GL_MAX_PROGRAM_PARAMETERS_ARB = 64
        GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 32
        GL_MAX_PROGRAM_ATTRIBS_ARB = 12
        GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 11
        GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0
        GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0
        GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 4096
        GL_MAX_PRO...

Read more...

Revision history for this message
Joseph (josephomorrow-e) wrote :

I don't use any other OpenGl games that I know of.

GunChleoc (gunchleoc)
Changed in widelands:
assignee: nobody → SirVer (sirver)
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

Remote bug watches

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