linebender / linebender/druid

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

Open
#626 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

shell/win
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

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)
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Windows 10 using the README.md example and minimize the window. Start by inspecting the druid_shell::platform::windows::window resize path mentioned in the error, then verify that minimizing no longer logs ResizeBuffers failed: 0x80070057.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.