OSSystems / meta-browser

OpenEmbedded/Yocto BSP layer for Web Browsers
MIT License
185 stars 194 forks source link

build chromium-ozone-wayland with GTK, meet 'gdk/gdkx.h' file not found #514

Closed fangxiaoying closed 3 years ago

fangxiaoying commented 3 years ago
--- a/recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb
+++ b/recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb
@@ -7,6 +7,18 @@ DEPENDS += "\
         virtual/egl \
         wayland \
         wayland-native \
+        libx11 \
+        libxcomposite \
+        libxcursor \
+        libxdamage \
+        libxext \
+        libxfixes \
+        libxi \
+        libxrandr \
+        libxrender \
+        libxscrnsaver \
+        libxtst \
+       gtk+3 \
 "

 GN_ARGS += "\
@@ -15,13 +27,13 @@ GN_ARGS += "\
         ozone_auto_platforms=false \
         ozone_platform_headless=true \
         ozone_platform_wayland=true \
-        ozone_platform_x11=false \
+        ozone_platform_x11=true \
         system_wayland_scanner_path="${STAGING_BINDIR_NATIVE}/wayland-scanner" \
         use_xkbcommon=true \
         use_system_libwayland=true \
         use_system_minigbm=true \
         use_system_libdrm=true \
-        use_gtk=false \
+        use_gtk3=true \

but error log | FAILED: obj/ui/gtk/x/gtk_ui_delegate_x11.o | aarch64-poky-linux-clang++ -mcpu=cortex-a53+crc+crypto -mlittle-endian -Wno-error=unused-command-line-argument -Qunused-arguments -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot -MMD -MF obj/ui/gtk/x/gtk_ui_delegate_x11.o.d -DIS_UI_GTK_X_IMPL -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -I../.. -Igen -I../../third_party/libwebp/src -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/vulkan/include -I../../third_party/boringssl/src/include -I../../third_party/skia -I../../third_party/libgifcodec -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/vulkan/include -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/ced/src -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -Xclang -fdebug-compilation-dir -Xclang . -Wall -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-unknown-warning-option -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-pointer-to-int-cast -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/glib-2.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/lib/glib-2.0/include -DLINUX -DWL_EGL_PLATFORM -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/gtk-3.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/gio-unix-2.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/libdrm -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/pango-1.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/fribidi -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/harfbuzz -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/atk-1.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/cairo -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/pixman-1 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/uuid -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/freetype2 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/libpng16 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/gdk-pixbuf-2.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/libmount -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/blkid -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/include/glib-2.0 -I/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot/usr/lib/glib-2.0/include -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -pipe -feliminate-unused-debug-types -fmacro-prefix-map=/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0=/usr/src/debug/chromium-ozone-wayland/83.0.4103.116-r0 -fdebug-prefix-map=/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0=/usr/src/debug/chromium-ozone-wayland/83.0.4103.116-r0 -fdebug-prefix-map=/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot= -fdebug-prefix-map=/opt/samba/nxf47724/L5.4.70_2.3.1/8mm-xwayland/tmp/work/aarch64-mx8mm-poky-linux/chromium-ozone-wayland/83.0.4103.116-r0/recipe-sysroot-native= -g1 -c ../../ui/gtk/gtk_ui_delegate_x11.cc -o obj/ui/gtk/x/gtk_ui_delegate_x11.o | ../../ui/gtk/gtk_ui_delegate_x11.cc:7:10: fatal error: 'gdk/gdkx.h' file not found | #include <gdk/gdkx.h> | ^~~~ | 1 error generated.

The build log without -I gtk-2.0, how to fix the issue?

msisov commented 3 years ago

M83 is really old in terms of Ozone development and it's advised to use the latest recipe.

However, why do you need ozone_platform_x11 set? Can you disable that?

fangxiaoying commented 3 years ago

M83 is really old in terms of Ozone development and it's advised to use the latest recipe. Our yocto release is use it. I will try latest recipe. However, why do you need ozone_platform_x11 set? Can you disable that? Because Customer meets an issue, if build chromium-ozone-wayland, when click more tools -> extensions -> load uppacked the chromium will crash. I think may chromium without gtk cause it. So I try to build it with GTK. but if ozene_platfrom_x11=false may meet many issue.

