GNOME Bugzilla – Bug 766782
OpenGL in broadway leads to segmentation fault
Last modified: 2016-05-23 07:54:17 UTC
Forwarding from https://bugs.debian.org/823520 ========== When launching an application that uses OpenGL in broadwayd, it crashes with segmentation fault. Steps to reproduce the issue: 1) broadwayd -a 127.0.0.1 -p 8889 :2 & 2) GDK_BACKEND=broadway BROADWAY_DISPLAY=:2 gtk3-demo 3) Go to 127.0.0.1:8889 in browser 4) Select OpenGL example in the window and launch it 5) The application crashes and the console says: Segmentation fault.
I'm able to reproduce this on Debian unstable with gtk 3.20.4. Stacktrace is below. Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? ()
+ Trace 236274
Broadway does not support OpenGL. Having said that, we should probably return an error instead of just crashing.
Created attachment 328367 [details] [review] gdk: Provide safe fallback for creating GL contexts If the backend does not override GdkWindowClass.create_gl_context() then we should provide a fallback that gives an error, instead of crashing.
Created attachment 328370 [details] [review] gdk: Provide safe fallback for creating GL contexts If the backend does not override GdkWindowClass.create_gl_context() then we should provide a fallback that gives an error, instead of crashing.
Attachment 328370 [details] pushed as 9c3802f - gdk: Provide safe fallback for creating GL contexts