Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR [druid_shell::platform::windows::window] ResizeBuffers failed: 0x80070057 when minimize a window #626

Open
usagi opened this issue Mar 10, 2020 · 0 comments
Labels
shell/win concerns the Windows backend

Comments

@usagi
Copy link

usagi commented Mar 10, 2020

I got the error log in the terminal when I minimize the window( 100% repro ):

ERROR [druid_shell::platform::windows::window] ResizeBuffers failed: 0x80070057

It is not a critical error, but I want to run an app without an errors.

  • OS: Windows 10
  • toolchain: x86_64-pc-windows-msvc; 1.43.0-nightly (d3c79346a 2020-02-29)
  • druid: druid = { git = "https://github.com/xi-editor/druid.git", version = "0.5" }
  • source ( It is same to the example in the README.md ):
use druid::{
  widget::{
    Align,
    Button,
    Flex,
    Label,
    Padding,
    WidgetExt
  },
  AppLauncher,
  LocalizedString,
  Widget,
  WindowDesc
};

fn main()
{
  let main_window = WindowDesc::new(ui_builder);
  let data = 0_u32;
  AppLauncher::with_window(main_window).use_simple_logger().launch(data).expect("launch failed");
}

fn ui_builder() -> impl Widget<u32>
{
  // The label text will be computed dynamically based on the current locale and count
  let text = LocalizedString::new("hello-counter").with_arg("count", |data: &u32, _env| (*data).into());
  let label = Label::new(text).padding(5.0).center();
  let button = Button::new("increment", |_ctx, data, _env| *data += 1).padding(5.0);

  Flex::column().with_child(label, 1.0).with_child(button, 1.0)
}
@cmyr cmyr added the shell/win concerns the Windows backend label Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shell/win concerns the Windows backend
Projects
None yet
Development

No branches or pull requests

2 participants