GTK Webkit not rendering on nvidia-jetpack 5.1.2-b104

We still see on nvidia-jetpack 5.1.2-b104 that an app using GTK Webkit2 is not rendering as reported here:

We tried on older version without success

Can you try if this simple app renders ok for you? (a basic gtk webkit example using a basic index.html with text and images)

int main(int argc, char* argv[]) {
    // Initialize GTK+
    gtk_init(&argc, &argv);

    // Create a window that will contain the browser instance
    GtkWidget *main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

    // Set the window size if we are running remotely or use the full screen size
    int screen_width = 800;
    int screen_height = 800;
    if (!isRemoteX11()){
        printf("Local Display\n");
        getScreenSize(&screen_width, &screen_height);
    } else {
        printf("Remote X display, simulating resolution of %dx%d\n", screen_width, screen_height);
    gtk_window_set_default_size(GTK_WINDOW(main_window), screen_width, screen_height);

    // Remove the resize capability from the main window
    gtk_window_set_resizable(GTK_WINDOW(main_window), FALSE);

    // Make the main window truly fullscreen

    // Create a browser instance
    WebKitWebView *webView = WEBKIT_WEB_VIEW(webkit_web_view_new());

    // Put the browser area into the main window
    gtk_container_add(GTK_CONTAINER(main_window), GTK_WIDGET(webView));

    // Set up callbacks so that if either the main window or the browser instance is
    // closed, the program will exit
    g_signal_connect(main_window, "destroy", G_CALLBACK(destroyWindowCb), NULL);
    g_signal_connect(webView, "close", G_CALLBACK(closeWebViewCb), main_window);

    // Load a web page into the browser instance
    webkit_web_view_load_uri(webView, "file:///usr/web/index.html");

    // Make sure that when the browser area becomes visible, it will get mouse
    // and keyboard events

    // Make sure the main window and all its contents are visible

    // Run the main GTK+ event loop

    return 0;

Please share the steps to build/run the sample and we will give it a try.

And it would be great if you can try Jetpack 5.1.3 or 4.6.4

Sure, I packed in a tar.gz a project with cmake and a precompiled version
webkit-test.tar.gz (58.2 KB)

Also how it looks when using remote X (with Xquartz) that shows the very same code works if not rendering on the device

On the device shows a white screen, but if you drag with the mouse on the center, you see the image being dragged.

I would really appreciate feedback, btw the jetpack version is now on 5.1.2 on vendor side we cannot move it.

HI Danell, could you take a look on the shared app?

We would need some time to set up and try. For information, does it work on x86 host PC? Would like to make sure it works on x86 and only fails on Jetson platform.

Tested it, works, there are some logs to check related to mesa but specific to the machine