Could you tell me how to build chromium-ozone-wayland with GTK. which bb files do I need to change?

msisov commented 3 years ago

The recipe with Chromium 83.0.4103.116 already has gtk enabled.

$ git grep -ni "use_gtk" chromium-ozone-wayland_83.0.4103.116.bb:24: use_gtk=true \

fangxiaoying commented 3 years ago

my branch is false in default. I just modify it.

diff --git a/recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb b/recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb
index de9274d..ca91cff 100644
--- a/recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb
+++ b/recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb
@@ -21,7 +21,7 @@ GN_ARGS += "\
         use_system_libwayland=true \
         use_system_minigbm=true \
         use_system_libdrm=true \
-        use_gtk=false \
+        use_gtk=true \
 "
meet error,
assert(use_x11 || ozone_platform_x11)
^-----
See //ui/gtk/BUILD.gn:119:5: which caused the file to be included.
    "//ui/events/platform/x11",
    ^-------------------------
WARNING: exit code 1 from a shell command.

Do I need to add GN_ARGS "use_x11 = true" in recipes-browser/chromium/chromium-ozone-wayland_83.0.4103.116.bb?

msisov commented 3 years ago

I'd suggest you to look at the tree of commits in https://source.chromium.org/chromium/chromium/src/+/main:ui/gtk/BUILD.gn;bpv=1 and identify the commit that fixed that issue (I cannot remember which now, but it should be easy to find one). It's unnecessary to enable x11 if you don't need that.

fangxiaoying commented 3 years ago

I have update chromium version to V89. and enable GTK. but It cannot run on my chip. (i.MX8MMEVK)

root@imx8mmevk:~# chromium --no-sandbox [1038:1104:0920/101925.489837:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [1038:1104:0920/101925.490962:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [1038:1104:0920/101925.492203:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

msisov commented 3 years ago

Run with $ chromium --no-sandbox --ozone-platform=wayland --in-process-gpu

fangxiaoying commented 3 years ago

same error on my side.

msisov commented 3 years ago

These errors are not related. Can't really say what's wrong without more debug logs. try to figure out what happens by looking at gdb or WAYLAND_DEBUG logs.

fangxiaoying commented 3 years ago

