Qt program run faild on weston8
Hi everyone,
I have a custom QT program. It runs normally at gnome desktop, but when I run it at weston8 using ./xxx -platform wayland
, it shows the following message
wl_display@1: error 1: invalid arguments for xdg_toplevel@21.resize The Wayland connection experienced a fatal error: Invalid argument
When I open DEBUG option, it shows
[3618367.997] -> wl_display@1.get_registry(new id wl_registry@2)
[3618368.127] -> wl_display@1.sync(new id wl_callback@3)
[3618369.335] wl_display@1.delete_id(3)
[3618369.368] wl_registry@2.global(1, "wl_compositor", 4)
[3618369.400] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4)
[3618369.440] wl_registry@2.global(2, "wl_subcompositor", 1)
[3618369.465] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5)
[3618369.497] wl_registry@2.global(3, "wp_viewporter", 1)
[3618369.520] wl_registry@2.global(4, "zxdg_output_manager_v1", 2)
[3618369.551] -> wl_registry@2.bind(4, "zxdg_output_manager_v1", 2, new id [unknown]@6)
[3618369.589] -> wl_display@1.sync(new id wl_callback@7)
[3618369.603] wl_registry@2.global(5, "wp_presentation", 1)
[3618369.625] wl_registry@2.global(6, "zwp_relative_pointer_manager_v1", 1)
[3618369.648] wl_registry@2.global(7, "zwp_pointer_constraints_v1", 1)
[3618369.672] wl_registry@2.global(8, "zwp_input_timestamps_manager_v1", 1)
[3618369.695] wl_registry@2.global(9, "wl_data_device_manager", 3)
[3618369.722] -> wl_registry@2.bind(9, "wl_data_device_manager", 1, new id [unknown]@8)
[3618369.752] wl_registry@2.global(10, "wl_shm", 1)
[3618369.777] -> wl_registry@2.bind(10, "wl_shm", 1, new id [unknown]@9)
[3618369.811] wl_registry@2.global(11, "wayland_buffer_backend", 4)
[3618369.835] wl_registry@2.global(12, "wl_seat", 7)
[3618369.863] -> wl_registry@2.bind(12, "wl_seat", 5, new id [unknown]@10)
[3618369.901] -> wl_data_device_manager@8.get_data_device(new id wl_data_device@11, wl_seat@10)
[3618369.923] wl_registry@2.global(13, "zwp_linux_dmabuf_v1", 3)
[3618369.944] wl_registry@2.global(14, "weston_direct_display_v1", 1)
[3618369.968] wl_registry@2.global(15, "gbm_buffer_backend", 1)
[3618369.991] wl_registry@2.global(16, "weston_qti_extn", 1)
[3618370.020] wl_registry@2.global(17, "zwp_linux_explicit_synchronization_v1", 2)
[3618370.044] wl_registry@2.global(18, "weston_content_protection", 1)
[3618370.065] wl_registry@2.global(19, "wl_output", 3)
[3618370.093] -> wl_registry@2.bind(19, "wl_output", 2, new id [unknown]@12)
[3618370.134] -> zxdg_output_manager_v1@6.get_xdg_output(new id zxdg_output_v1@13, wl_output@12)
[3618370.159] wl_registry@2.global(20, "zwp_input_panel_v1", 1)
[3618370.181] wl_registry@2.global(21, "zwp_input_method_v1", 1)
[3618370.204] wl_registry@2.global(22, "zwp_text_input_manager_v1", 1)
[3618370.228] wl_registry@2.global(23, "xdg_wm_base", 1)
[3618370.251] wl_registry@2.global(24, "zxdg_shell_v6", 1)
[3618370.274] wl_registry@2.global(25, "wl_shell", 1)
[3618370.298] wl_registry@2.global(26, "weston_desktop_shell", 1)
[3618370.321] wl_registry@2.global(27, "weston_screenshooter", 1)
[3618370.344] wl_callback@3.done(613)
[3618371.500] wl_display@1.delete_id(7)
[3618371.528] wl_callback@7.done(613)
[3618371.556] wl_shm@9.format(0)
[3618371.579] wl_shm@9.format(1)
[3618371.589] wl_shm@9.format(909199186)
[3618371.601] wl_shm@9.format(842093913)
[3618371.611] wl_shm@9.format(842094158)
[3618371.621] wl_shm@9.format(1448695129)
[3618371.631] wl_seat@10.capabilities(2)
[3618371.661] -> wl_seat@10.get_keyboard(new id wl_keyboard@7)
[3618371.678] wl_seat@10.name("default")
[3618371.690] wl_output@12.geometry(0, 0, 720, 1280, 0, "unknown", "unknown", 0)
[3618371.745] wl_output@12.scale(1)
[3618371.756] wl_output@12.mode(1, 720, 1280, 60000)
[3618371.802] wl_output@12.done()
[3618371.811] zxdg_output_v1@13.logical_position(0, 0)
[3618371.827] zxdg_output_v1@13.logical_size(720, 1280)
[3618371.842] zxdg_output_v1@13.name("DSI-32")
[3618371.853] zxdg_output_v1@13.done()
[3618374.895] -> wl_display@1.get_registry(new id wl_registry@3)
[3618374.928] -> wl_display@1.sync(new id wl_callback@14)
[3618378.545] wl_display@1.delete_id(14)
[3618378.583] wl_registry@3.global(1, "wl_compositor", 4)
[3618378.607] wl_registry@3.global(2, "wl_subcompositor", 1)
[3618378.638] wl_registry@3.global(3, "wp_viewporter", 1)
[3618378.659] wl_registry@3.global(4, "zxdg_output_manager_v1", 2)
[3618378.681] wl_registry@3.global(5, "wp_presentation", 1)
[3618378.702] wl_registry@3.global(6, "zwp_relative_pointer_manager_v1", 1)
[3618378.723] wl_registry@3.global(7, "zwp_pointer_constraints_v1", 1)
[3618378.745] wl_registry@3.global(8, "zwp_input_timestamps_manager_v1", 1)
[3618378.765] wl_registry@3.global(9, "wl_data_device_manager", 3)
[3618378.787] wl_registry@3.global(10, "wl_shm", 1)
[3618378.808] wl_registry@3.global(11, "wayland_buffer_backend", 4)
[3618378.829] wl_registry@3.global(12, "wl_seat", 7)
[3618378.849] wl_registry@3.global(13, "zwp_linux_dmabuf_v1", 3)
[3618378.879] -> wl_registry@3.bind(13, "zwp_linux_dmabuf_v1", 3, new id [unknown]@15)
[3618378.950] wl_registry@3.global(14, "weston_direct_display_v1", 1)
[3618378.971] wl_registry@3.global(15, "gbm_buffer_backend", 1)
[3618378.992] wl_registry@3.global(16, "weston_qti_extn", 1)
[3618379.021] wl_registry@3.global(17, "zwp_linux_explicit_synchronization_v1", 2)
[3618379.042] wl_registry@3.global(18, "weston_content_protection", 1)
[3618379.064] wl_registry@3.global(19, "wl_output", 3)
[3618379.085] wl_registry@3.global(20, "zwp_input_panel_v1", 1)
[3618379.106] wl_registry@3.global(21, "zwp_input_method_v1", 1)
[3618379.128] wl_registry@3.global(22, "zwp_text_input_manager_v1", 1)
[3618379.149] wl_registry@3.global(23, "xdg_wm_base", 1)
[3618379.171] wl_registry@3.global(24, "zxdg_shell_v6", 1)
[3618379.217] wl_registry@3.global(25, "wl_shell", 1)
[3618379.238] wl_registry@3.global(26, "weston_desktop_shell", 1)
[3618379.260] wl_registry@3.global(27, "weston_screenshooter", 1)
[3618379.281] wl_callback@14.done(613)
[3618379.299] -> zwp_linux_dmabuf_v1@15.destroy()
[3618379.318] -> wl_display@1.get_registry(new id wl_registry@14)
[3618379.332] -> wl_display@1.sync(new id wl_callback@16)
[3618381.044] wl_display@1.delete_id(15)
[3618381.084] wl_display@1.delete_id(16)
[3618381.096] wl_registry@14.global(1, "wl_compositor", 4)
[3618381.117] wl_registry@14.global(2, "wl_subcompositor", 1)
[3618381.143] wl_registry@14.global(3, "wp_viewporter", 1)
[3618381.164] wl_registry@14.global(4, "zxdg_output_manager_v1", 2)
[3618381.185] wl_registry@14.global(5, "wp_presentation", 1)
[3618381.206] wl_registry@14.global(6, "zwp_relative_pointer_manager_v1", 1)
[3618381.227] wl_registry@14.global(7, "zwp_pointer_constraints_v1", 1)
[3618381.249] wl_registry@14.global(8, "zwp_input_timestamps_manager_v1", 1)
[3618381.270] wl_registry@14.global(9, "wl_data_device_manager", 3)
[3618381.291] wl_registry@14.global(10, "wl_shm", 1)
[3618381.313] -> wl_registry@14.bind(10, "wl_shm", 1, new id [unknown]@15)
[3618381.343] wl_registry@14.global(11, "wayland_buffer_backend", 4)
[3618381.364] wl_registry@14.global(12, "wl_seat", 7)
[3618381.385] wl_registry@14.global(13, "zwp_linux_dmabuf_v1", 3)
[3618381.407] wl_registry@14.global(14, "weston_direct_display_v1", 1)
[3618381.429] wl_registry@14.global(15, "gbm_buffer_backend", 1)
[3618381.450] wl_registry@14.global(16, "weston_qti_extn", 1)
[3618381.471] wl_registry@14.global(17, "zwp_linux_explicit_synchronization_v1", 2)
[3618381.493] wl_registry@14.global(18, "weston_content_protection", 1)
[3618381.514] wl_registry@14.global(19, "wl_output", 3)
[3618381.535] wl_registry@14.global(20, "zwp_input_panel_v1", 1)
[3618381.557] wl_registry@14.global(21, "zwp_input_method_v1", 1)
[3618381.578] wl_registry@14.global(22, "zwp_text_input_manager_v1", 1)
[3618381.599] wl_registry@14.global(23, "xdg_wm_base", 1)
[3618381.621] wl_registry@14.global(24, "zxdg_shell_v6", 1)
[3618381.642] wl_registry@14.global(25, "wl_shell", 1)
[3618381.663] wl_registry@14.global(26, "weston_desktop_shell", 1)
[3618381.684] wl_registry@14.global(27, "weston_screenshooter", 1)
[3618381.706] wl_callback@16.done(613)
[3618381.717] -> wl_display@1.sync(new id wl_callback@16)
[3618382.004] wl_display@1.delete_id(16)
[3618382.022] wl_shm@15.format(0)
[3618382.033] wl_shm@15.format(1)
[3618382.043] wl_shm@15.format(909199186)
[3618382.052] wl_shm@15.format(842093913)
[3618382.069] wl_shm@15.format(842094158)
[3618382.080] wl_shm@15.format(1448695129)
[3618382.090] wl_callback@16.done(613)
[3618440.707] -> wl_compositor@4.create_surface(new id wl_surface@16)
[3618442.361] -> wl_compositor@4.create_region(new id wl_region@17)
[3618442.410] -> wl_region@17.add(0, 0, 239, 84)
[3618442.442] -> wl_surface@16.set_opaque_region(wl_region@17)
[3618442.453] -> wl_region@17.destroy()
[3618442.530] -> wl_compositor@4.create_region(new id wl_region@18)
[3618442.548] -> wl_region@18.add(231, 558, 239, 84)
[3618442.575] -> wl_surface@16.set_opaque_region(wl_region@18)
[3618442.585] -> wl_region@18.destroy()
[3618443.973] -> wl_registry@2.bind(23, "xdg_wm_base", 1, new id [unknown]@19)
[3618444.069] -> xdg_wm_base@19.get_xdg_surface(new id xdg_surface@20, wl_surface@16)
[3618444.110] -> xdg_surface@20.get_toplevel(new id xdg_toplevel@21)
[3618444.144] -> xdg_toplevel@21.set_title("TEST for WESTON")
[3618444.170] -> xdg_toplevel@21.set_app_id("test for weston")
[3618444.184] -> wl_surface@16.set_buffer_scale(1)
[3618444.715] -> wl_surface@16.set_buffer_transform(0)
[3618444.742] -> wl_surface@16.commit()
[3618444.752] wl_keyboard@7.repeat_info(40, 400)
[3618444.771] wl_keyboard@7.keymap(1, fd 4, 47298)
[3618446.094] -> xdg_surface@20.set_window_geometry(0, 0, 245, 117)
[3618451.571] wl_display@1.delete_id(17)
[3618451.612] wl_display@1.delete_id(18)
[3618451.623] xdg_toplevel@21.configure(0, 0, array)
[3618451.649] xdg_surface@20.configure(614)
[3618451.698] -> xdg_surface@20.set_window_geometry(0, 0, 245, 117)
[3618451.763] -> xdg_toplevel@21.set_min_size(239, 84)
[3618451.783] -> xdg_toplevel@21.set_max_size(239, 84)
[3618451.798] -> xdg_surface@20.ack_configure(614)
[3618452.040] -> wl_shm@9.create_pool(new id wl_shm_pool@18, fd 7, 114660)
[3618452.078] -> wl_shm_pool@18.create_buffer(new id wl_buffer@17, 0, 245, 117, 980, 0)
[3618454.107] -> wl_surface@16.damage(0, 0, 251, 30)
[3618454.159] -> wl_surface@16.damage(0, 30, 3, 117)
[3618454.186] -> wl_surface@16.damage(248, 30, 3, 117)
[3618454.216] -> wl_surface@16.damage(0, 147, 251, 3)
[3618454.336] -> wl_surface@16.frame(new id wl_callback@22)
[3618454.373] -> wl_surface@16.attach(wl_buffer@17, 0, 0)
[3618454.396] -> wl_surface@16.damage(3, 30, 239, 84)
[3618454.427] -> wl_surface@16.commit()
[3618454.460] wl_display@1.error(wl_display@1, 1, "invalid arguments for xdg_toplevel@21.resize")
BTW The system is ubuntu20 for aarch64 Weston's version is 8.0.0 The Display resolution is 720x1280