-
Notifications
You must be signed in to change notification settings - Fork 499
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
[OSX] Vulkan support is either not configured in SDL or not available in current SDL video driver (cocoa) or platform #368
Comments
You're on a mac right? Did you run brew cask install for vulkan?
…On Sat, Sep 26, 2020, 1:18 PM Ben Wainwright ***@***.***> wrote:
Tried to run and got this:
Ignored client type property: "methods"
Ignored client type property: "attributes"
Ignored style attribute: "standout"
thread 'main' panicked at 'Failed to create window: SdlError("Vulkan support is either not configured in SDL or not available in current SDL video driver (cocoa) or platform")', src/window/sdl2.rs:132:14
stack backtrace:
0: 0x10e7a5135 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h24bb64d98a7e25d6
1: 0x10e71d82c - core::fmt::write::h8fdc9cddb01cd8b2
2: 0x10e7a4749 - std::io::Write::write_fmt::hcc3030013983bab6
3: 0x10e7a4105 - std::panicking::default_hook::{{closure}}::h95817712c5ff0736
4: 0x10e7a3852 - std::panicking::rust_panic_with_hook::haf571858f996ac45
5: 0x10e7a7dda - rust_begin_unwind
6: 0x10ece507f - core::panicking::panic_fmt::h11676ba6a846d9f4
7: 0x10ece55e5 - core::option::expect_none_failed::h312e48bacb63d8ec
8: 0x10e6f1c6b - neovide::window::window_wrapper::ui_loop::h0723425ccd7c2cf4
9: 0x10e6b89ac - neovide::main::hb205e48d6028f98e
10: 0x10e7b65f6 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd67e5532c4fc3d97
11: 0x10e6b7712 - main
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#368>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6S7P7FSKDTTETLOS6C4T3SHZD77ANCNFSM4R3DEVWQ>
.
|
Yup |
Is this the first time you tried building it, and did you just install vulkan or was it on your system beforehand? |
|
Have you rebooted your computer? |
Yes |
Try |
Ok I did |
Sorry, I don't remember running into this issue myself. I can just shoot some guesses at you. I assume you have Xcode installed? Also what version of OSX are you on? |
I do have Xcode installed. Version |
Have you run SDL with anything else? If not try the lazyfoo examples:
|
I just tried that and it worked fine |
This won't narrow it down, but here is an issue that might help. #301 You might find that you have to upgrade to 10.15 |
Thanks, I'll have a look through that page tomorrow.
Sadly this isn't an option for me. It's a corporate laptop and OS upgrades have to be the approved builds that come from IT, which will only install on the office network. As you can imagine, I'm not likely to return to the office for a while. |
This sounds suspiciously like this: Rust-SDL2/rust-sdl2#1030 Easy way to check is to run this command: EDIT sdl2-sys, not sdl2
BTW, there is an open issue with the windows "bundled" builds: Rust-SDL2/rust-sdl2#1029 It might make sense to pin neovide to 0.34.2 exactly until both the macOS and windows fixes are published. |
Not sure it this is related, but I had some issues with getting neovide to run on my Kubuntu 20.04 machine. The culprit was that my processor is quite old (Haswell architecture) and 'Haswell Vulkan support is incomplete'. According to wikipedia Broadwell architectures have the identical Vulkan support, i.e. probably the same issues. |
Tried that, then I ran |
@jsosulski not sure vulkan support is the issue. It looks like the winit features are working fine on his machine. It specifically has to do with vulkan/sdl interop on his machine. Not sure where to go at this point with debugging. |
You get that error message if sdl2 is compiled without metal support. The bug I mentioned before was that the bundled build script incorrectly believed metal was not available on the platform and stripped both metal and vulkan out of the build. You can dig around in the target folder for CMake build logs of sdl2 (assuming bundled feature is being used) to troubleshoot further. |
Also the recent changes in skulpin no longer require SDL2 to activate the vulkan rendering system at all so would likely work around this. |
Hey I just realized my earlier comment was incorrect. You would need to downgrade sdl2-sys, not sdl2. Could you try: |
Wouldn't that effectively be the same with regard to this issue? |
I got a brand new laptop with OSX 10.15.6 (19G73) and ran into the same error trying to install from source.
|
@benwainwright Can you check that @aclysma's suggestion works for you also? If so, I'll rollback the sdl2-sys version for exclusively Macs. |
It works to me also (macOS 10.15.7) |
#372 This should fix it. Note, I will be keeping my eye on rust-sdl2 and update it as fixes come. Sorry for the slow response. I have been distracted by another project. |
@Kethku I seem to have introduced an issue for the Windows workflow build. Going to need to build on a local Windows machine to see if I broke anything for the end user. The CI builds are supposed to be using 0.34.2 now like on my machine, but I'm not sure what's going on with the cargo file. I'll open up another issue to investigate this tomorrow. |
Is it the link issue? |
Nope just figured it out. It was my ignorance about how the package system worked. I had though that using version in conjunction with git would grab the version from the repo. The reason why my build worked was that I was overriding sys with master which included the fix by alcysma. So instead of rolling back I inadvertently pushed forward. That's enough embarrassment for one night. Going to push out one final change. |
Will have a look this morning, thanks |
Thanks! |
@suzanshakya so do you have neovide working on an m1 mac? There is an open issue saying somebody else is having troubles with it. Could you give some details about what steps were necessary? |
I had the same error but this solved it. Thanks! But for some reason, I have two windows opened everytime I run |
woohoo! - this solution worked for me as well. I've been using neovide for about 6 months and have been loving it. Thank you! I had compiled neovide without issue 6 months ago, and ran into this same issue today when I pulled down the latest and greatest. I'm on 10.15.7 and yup. the following worked
Do you think this is something that should be added to the install docs? or perhaps downgrade |
@NickSchimek glad you got up and running. Could you pull the relevant parts of this issue into a separate issue so that I can address it directly? THis feels unrelated to the parent issue, but has been pointed to as unblocking other folks as shown by the references |
Tried to run and got this:
The text was updated successfully, but these errors were encountered: