After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689759 - Segmentation fault when using GLX and the Broadway backend
Segmentation fault when using GLX and the Broadway backend
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Backend: Broadway
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-12-06 06:18 UTC by LE GARREC Vincent
Modified: 2016-04-28 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GL and glx sample program (3.51 KB, text/x-c)
2012-12-06 06:18 UTC, LE GARREC Vincent
Details

Description LE GARREC Vincent 2012-12-06 06:18:29 UTC
Created attachment 230871 [details]
GL and glx sample program

glXChooseVisual always crash when launching a GL program with broadway backend. I don't really know if the problem come from gtk or X11.


Sample program enclosing. Compile it with "gcc glx.c  -o glx `pkg-config --cflags --libs gtk+-3.0 gl`"


run great with ./glx
but not with GDK_BACKEND=broadway ./glx


(gdb) bt
  • #0 XQueryExtension
    at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/QuExt.c line 43
  • #1 XInitExtension
    at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/InitExt.c line 47
  • #2 XextAddDisplay
    at /var/tmp/portage/x11-libs/libXext-1.3.1/work/libXext-1.3.1/src/extutil.c line 110
  • #3 ??
    from /usr/lib64/libGL.so.1
  • #4 glXChooseVisual
    from /usr/lib64/libGL.so.1
  • #5 main
    at glx.c line 116

Comment 1 Emmanuele Bassi (:ebassi) 2016-04-28 11:45:19 UTC
You're using X11-only API (in a way that is neither supported nor recommended) with a different GDK backend (one that does not even have GL support), and you're getting a crash. That's entirely expected.
Comment 2 admin 2016-04-28 14:18:26 UTC
So is there any way to show an application that uses OpenGL / Clutter through broadway then? Or some other way to display it in browser.
Comment 3 Emmanuele Bassi (:ebassi) 2016-04-28 14:22:52 UTC
(In reply to admin from comment #2)
> So is there any way to show an application that uses OpenGL / Clutter
> through broadway then?

Currently, no. Most definitely not by using native X11 calls.

In theory it may be possible to add a WebGL context wrapper to the Broadway backend, and then use GtkGLArea, but Cogl/Clutter do not work that way in any case.