Open Hyask opened 1 week ago
Thanks for your report!
The same bug has been reported here: https://bugs.launchpad.net/snap-store-desktop/+bug/2047739. @robert-ancell do you know more about this?
Please report the bug to https://github.com/flutter/flutter/issues and then tell us the new issue ID.
glFenceSync
is only used in GTK (i.e. not in the Flutter code). It has code to check if it is available and avoids it if not. Could you install gtk-3-examples
and run gtk3-demo
and double click on the "OpenGL Area" item on the left and see if that is working for you?
Okay, was hard to test, because of the regular freezes I have without nomodeset
, but final got it.
The OpenGL Area seems to be working fine, I have the yellow triangle rotating correctly on the different axis, same as on another machine. Is there an other test to maybe track further down what works and what doesn't?
Looking at the GTK source this was fixed in GTK 3.24.39, and checks that you have OpenGL ES 3.0 or OpenGL 3.2 or the GL_ARB_sync/GL_APPLE_sync extensions.
However sync is only used if we have a custom GL context, which we have to do for Flutter and isn't used in the demo. So if you are able please compile and test the following:
#include <gtk/gtk.h>
static GdkGLContext *create_context_cb(GtkWidget *a) {
g_autoptr(GError) error = NULL;
GdkGLContext *c =
gdk_window_create_gl_context(gtk_widget_get_window(a), &error);
if (c == NULL) {
g_printerr("Failed to create context: %s\n", error->message);
}
return c;
}
int main(int argc, char **argv) {
gtk_init(&argc, &argv);
GtkWidget *w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(w);
GtkWidget *a = gtk_gl_area_new();
g_signal_connect(a, "create-context", G_CALLBACK(create_context_cb), NULL);
gtk_widget_show(a);
gtk_container_add(GTK_CONTAINER(w), a);
gtk_main();
}
Compile with gcc -g -Wall test-sync.c -o test-sync $(pkg-config --cflags --libs gtk+-3.0)
The code you gave me opens a window filled with black. This works on both GNOME (Xorg and Wayland) and sway (Wayland), fwiw.
And it doesn't show the "No provider of glFenceSync found" message, right?
No, no message printed at all.
Is there an existing issue for this?
Describe the bug
This bug was originally reported here.
I'm unable to run some/most/all? Flutter apps on my Thinkpad x201. Desktop security center has a nicer error than subiquity, and is easier to reproduce so reporting there, but maybe it should be forwarded to Flutter instead after first investigation.
Steps to reproduce the behavior
nomodeset
desktop-security-center
Expected behavior
The security center should just start.
Ubuntu release
24.10
What architecture are you using?
amd64
System info
Additional context
No response