emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.41k stars 1.61k forks source link

proxies still attached #3413

Open jcbritobr opened 1 year ago

jcbritobr commented 1 year ago

Hello, good afternoon, I'm getting this warning after closing a eframe application on desktop

❯ ./eguisamp
warning: queue 0x7f7f5c000ca0 destroyed while proxies still attached:
  wl_data_offer@4278190081 still attached
  zwp_primary_selection_device_v1@50 still attached
  zwp_primary_selection_device_manager_v1@46 still attached
  wl_data_device@49 still attached
  wl_seat@48 still attached
  wl_data_device_manager@47 still attached
  wl_registry@45 still attached
warning: queue 0x559ec10e73b0 destroyed while proxies still attached:
  wl_buffer@20 still attached
  wl_buffer@56 still attached
  wl_buffer@60 still attached
  wl_buffer@42 still attached
  wl_buffer@43 still attached
  wl_buffer@55 still attached
  wl_buffer@53 still attached
  wl_buffer@62 still attached
  wl_buffer@61 still attached
  wl_shm_pool@64 still attached
  wl_subsurface@36 still attached
  wl_surface@35 still attached
  wl_subsurface@34 still attached
  wl_surface@33 still attached
  wl_subsurface@32 still attached
  wl_surface@31 still attached
  wl_subsurface@30 still attached
  wl_surface@29 still attached
  wl_subsurface@28 still attached
  wl_surface@27 still attached
  xdg_wm_base@25 still attached
  xdg_activation_v1@14 still attached
  zwp_text_input_manager_v3@13 still attached
  zwp_pointer_constraints_v1@12 still attached
  zwp_relative_pointer_manager_v1@11 still attached
  wl_seat@10 still attached

fedora 38 x64, 6.4.15-200.fc38.x86_64 linux rust 1.72.1 egui 0.23.0

szabgab commented 9 months ago

I had a similar error in my hello world application on ubuntu using rust 1.75 and egui 0.24. Upgrading to egui 0.25 fixed it .

AvinashPrajapati commented 1 week ago

Can anyone guide me that how should i fix this error. I am using WSL to run the rust.

rust egui code

use eframe::egui;

fn main() -> Result<(), eframe::Error> {
    let options = eframe::NativeOptions {
        viewport: egui::ViewportBuilder::default().with_inner_size([320.0, 240.0]),
        ..Default::default()
    };

    eframe::run_simple_native("Rust Maven egui App", options, move |ctx, _frame| {
        egui::CentralPanel::default().show(ctx, |_ui| {});
    })
}

/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.5/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoCompositor)) }))

emilk commented 1 week ago

Is this using the glow or wgpu backend? (run with RUST_LOG=debug and it will be printed)

AvinashPrajapati commented 1 week ago

Is this using the glow or wgpu backend? (run with RUST_LOG=debug and it will be printed)

it is solved bro. it was actually problem with the ubuntu updates as i updated to latest ubuntu in WSL2 windows but some issues was still there( i just update things accordingly).

but i am getting warning like this and i don not know what is the meaning of this (Note i am using WSL2 Ubuntu with code)

MESA: error: ZINK: failed to choose pdev glx: failed to create drisw screen

it is a warning, because the program has been execute successfully. Thanks for quick response.