-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
wgpu warning and errors on startup #807
Comments
Oh, forgot to mention: I've been seeing this since egui support was merged (#763). |
I see something slightly different on Windows 11:
|
I think that means that you haven't installed the Vulkan SDK. At least it was like that for me, on Linux. Reference: #157 (comment) Maybe that's also the reason you're not seeing the validation error I'm seeing? The error message is definitely not ideal. It's not relevant to end users, and not informative for developers. For the end users, we should consider suppressing wgpu warnings in release mode. Not sure about the developers; maybe we can somehow detect the presence of that warning and print some extra information.
Those look similar to my first warning. I'm guessing they have the same cause. |
You're right. Installing the Vulkan SDK helped. Now the errors I see are very similar to yours, plus an additional warning regarding the present mode. This is the same PC but booting Arch Linux. I have an NVIDIA GTX 1070.
|
I think this is something relatively normal, depending on your hardware. Maybe we can adapt our default though, if FIFO is the more available one. |
Now that I think about it, maybe now is not the best time to address these issues. We're not on the latest wgpu release right now, as we're waiting for an updated egui integration to be released. |
I just tried
but then the viewer seems to run fine, so I assume the issue is not urgent (Mac OS X 12.4). |
Thanks for the feedback, @U007D! And nice to see you here! It's been a few years since we met in Berlin 😄 Interesting to see more cases of fallback to FIFO. As I said above, it might make sense to set it in the first place. |
Wow, hahaha!! Good memory!! Yes, that was a great trip--I enjoyed meeting so many very cool and talented Rustaceans! Berlin was a very interesting city for me too--it was my first time there. Yes, maybe defaulting to I hope all is well with you! I have recently started to build the electric car I may have mentioned when we met in Berlin (converting my garage to a workspace). Happy to chat about it and find out more about what you are up to if you like. I am |
Wrong! Shitty memory, you were just the most interesting guy I talked to at that conference 😄 And maybe I'm misremembering, but I think we talked quite a bit over those days.
It's the present mode, if I recall correctly, which governs how specifically rendered pixels are moved to the screen. Now that I think about it, there have been changes to that in the latest wgpu release. The documentation has also improved a lot: https://docs.rs/wgpu/latest/wgpu/enum.PresentMode.html Probably best to wait until we can upgrade the wgpu version, then choose the new
Working full-time on my own open source project for very little money. Living the dream! 😂
Absolutely! To be honest, I always regretted not following up after conference. Nice to be back in touch! (I don't know who I am on Discord (more of a Matrix guy), but I'm sure I can figure out how to contact you.) |
This takes care of this error: ``` 2022-10-13T10:23:44.527262Z ERROR egui_winit::clipboard: Cannot initialize smithay clipboard without a display handle! at /home/hanno/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/egui-winit-0.19.0/src/clipboard.rs:139 ``` See #807 for more context.
I've been looking into the wgpu errors I'm seeing. First, these ones:
That seems to be due to a Naga bug (gfx-rs/naga#2036), which is already fixed. Should take care of itself once we upgrade to the latest wgpu version (#976). The second one seems to be a follow-on error. It comes from the same call to the the same callback function. Second, this one:
Since the Clipboard has already been causing trouble (#815 (comment)), I've decided to just disable the clipboard entirely. We can revisit this later, preferably once we have a working WASM build. Also see emilk/egui#2138. Finally, these ones:
For some reason, the window gets a spurious resize event on initialization, which then leads to these errors. I get another resize event to the correct size right after, so this can be taken care of by only handling resizes once per frame. Also see rust-windowing/winit#2094. I've fixed all the warnings/errors that can currently be fixed in #1216. Labeling as blocked on #976. |
When I start
fj-app
, here's what I'm seeing:This is on an AMD Ryzen 7 5700G with Radeon Graphics (is what
lshw
says).I don't notice any observable problem related to that, except maybe a noticeable delay on startup (I will open a separate issue for that). It would still be good to look into that and figure out what's going on.
If you don't see this error on your setup, please let us know by commenting here!
The text was updated successfully, but these errors were encountered: