To clarify: This screenshot is taken in Gnome OS inside a virtual machine without GPU acceleration. I can reproduce the same error on a host machine with proper GPU, Manjaro, Gnome and Wayland, also I can reproduce this error on another machine with Debian, Xfce and X11.
I be leave this is a flatpak package or runtime issue.
Fishbowl demo of org.gtk.Demo4
crashes with an error:
(gtk4-demo:2): Gtk-ERROR **: 21:52:23.879: failed to add UI from resource /fishbowl/fishbowl.ui: .:31:1: No function named `format_header_cb`.
org.gtk.Demo4
from gnome-nightly flatpak repository;Run
button.Thread 1 "gtk4-demo" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff751da07 in g_log_writer_default () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff751da07 in g_log_writer_default () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff751b0d4 in g_log_structured_array () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff751bd78 in g_log_structured_standard () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff776109c in gtk_builder_new_from_resource (resource_path=resource_path@entry=0x5555555c965f "/fishbowl/fishbowl.ui") at ../gtk/gtkbuilder.c:2930
#4 0x000055555558f7d9 in do_fishbowl (do_widget=0x555555c8bbf0) at ../demos/gtk-demo/fishbowl.c:317
#5 0x00005555555b2ba6 in gtk_demo_run (window=0x555555c8bbf0, self=<optimized out>) at ../demos/gtk-demo/main.c:155
Sorry, issue is still here.
Fishbowl demo of org.gtk.Demo4
crashes with an error:
(gtk4-demo:2): Gtk-ERROR **: 21:52:23.879: failed to add UI from resource /fishbowl/fishbowl.ui: .:31:1: No function named `format_header_cb`.
org.gtk.Demo4
from gnome-nightly flatpak repository;Run
button.Thread 1 "gtk4-demo" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff751da07 in g_log_writer_default () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff751da07 in g_log_writer_default () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff751b0d4 in g_log_structured_array () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff751bd78 in g_log_structured_standard () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff776109c in gtk_builder_new_from_resource (resource_path=resource_path@entry=0x5555555c965f "/fishbowl/fishbowl.ui") at ../gtk/gtkbuilder.c:2930
#4 0x000055555558f7d9 in do_fishbowl (do_widget=0x555555c8bbf0) at ../demos/gtk-demo/fishbowl.c:317
#5 0x00005555555b2ba6 in gtk_demo_run (window=0x555555c8bbf0, self=<optimized out>) at ../demos/gtk-demo/main.c:155
The issue is not manifesting itself in recent build b444e065ebb42bdef2f5fd6540efb0feb4e66001178fad58dcc2112954a64e3b.
As expected the GSK renderer and GL area are working, transparency is not.
Thank you. 0a1702ae fixes everything. Both GL GSK renderer and GtkGLArea are working now.
I had built GTK from source with buildtype debug.
The current git master 876b439d:
`--> env GDK_DEBUG=opengl demos/gtk-demo/gtk4-demo
(gtk4-demo:60419): Gtk-WARNING **: 10:40:14.942: Locale not supported by C library.
Using the fallback 'C' locale.
Best GLX config is 0 for visual 0x4B1 with no RGBA Visual
GLX config 160 for visual 0x68E is the perfect choice
GLX version 1.4 found
- Vendor: Mesa Project and SGI
- Checked extensions:
* GLX_ARB_create_context_profile: yes
* GLX_EXT_create_context_es2_profile: yes
* GLX_SGI_swap_control: yes
* GLX_EXT_swap_control: yes
* GLX_EXT_texture_from_pixmap: yes
* GLX_SGI_video_sync: yes
* GLX_EXT_buffer_age: yes
* GLX_OML_sync_control: yes
* GLX_ARB_multisample: yes
* GLX_EXT_visual_rating: yes
Creating GLX context version 3.2 (debug:no, forward:no, legacy:no, es:no)
Realized GLX context[(nil)], indirect, version: 1.4
Using OpenGL backend X11 GLX
(gtk4-demo:60419): Gtk-WARNING **: 10:40:16.145: No IM module matching GTK_IM_MODULE=ibus found
** Message: 10:40:16.274: For syntax highlighting, install the ?highlight? program
Creating GLX context version 3.2 (debug:no, forward:no, legacy:no, es:no)
Creating GLX context version 2.0 (debug:no, forward:no, legacy:no, es:yes)
Creating GLX context version 3.0 (debug:no, forward:no, legacy:yes, es:no)
Gsk-Message: 10:40:16.976: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkX11Toplevel': Unable to create a GL context
And here is the output of the last working commit 5b376ced:
`--> env GDK_DEBUG=opengl demos/gtk-demo/gtk4-demo
(gtk4-demo:105847): Gtk-WARNING **: 11:51:03.657: Locale not supported by C library.
Using the fallback 'C' locale.
Best GLX config is 0 for visual 0x4B1 with no RGBA Visual
GLX config 160 for visual 0x68E is the perfect choice
GLX version 1.4 found
- Vendor: Mesa Project and SGI
- Checked extensions:
* GLX_ARB_create_context_profile: yes
* GLX_EXT_create_context_es2_profile: yes
* GLX_SGI_swap_control: yes
* GLX_EXT_texture_from_pixmap: yes
* GLX_SGI_video_sync: yes
* GLX_EXT_buffer_age: yes
* GLX_OML_sync_control: yes
* GLX_ARB_multisample: yes
* GLX_EXT_visual_rating: yes
Creating GLX context version 3.2 (debug:no, forward:no, legacy:no, es:no)
Realized GLX context[(nil)], indirect, version: 1.4
Using OpenGL backend X11 GLX
(gtk4-demo:105847): Gtk-WARNING **: 11:51:04.207: No IM module matching GTK_IM_MODULE=ibus found
** Message: 11:51:04.428: For syntax highlighting, install the ?highlight? program
Creating GLX context version 3.2 (debug:no, forward:no, legacy:no, es:no)
Realized GLX context[(nil)], indirect, version: 1.4
Making GLX context 0x55f324f72300 current to drawable 98566153
OpenGL version: 3.3 (core)
* GLSL version: 3.30
* Max texture size: 8192
* Extensions checked:
- GL_KHR_debug: yes
- GL_EXT_unpack_subimage: yes
- OES_vertex_half_float: yes
Making GLX context 0x55f32511a050 current to drawable 98566153
OpenGL version: 3.3 (core)
* GLSL version: 3.30
* Max texture size: 8192
* Extensions checked:
- GL_KHR_debug: yes
- GL_EXT_unpack_subimage: yes
- OES_vertex_half_float: yes
Making GLX context 0x55f32511a050 current to drawable 98566158
Flushing GLX buffers for drawable 98566158 (window: 98566148), frame sync: no
The next commit 34662fc4 brakes shading in GL Triangle and Gears and completely brakes Shader Toy (see screenshot). GSK GL Renderer still works though.
And then ab2a5484 brakes both GL examples and GSK GL Backend.
GTK fails to initialize OpenGL context on old hardware with support of OpenGL core profile up to version 3.3. Neither GtkGLArea nor GSK GL backend works.
org.gtk.Demo4
on old OpenGL 3.3 GPU;The warning is shown in terminal:
Gsk-Message: 21:32:21.477: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkX11Toplevel': Unable to create a GL context
GtkGLArea Gears shows an error "Unable to create a GL context". GSK uses Cairo as renderer.
No warnings in terminal. GtkGLArea Gears should show the moving gears. GSK should use GL renderer. All should work fine as in org.gtk.Demo4 from 2023-04-26.
org.gtk.Demo4
from the gnome-nightly flatpak repository commit 29c39869dfbf07d96f4ccbb3703bcf7b42940e1ae7253a7d284034a62c1058aa from 2023-05-30 05:24:55 +0000I have spoted some changes in GL context initialization in git commits just before 2023-04-27. On modern hardware all works as expected.
`--> glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 22.3.6
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Fishbowl demo of org.gtk.Demo4
crashes with an error:
(gtk4-demo:2): Gtk-ERROR **: 21:52:23.879: failed to add UI from resource /fishbowl/fishbowl.ui: .:31:1: No function named `format_header_cb`.
org.gtk.Demo4
from gnome-nightly flatpak repository;Run
button.Thread 1 "gtk4-demo" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff751da07 in g_log_writer_default () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff751da07 in g_log_writer_default () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff751b0d4 in g_log_structured_array () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff751bd78 in g_log_structured_standard () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff776109c in gtk_builder_new_from_resource (resource_path=resource_path@entry=0x5555555c965f "/fishbowl/fishbowl.ui") at ../gtk/gtkbuilder.c:2930
#4 0x000055555558f7d9 in do_fishbowl (do_widget=0x555555c8bbf0) at ../demos/gtk-demo/fishbowl.c:317
#5 0x00005555555b2ba6 in gtk_demo_run (window=0x555555c8bbf0, self=<optimized out>) at ../demos/gtk-demo/main.c:155
I have a gigabit network and a slow mechanical hard drive.
Totem completely saturates the bandwidth of the hard drive while downloading the video from DLNA server. Playback becomes choppy and the whole system slows down. This continues until Totem has finished downloading.
I believe that partial file downloads or download throttling can fix this problem.
manjaro linux
totem 3.38.2
grilo 0.3.14
Can not see mouse pointer over VNC with gnome-remote-desktop. Gnome 41 / Wayland on Manjaro.
Fixed in current gnome-nightly.
No errors and no warnings. Even with flatpak run --env=GDK_DEBUG=all org.gtk.Demo4
application has no output.
journalctl -f
shows:
Sep 03 02:11:53 blackbox systemd[1297]: Started app-flatpak-org.gtk.Demo4-545354.scope.
Sep 03 02:11:54 blackbox systemd[1297]: app-flatpak-org.gtk.Demo4-545354.scope: Succeeded.
Do not know how to get backtrace from flatpak.
I asked earlier about the Rust Analyzer's Inlay Hints in the Gnome Builder. It was said the TextView does not have no ability to do this type of stuff. It would be good to get this abilities.
Here is Gnome Builder's issue gnome-builder#1317
Fixed in upstream https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/5857.
Waiting for new org.gnome.Sdk
to close this issue.