This is Debug log. Do you have any idea to debug ? Thx root@imx8mmevk:~# WAYLAND_DEBUG=1 chromium --no-sandbox --ozone-platform=wayland --in-process-gpu [1796176.021] -> wl_display@1.get_registry(new id wl_registry@2) [1796176.144] -> wl_display@1.sync(new id wl_callback@3) [1796176.341] wl_display@1.delete_id(3) [1796176.360] wl_registry@2.global(1, "wl_compositor", 4) [1796176.415] -> wl_registry@2.bind(1, "wl_compositor", 4, new id [unknown]@4) [1796176.461] wl_registry@2.global(2, "wl_subcompositor", 1) [1796176.493] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5) [1796176.523] wl_registry@2.global(3, "wp_viewporter", 1) [1796176.552] -> wl_registry@2.bind(3, "wp_viewporter", 1, new id [unknown]@6) [1796176.582] wl_registry@2.global(4, "zxdg_output_manager_v1", 2) [1796176.605] wl_registry@2.global(5, "wp_presentation", 1) [1796176.631] -> wl_registry@2.bind(5, "wp_presentation", 1, new id [unknown]@7) [1796176.660] wl_registry@2.global(6, "zwp_alpha_compositing_v1", 1) [1796176.683] wl_registry@2.global(7, "zwp_relative_pointer_manager_v1", 1) [1796176.703] wl_registry@2.global(8, "zwp_pointer_constraints_v1", 1) [1796176.726] wl_registry@2.global(9, "zwp_input_timestamps_manager_v1", 1) [1796176.746] wl_registry@2.global(10, "wl_data_device_manager", 3) [1796176.771] -> wl_registry@2.bind(10, "wl_data_device_manager", 3, new id [unknown]@8) [1796176.801] wl_registry@2.global(11, "wl_shm", 1) [1796176.828] -> wl_registry@2.bind(11, "wl_shm", 1, new id [unknown]@9) [1796176.857] wl_registry@2.global(12, "weston_touch_calibration", 1) [1796176.879] wl_registry@2.global(13, "wl_viv", 1) [1796176.901] wl_registry@2.global(14, "wl_drm", 2) [1796176.926] -> wl_registry@2.bind(14, "wl_drm", 2, new id [unknown]@10) [1796176.957] -> wl_display@1.sync(new id wl_callback@11) [1796176.974] wl_registry@2.global(15, "wl_seat", 7) [1796177.001] -> wl_registry@2.bind(15, "wl_seat", 5, new id [unknown]@12) [1796177.031] -> wl_data_device_manager@8.get_data_device(new id wl_data_device@13, wl_seat@12) [1796177.056] wl_registry@2.global(16, "zwp_linux_dmabuf_v1", 3) [1796177.085] -> wl_registry@2.bind(16, "zwp_linux_dmabuf_v1", 3, new id [unknown]@14) [1796177.115] -> wl_display@1.sync(new id wl_callback@15) [1796177.131] wl_registry@2.global(17, "weston_direct_display_v1", 1) [1796177.154] wl_registry@2.global(18, "zwp_linux_explicit_synchronization_v1", 2) [1796177.182] -> wl_registry@2.bind(18, "zwp_linux_explicit_synchronization_v1", 2, new id [unknown]@16) [1796177.212] wl_registry@2.global(19, "weston_content_protection", 1) [1796177.236] wl_registry@2.global(20, "zwp_hdr10_metadata_v1", 1) [1796177.256] wl_registry@2.global(21, "wl_output", 3) [1796177.283] -> wl_registry@2.bind(21, "wl_output", 3, new id [unknown]@17) [1796177.315] wl_registry@2.global(22, "zwp_input_panel_v1", 1) [1796177.337] wl_registry@2.global(23, "zwp_input_method_v1", 1) [1796177.357] wl_registry@2.global(24, "zwp_text_input_manager_v1", 1) [1796177.386] -> wl_registry@2.bind(24, "zwp_text_input_manager_v1", 1, new id [unknown]@18) [1796177.415] wl_registry@2.global(25, "xdg_wm_base", 1) [1796177.442] -> wl_registry@2.bind(25, "xdg_wm_base", 1, new id [unknown]@19) [1796177.471] wl_registry@2.global(26, "zxdg_shell_v6", 1) [1796177.499] -> wl_registry@2.bind(26, "zxdg_shell_v6", 1, new id [unknown]@20) [1796177.528] wl_registry@2.global(27, "wl_shell", 1) [1796177.549] wl_registry@2.global(28, "weston_desktop_shell", 1) [1796177.570] wl_registry@2.global(29, "weston_screenshooter", 1) [1796177.592] wl_callback@3.done(1180) [1796177.922] wl_display@1.delete_id(11) [1796177.948] wl_display@1.delete_id(15) [1796177.963] wl_drm@10.device("/dev/dri/card0") [1796178.032] -> wl_drm@10.authenticate(1) [1796178.055] -> wl_display@1.sync(new id wl_callback@3) [1796178.073] wl_drm@10.format(808669761) [1796178.092] wl_drm@10.format(808669784) [1796178.106] wl_drm@10.format(808665665) [1796178.117] wl_drm@10.format(808665688) [1796178.131] wl_drm@10.format(875713089) [1796178.142] wl_drm@10.format(875713112) [1796178.156] wl_drm@10.format(909199186) [1796178.168] wl_drm@10.format(961959257) [1796178.181] wl_drm@10.format(825316697) [1796178.192] wl_drm@10.format(842093913) [1796178.204] wl_drm@10.format(909202777) [1796178.214] wl_drm@10.format(875713881) [1796178.224] wl_drm@10.format(842094158) [1796178.234] wl_drm@10.format(909203022) [1796178.244] wl_drm@10.format(1448695129) [1796178.254] wl_drm@10.capabilities(0) [1796178.269] wl_callback@11.done(1180) [1796178.283] wl_seat@12.capabilities(3) [1796178.318] -> wl_seat@12.get_pointer(new id wl_pointer@11) [1796178.336] -> wl_compositor@4.create_surface(new id wl_surface@21) [1796178.350] -> wl_seat@12.get_keyboard(new id wl_keyboard@22) [1796178.383] wl_seat@12.name("default") [1796178.395] zwp_linux_dmabuf_v1@14.modifier(875713089, 0, 0) [1796178.415] zwp_linux_dmabuf_v1@14.modifier(875713112, 0, 0) [1796178.433] zwp_linux_dmabuf_v1@14.modifier(909199186, 0, 0) [1796178.452] zwp_linux_dmabuf_v1@14.modifier(1448695129, 0, 0) [1796178.469] zwp_linux_dmabuf_v1@14.modifier(842094158, 0, 0) [1796178.487] zwp_linux_dmabuf_v1@14.modifier(842093913, 0, 0) [1796178.504] wl_callback@15.done(1180) [1796178.515] wl_output@17.geometry(0, 0, 530, 300, 0, "DEL", "DELL P2417H", 0) [1796178.549] wl_output@17.scale(1) [1796178.560] wl_output@17.mode(3, 1920, 1080, 60000) [1796178.580] wl_output@17.mode(0, 1920, 1080, 60000) [1796178.601] wl_output@17.mode(0, 1920, 1080, 50000) [1796178.621] wl_output@17.mode(0, 1280, 720, 60000) [1796178.641] wl_output@17.mode(0, 1280, 720, 60000) [1796178.698] wl_output@17.mode(0, 1280, 720, 50000) [1796178.723] wl_output@17.mode(0, 800, 600, 75000) [1796178.744] wl_output@17.done() [1796179.526] wl_display@1.delete_id(3) [1796179.558] wl_callback@3.done(1180) [1796179.570] wl_keyboard@22.repeat_info(40, 400) [1796179.585] wl_keyboard@22.keymap(1, fd 32, 47298) [1796197.021] -> wl_display@1.get_registry(new id wl_registry@2) [1796197.072] -> wl_display@1.sync(new id wl_callback@3) [1796197.715] wl_display@1.delete_id(3) [1796197.741] wl_registry@2.global(1, "wl_compositor", 4) [1796197.763] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4) [1796197.793] wl_registry@2.global(2, "wl_subcompositor", 1) [1796197.812] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5) [1796197.837] wl_registry@2.global(3, "wp_viewporter", 1) [1796197.855] wl_registry@2.global(4, "zxdg_output_manager_v1", 2) [1796197.873] -> wl_registry@2.bind(4, "zxdg_output_manager_v1", 2, new id [unknown]@6) [1796197.898] -> wl_display@1.sync(new id wl_callback@7) [1796197.912] wl_registry@2.global(5, "wp_presentation", 1) [1796197.931] wl_registry@2.global(6, "zwp_alpha_compositing_v1", 1) [1796197.948] wl_registry@2.global(7, "zwp_relative_pointer_manager_v1", 1) [1796197.966] wl_registry@2.global(8, "zwp_pointer_constraints_v1", 1) [1796197.989] wl_registry@2.global(9, "zwp_input_timestamps_manager_v1", 1) [1796198.007] wl_registry@2.global(10, "wl_data_device_manager", 3) [1796198.025] -> wl_registry@2.bind(10, "wl_data_device_manager", 3, new id [unknown]@8) [1796198.049] wl_registry@2.global(11, "wl_shm", 1) [1796198.066] -> wl_registry@2.bind(11, "wl_shm", 1, new id [unknown]@9) [1796198.189] -> wl_shm@9.create_pool(new id wl_shm_pool@10, fd 36, 4096) [1796198.366] -> wl_shm_pool@10.resize(8832) [1796198.441] -> wl_shm_pool@10.resize(18624) [1796198.484] wl_registry@2.global(12, "weston_touch_calibration", 1) [1796198.505] wl_registry@2.global(13, "wl_viv", 1) [1796198.523] wl_registry@2.global(14, "wl_drm", 2) [1796198.541] wl_registry@2.global(15, "wl_seat", 7) [1796198.561] -> wl_registry@2.bind(15, "wl_seat", 5, new id [unknown]@11) [1796210.095] -> wl_compositor@4.create_surface(new id wl_surface@12) [1796210.180] -> wl_data_device_manager@8.get_data_device(new id wl_data_device@13, wl_seat@11) [1796210.492] -> wl_compositor@4.create_surface(new id wl_surface@14) [1796210.514] -> wl_display@1.sync(new id wl_callback@15) [1796210.534] wl_registry@2.global(16, "zwp_linux_dmabuf_v1", 3) [1796210.561] wl_registry@2.global(17, "weston_direct_display_v1", 1) [1796210.579] wl_registry@2.global(18, "zwp_linux_explicit_synchronization_v1", 2) [1796210.597] wl_registry@2.global(19, "weston_content_protection", 1) [1796210.624] wl_registry@2.global(20, "zwp_hdr10_metadata_v1", 1) [1796210.642] wl_registry@2.global(21, "wl_output", 3) [1796210.766] -> wl_registry@2.bind(21, "wl_output", 2, new id [unknown]@16) [1796210.938] -> zxdg_output_manager_v1@6.get_xdg_output(new id zxdg_output_v1@17, wl_output@16) [1796210.959] -> wl_display@1.sync(new id wl_callback@18) [1796210.975] wl_registry@2.global(22, "zwp_input_panel_v1", 1) [1796210.995] wl_registry@2.global(23, "zwp_input_method_v1", 1) [1796211.013] wl_registry@2.global(24, "zwp_text_input_manager_v1", 1) [1796211.031] wl_registry@2.global(25, "xdg_wm_base", 1) [1796211.050] wl_registry@2.global(26, "zxdg_shell_v6", 1) [1796211.068] wl_registry@2.global(27, "wl_shell", 1) [1796211.086] wl_registry@2.global(28, "weston_desktop_shell", 1) [1796211.104] wl_registry@2.global(29, "weston_screenshooter", 1) [1796211.122] wl_callback@3.done(1180) [1796211.826] wl_display@1.delete_id(7) [1796211.843] wl_display@1.delete_id(15) [1796211.854] wl_display@1.delete_id(18) [1796211.865] wl_callback@7.done(1180) [1796211.879] wl_shm@9.format(0) [1796211.890] wl_shm@9.format(1) [1796211.902] wl_shm@9.format(909199186) [1796211.914] wl_shm@9.format(842093913) [1796211.928] wl_shm@9.format(842094158) [1796211.939] wl_shm@9.format(1448695129) [1796211.953] wl_seat@11.capabilities(3) [1796211.967] -> wl_seat@11.get_pointer(new id wl_pointer@7) [1796212.049] -> wl_seat@11.get_keyboard(new id wl_keyboard@3) [1796212.104] wl_seat@11.name("default") [1796212.118] wl_callback@15.done(1180) [1796212.133] wl_output@16.geometry(0, 0, 530, 300, 0, "DEL", "DELL P2417H", 0) [1796212.183] wl_output@16.scale(1) [1796212.198] wl_output@16.mode(3, 1920, 1080, 60000) [1796212.226] wl_output@16.mode(0, 1920, 1080, 60000) [1796212.246] wl_output@16.mode(0, 1920, 1080, 50000) [1796212.266] wl_output@16.mode(0, 1280, 720, 60000) [1796212.285] wl_output@16.mode(0, 1280, 720, 60000) [1796212.305] wl_output@16.mode(0, 1280, 720, 50000) [1796212.325] wl_output@16.mode(0, 800, 600, 75000) [1796212.344] wl_output@16.done() [1796212.352] zxdg_output_v1@17.logical_position(0, 0) [1796212.366] zxdg_output_v1@17.logical_size(1920, 1080) [1796212.379] zxdg_output_v1@17.name("HDMI-A-1") [1796212.390] zxdg_output_v1@17.done() [1796212.427] wl_callback@18.done(1180) [1796212.442] -> wl_registry@2.bind(25, "xdg_wm_base", 1, new id [unknown]@18) [1796399.930] -> wl_compositor@4.create_surface(new id wl_surface@15) [1796445.115] -> wl_display@1.get_registry(new id wl_registry@3) [1796445.198] -> wl_display@1.sync(new id wl_callback@15) [1796445.560] wl_display@1.delete_id(15) [1796445.601] wl_registry@3.global(1, "wl_compositor", 4) [1796445.621] wl_registry@3.global(2, "wl_subcompositor", 1) [1796445.638] wl_registry@3.global(3, "wp_viewporter", 1) [1796445.655] wl_registry@3.global(4, "zxdg_output_manager_v1", 2) [1796445.671] wl_registry@3.global(5, "wp_presentation", 1) [1796445.687] wl_registry@3.global(6, "zwp_alpha_compositing_v1", 1) [1796445.704] wl_registry@3.global(7, "zwp_relative_pointer_manager_v1", 1) [1796445.721] wl_registry@3.global(8, "zwp_pointer_constraints_v1", 1) [1796445.737] wl_registry@3.global(9, "zwp_input_timestamps_manager_v1", 1) [1796445.754] wl_registry@3.global(10, "wl_data_device_manager", 3) [1796445.770] wl_registry@3.global(11, "wl_shm", 1) [1796445.787] wl_registry@3.global(12, "weston_touch_calibration", 1) [1796445.803] wl_registry@3.global(13, "wl_viv", 1) [1796445.827] -> wl_registry@3.bind(13, "wl_viv", 1, new id [unknown]@23) [1796445.853] wl_registry@3.global(14, "wl_drm", 2) [1796445.871] wl_registry@3.global(15, "wl_seat", 7) [1796445.889] wl_registry@3.global(16, "zwp_linux_dmabuf_v1", 3) [1796445.906] wl_registry@3.global(17, "weston_direct_display_v1", 1) [1796445.923] wl_registry@3.global(18, "zwp_linux_explicit_synchronization_v1", 2) [1796445.999] -> wl_registry@3.bind(18, "zwp_linux_explicit_synchronization_v1", 1, new id [unknown]@24) [1796446.029] wl_registry@3.global(19, "weston_content_protection", 1) [1796446.047] wl_registry@3.global(20, "zwp_hdr10_metadata_v1", 1) [1796446.068] wl_registry@3.global(21, "wl_output", 3) [1796446.084] wl_registry@3.global(22, "zwp_input_panel_v1", 1) [1796446.101] wl_registry@3.global(23, "zwp_input_method_v1", 1) [1796446.118] wl_registry@3.global(24, "zwp_text_input_manager_v1", 1) [1796446.135] wl_registry@3.global(25, "xdg_wm_base", 1) [1796446.151] wl_registry@3.global(26, "zxdg_shell_v6", 1) [1796446.168] wl_registry@3.global(27, "wl_shell", 1) [1796446.185] wl_registry@3.global(28, "weston_desktop_shell", 1) [1796446.202] wl_registry@3.global(29, "weston_screenshooter", 1) [1796446.219] wl_callback@15.done(1180) [1796525.600] -> wl_compositor@4.create_surface(new id wl_surface@15) [1796525.697] -> wp_viewporter@6.get_viewport(new id wp_viewport@25, wl_surface@15) [1796525.725] -> zwp_linux_explicit_synchronization_v1@16.get_synchronization(new id zwp_linux_surface_synchronization_v1@26, wl_surface@15) [1796525.879] -> wl_compositor@4.create_region(new id wl_region@27) [1796525.906] -> wl_region@27.add(0, 0, 945, 1060) [1796525.930] -> wl_surface@15.set_opaque_region(wl_region@27) [1796525.943] -> wl_region@27.destroy() [1796619.306] -> xdg_wm_base@19.get_xdg_surface(new id xdg_surface@28, wl_surface@15) [1796619.387] -> xdg_surface@28.get_toplevel(new id xdg_toplevel@29) [1796619.403] -> wl_surface@15.commit() [1796619.415] -> xdg_toplevel@29.set_app_id("Chromium-browser") [1796619.428] -> xdg_toplevel@29.set_title("New Tab - Chromium") [1796619.440] -> xdg_toplevel@29.unset_maximized() [1796619.625] -> wl_compositor@4.create_region(new id wl_region@30) [1796619.644] -> wl_region@30.add(3, 0, 939, 1) [1796619.666] -> wl_region@30.add(1, 1, 943, 2) [1796619.686] -> wl_region@30.add(0, 3, 945, 1054) [1796619.707] -> wl_region@30.add(1, 1057, 943, 2) [1796619.727] -> wl_region@30.add(3, 1059, 939, 1) [1796619.748] -> wl_surface@15.set_opaque_region(wl_region@30) [1796619.760] -> wl_region@30.destroy() [1796619.771] -> wl_compositor@4.create_region(new id wl_region@31) [1796619.784] -> wl_region@31.add(3, 0, 939, 1) [1796619.804] -> wl_region@31.add(1, 1, 943, 2) [1796619.824] -> wl_region@31.add(0, 3, 945, 1054) [1796619.845] -> wl_region@31.add(1, 1057, 943, 2) [1796619.865] -> wl_region@31.add(3, 1059, 939, 1) [1796619.886] -> wl_surface@15.set_input_region(wl_region@31) [1796619.896] -> wl_region@31.destroy() [1796637.195] wl_display@1.delete_id(27) [1796637.274] wl_display@1.delete_id(30) [1796637.287] wl_display@1.delete_id(31) [1796637.298] xdg_toplevel@29.configure(0, 0, array) [1796637.499] -> wl_compositor@4.create_region(new id wl_region@31) [1796637.544] -> wl_region@31.add(3, 0, 939, 1) [1796637.567] -> wl_region@31.add(1, 1, 943, 2) [1796637.588] -> wl_region@31.add(0, 3, 945, 1054) [1796637.608] -> wl_region@31.add(1, 1057, 943, 2) [1796637.629] -> wl_region@31.add(3, 1059, 939, 1) [1796637.651] -> wl_surface@15.set_opaque_region(wl_region@31) [1796637.664] -> wl_region@31.destroy() [1796637.697] -> wl_compositor@4.create_region(new id wl_region@30) [1796637.712] -> wl_region@30.add(3, 0, 939, 1) [1796637.735] -> wl_region@30.add(1, 1, 943, 2) [1796637.756] -> wl_region@30.add(0, 3, 945, 1054) [1796637.776] -> wl_region@30.add(1, 1057, 943, 2) [1796637.797] -> wl_region@30.add(3, 1059, 939, 1) [1796637.818] -> wl_surface@15.set_input_region(wl_region@30) [1796637.829] -> wl_region@30.destroy() [1796638.105] -> xdg_surface@28.set_window_geometry(0, 0, 945, 1060) [1796638.165] xdg_surface@28.configure(1181) [1796638.182] -> xdg_surface@28.ack_configure(1181) [1796638.754] wl_keyboard@3.repeat_info(40, 400) [1796638.828] wl_keyboard@3.keymap(1, fd 110, 47298) [1796678.814] -> zwp_linux_explicit_synchronization_v1@24.get_synchronization(new id zwp_linux_surface_synchronization_v1@27, wl_surface@15) [1796679.473] -> wl_viv@23.create_buffer(new id wl_buffer@32, 945, 1060, 3840, 212, -2143289084, 10, 8, 4070464, 0, 0, 0, fd 122) [1796698.778] wl_display@1.delete_id(31) [1796698.838] wl_display@1.delete_id(30) [1796698.850] wl_display@1.error(zwp_linux_explicit_synchronization_v1@24, 0, "wl_surface@15 already has a synchronization object") [1555:1631:0920/104428.974762:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [1555:1631:0920/104428.975714:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [1555:1631:0920/104428.976514:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

fangxiaoying commented 3 years ago

After upgrade chromium to V89 and disable GPU, The issue is fixed on NXP i.MX8M series chips. GPU have some issue need GPU vendor to fix. Thanks for your help!