#722161 COGL does not work with fglrx

Package:
src:cogl
Source:
cogl
Submitter:
Giuseppe Sacco
Date:
2021-06-10 17:21:27 UTC
Severity:
important
Tags:
#722161#5
Date:
2013-09-08 15:55:55 UTC
From:
To:
Hi Rico,
today, after upgrading from stable to testing, a few gnome programs
stopped working. Since one of them is evolution, I googled about the
problem and found an already opened bug (see #721312). After debugging a
little bit, I found that the error message "The OpenGL version could not
be determined" is emitted by the libcogl12 library.

The reason of the error message is in source file cogl/cogl-context.c,
in function _cogl_context_get_gl_version (CoglContext *context) because
function call context->glGetString (GL_VERSION) returns NULL.

I do not think the problem is just on that function call, since even
avoiding it by the use of COGL_OVERRIDE_GL_VERSION variable, all
programs eventually segfaults. As in:

giuseppe@blatta:/tmp/cogl-1.14.0$ sudo tail -f /var/log/syslog &
giuseppe@blatta:/tmp/cogl-1.14.0$ COGL_OVERRIDE_GL_VERSION=1.4 cheese
(cheese:11268): GLib-CRITICAL **: g_strsplit: assertion `string != NULL'
failed
Sep  8 17:31:15 blatta kernel: [ 2608.342244] cheese[11268]: segfault at
0 ip 00007fba4ff424cc sp 00007fff87ffceb0 error 4 in
libcogl.so.12.1.1[7fba4ff11000+97000]
Errore di segmentazione

or

giuseppe@blatta:/tmp/cogl-1.14.0$ COGL_OVERRIDE_GL_VERSION=1.4 evolution
(evolution:11274): GLib-CRITICAL **: g_strsplit: assertion `string !=
NULL' failed
Sep  8 17:31:58 blatta kernel: [ 2651.672205] evolution[11274]: segfault
at 0 ip 00007f0db84b64cc sp 00007fff308feda0 error 4 in
libcogl.so.12.1.1[7f0db8485000+97000]
Errore di segmentazione

These are my GLX information:

giuseppe@blatta:/tmp/cogl-1.14.0$ fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7700M Series
OpenGL version string: 4.3.12438 Compatibility Profile Context FireGL
8.982.13

giuseppe@blatta:/tmp/cogl-1.14.0$ glxinfo | head -14
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: ATI
server glx version string: 1.4
server glx extensions:
     GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_texture_from_pixmap,
     GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
     GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGIS_multisample,
     GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
client glx vendor string: ATI
client glx version string: 1.4
client glx extensions:
     GLX_ARB_create_context, GLX_ARB_create_context_profile,

I am unable to keep investigaing on this subject right now, but if you
need any test by my side on this machine, just let me know.

Thanks,
Giuseppe

#722161#10
Date:
2014-05-09 09:01:14 UTC
From:
To:
Hi,

this bug was now reported as

#722161 against cogl
#745901 against fglrx-driver
#744152 against gdm3

I posted a workaround to #745901 [1]. The bugs should be merged and
linked to the affected packages with "affects" but I'm not sure if the
bug is in cogl or fglrx. It should probably be fixed in cogl.

Best,
Tobias

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745901#41

#722161#15
Date:
2014-05-09 10:57:58 UTC
From:
To:
Hi,

FYI, I don't see any problem with gdm3 3.8.4-6, but I don't have any
fglrx package installed. So, if the bug is in cogl, it appears only
in some combination with other packages (fglrx...).

Note that the problem I was seeing is entirely new in gdm3 3.8.4-7
(X server not always starting + sometimes graphic corruption in
gdm3 when it can start).