slint-ui / slint-cpp-template

A template for a C++ Application using Slint
https://slint.dev
MIT License
37 stars 10 forks source link

Wayland warnings on shutdown #13

Closed Be-ing closed 1 year ago

Be-ing commented 1 year ago

Bindings built with:

❯ cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -D SLINT_FEATURE_BACKEND_QT=OFF -D SLINT_FEATURE_BACKEND_WINIT_WAYLAND=ON -D SLINT_FEATURE_BACKEND_WINIT_X11=ON -D CMAKE_INSTALL_PREFIX=/home/be/slint-cpp
-- Rust Toolchain: stable-x86_64-unknown-linux-gnu
-- Rust Target: x86_64-unknown-linux-gnu
-- Found Rust: /home/be/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc (found version "1.69.0") 
-- Using Corrosion as a subdirectory
-- Rust Toolchain: stable-x86_64-unknown-linux-gnu
-- Rust Target: x86_64-unknown-linux-gnu
-- Found Rust: /home/be/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc (found suitable version "1.69.0", minimum required is "1.66") 
-- Enabled features:
 * SLINT_FEATURE_INTERPRETER, Enable support for the Slint interpeter to load .slint files at run-time
 * SLINT_FEATURE_BACKEND_WINIT, Enable support for the winit crate to interaction with all windowing systems.
 * SLINT_FEATURE_BACKEND_WINIT_X11, Enable support for the winit create to interact only with the X11 windowing system on Unix. Enable this option and turn off SLINT_FEATURE_BACKEND_WINIT for a smaller build with just X11 support on Unix.
 * SLINT_FEATURE_BACKEND_WINIT_WAYLAND, Enable support for the winit create to interact only with the wayland windowing system on Unix. Enable this option and turn off SLINT_FEATURE_BACKEND_WINIT for a smaller build with just wayland support.
 * SLINT_FEATURE_RENDERER_WINIT_FEMTOVG, Enable support for the OpenGL ES 2.0 based FemtoVG rendering engine.

-- Disabled features:
 * SLINT_BUILD_TESTING, configure whether to build the test suite
 * SLINT_FEATURE_RENDERER_WINIT_SKIA, Enable support for the Skia based rendering engine.
 * SLINT_FEATURE_RENDERER_WINIT_SKIA_OPENGL, Enable support for the Skia based rendering engine with its OpenGL backend.
 * SLINT_FEATURE_RENDERER_WINIT_SOFTWARE, Enable support for the software renderer with the winit backend
 * SLINT_FEATURE_BACKEND_QT, Enable Qt based rendering backend
 * SLINT_FEATURE_EXPERIMENTAL, Enable experimental features (no compatibility guarantees)
 * SLINT_BUILD_EXAMPLES, configure whether to build the examples

-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/be/sw/slint/build

Running the application from this repo warns on shutdown:

slint-cpp-template on  main via △ v3.26.3 took 9s 
❯ build/my_application
warning: queue 0x7f9a28000ca0 destroyed while proxies still attached:
  zwp_primary_selection_offer_v1@4278190081 still attached
  wl_data_offer@4278190080 still attached
  zwp_primary_selection_device_v1@26 still attached
  zwp_primary_selection_device_manager_v1@22 still attached
  wl_data_device@25 still attached
  wl_data_device_manager@24 still attached
  wl_seat@23 still attached
  wl_registry@21 still attached
warning: queue 0xd497a0 destroyed while proxies still attached:
  wl_buffer@48 still attached
  wl_shm_pool@47 still attached
  wl_buffer@44 still attached
  wl_shm_pool@42 still attached
  xdg_wm_base@35 still attached
  wl_output@15 still attached
  zwp_text_input_manager_v3@14 still attached
  xdg_activation_v1@13 still attached
  wl_subcompositor@12 still attached
  zwp_relative_pointer_manager_v1@11 still attached
  zwp_pointer_constraints_v1@10 still attached
  wl_seat@9 still attached
  wl_shm@8 still attached
  wp_fractional_scale_manager_v1@7 still attached
  wp_viewporter@6 still attached
  zxdg_decoration_manager_v1@5 still attached
  wl_compositor@4 still attached
  wl_registry@2 still attached
Be-ing commented 1 year ago

This is occurring in another Slint application too, so it seems to be a bug in Slint, not this little application.