-
Notifications
You must be signed in to change notification settings - Fork 568
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
thread 'main' panicked at 'called Option::unwrap()
on a None
value'
#1426
Comments
What version of windows are you running? It looks like we're failing to create a render target. @raphlinus would have a better understanding of what would cause that, I'm not as familiar with the windows backend. |
I suspect what happens here is that he ends up getting a Inside Adding a Edit: Try this branch and let me know if it solved the problem: https://github.com/rhzk/druid/tree/1426 |
|
I also encountered the same error. As @rhzk suspected, I tried on the master branch. Below patch is worked for me. --- a/druid-shell/src/platform/windows/window.rs
+++ b/druid-shell/src/platform/windows/window.rs
@@ -663,6 +663,10 @@ impl WndProc for MyWndProc {
let handle = self.handle.borrow().to_owned();
state.handler.connect(&handle.into());
+
+ if let Err(e) = state.rebuild_render_target(&self.d2d_factory, scale) {
+ log::error!("error building render target: {}", e);
+ }
}
Some(0)
} As a workaround, Giving size with |
This error message also appeared on my other computer, and it could not start normally. I am using examples.
The text was updated successfully, but these errors were encountered: