-
Notifications
You must be signed in to change notification settings - Fork 99
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
Window always renders white on Windows 11 in release build. #351
Comments
I would recommend that you try to clone the |
Repro
In Release In Debug |
Interestingly this works. |
Also interestingly however is that the version in Could it be fixed since the latest published to crates.io? |
I can confirm that adding
as my dependency everything renders fine |
Unsure, I can make a new release later today. |
No rush on my account - its good to know its fixed and I'm unblocked by specifying the revision. Thanks for such an awesome project :) |
Thanks :) |
Just saw this issue - now that Rust 1.78 is live, we're also seeing the problem on stable. We'll also pin to the git version as well until a new release is up, but leaving a note here in case other users are encountering the same problem. |
Some function is also deprecated in the new release -- so the switch over isn't exactly clean, but, I'll also check in the code change to comply to the deprecation notice as well when I rev things. |
This is the work-around suggested at emoon/rust_minifb#351 until a new release is tagged.
I wonder what changed from 1.77 to 1.78 that made this happen? |
I will sort out a new release today |
A couple changes specifically impacting windows: rust-lang/rust#115141 or this rust-lang/rust#112267 Nothing leaps out at me as the culprit, there were also some changes to locking that maybe introduced a race condition? Either way, top of main branch works. Thanks @emoon for the support! |
0.26 has now been published |
thank you ~~~ |
I think there may still be (at least 1) issue on Windows WRT mouse. I'll try to knock up a small repro this morning |
If you run in debug mode, you get the worlds worst drawing app. Well, technically if you run it in release mode you get the worlds worst drawing app because it doesnt work :) Adding in a small amount of logging shows that |
I get the same result with running the mouse example on Windows. I will investigate |
I have pushed a workaround for the issue. I'm not really sure what is going on yet tho. Edit: version 0.27 has been released with the fix, but I need to investigate the root cause of it. |
I appreciate this may not be an issue with minifb (Windows versions, Graphics driver versions) - but its pretty much my only dependency.
Everything displays correctly in debug builds. Same code works fine in both release & debug on M1 mac.
Any of the examples exhibit this.
Main things I can think of that may impact?
rustc 1.79.0-nightly (ccfcd950b 2024-04-15)
Nvidia 3080, game ready driver 552.22 (april 16 2024)
Edition Windows 11 Pro
Version 23H2
Installed on 06/10/2022
OS build 22631.3447
Experience Windows Feature Experience Pack 1000.22688.1000.0
I had a small application that was fine from 1 month ago, no changes in code (probably a windows update and a rustup update).
The text was updated successfully, but these errors were encountered: