-
Notifications
You must be signed in to change notification settings - Fork 187
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
Examples panic when Nvidia driver is enabled #345
Comments
Looks like the example enables the VK_LAYER_KHRONOS_validation layer. |
@filnet Thanks, that helps but after seeing the
```
NFO:
GENERAL [Loader Message (0)] : Inserted device layer VK_LAYER_KHRONOS_validation (libVkLayer_khronos_validation.so)
INFO: thread 'main' panicked at 'attempted to leave type ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: ERROR:
|
The |
Looks like a winit issue. |
We probably just have to update winit, I recently ran into the same error in ggez. |
Yes this is a Rust 1.48 and winit issue, can confirm updating winit fixes it in other projects.
|
I can confirm that it works with updating winit. I have tried to make PR but I don't get the example code in a proper shape because the semantics of the winit's event loop run is changed. It now wants to own all the code which in the current structure makes it impossible to run the code which does the cleanup. That said as a Rust beginner π |
I can confirm that too. Examples updating winit to 0.24.0 and fixing winit namespacing references in lib.rs went just easy.
to
leads inevitably to the folling error: `error[E0107]: wrong number of type arguments: expected 1, found 0 error: aborting due to previous error; 1 warning emitted` Edit: lib.rs attached |
@majkcramer I've performed the full conversion of both the examples and |
Just as an FYI, I've already updated winit and rewritten the triangle example so it works with the new event loop as part of #190, just have to do the texture now |
@hgallagher1993 Do you think you can update and submit that soon or should I submit aforementioned branch as interim solution till then? That's probably going to generate a bunch of conflicts on your side though. |
@MarijnS95 shouldn't be too long before I have a merge request, couple of days at most π |
On Ubuntu 20.10 the examples panics with error:
Backtrace:
nvidia-smi:
vkcube
works.Let me know if more info is needed.
The text was updated successfully, but these errors were encountered: