Skip to content
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

Vulkan: Loader not found #1106

Closed
j0hnsmith opened this issue Aug 2, 2024 · 2 comments · Fixed by #1112
Closed

Vulkan: Loader not found #1106

j0hnsmith opened this issue Aug 2, 2024 · 2 comments · Fixed by #1112
Labels
bug Something isn't working correctly

Comments

@j0hnsmith
Copy link
Contributor

Describe the bug

I'm trying to run the cogent hello world example on an arm64 mac. It compiles but doesn't run, I get the output below.

I've installed https://github.com/KhronosGroup/MoltenVK.

Any ideas what I'm missing?

How to reproduce

Run the cogent hello world example on an arm64 mac.

Example code

package main

import (
	"cogentcore.org/core/core"
)

func main() {
	b := core.NewBody()
	core.NewButton(b).SetText("Hello, World!")
	b.RunMainWindow()
}

Relevant output

go-gl/glfw: internal error: an uncaught error has occurred: APIUnavailable: Vulkan: Loader not found
go-gl/glfw: Please report this in the Go package issue tracker.
go-gl/glfw: internal error: an uncaught error has occurred: APIUnavailable: Vulkan: Loader not found
go-gl/glfw: Please report this in the Go package issue tracker.
go-gl/glfw: internal error: an invalid error was not accepted by the caller: APIUnavailable: Vulkan: Loader not found
go-gl/glfw: Please report this in the Go package issue tracker.
panic: APIUnavailable: Vulkan: Loader not found

goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.acceptError({0x0, 0x0, 0x1?})
        {redacted}/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/error.go:181 +0x214
github.com/go-gl/glfw/v3.3/glfw.panicError(...)
        {redacted}/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/error.go:188
github.com/go-gl/glfw/v3.3/glfw.WindowHint(0x10546bc88?, 0x104dba4a0?)
        {redacted}/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:274 +0x38
cogentcore.org/core/system/driver/desktop.(*App).InitVk(0x105f3f4c0)
        {redacted}/pkg/mod/cogentcore.org/[email protected]/system/driver/desktop/app.go:85 +0xd0
cogentcore.org/core/system/driver/desktop.Init()
        {redacted}/pkg/mod/cogentcore.org/[email protected]/system/driver/desktop/app.go:30 +0x28
cogentcore.org/core/system/driver.init.0()
        {redacted}/pkg/mod/cogentcore.org/[email protected]/system/driver/driver_desktop.go:30 +0xcc

Platform

macOS

@j0hnsmith j0hnsmith added the bug Something isn't working correctly label Aug 2, 2024
@kkoreilly
Copy link
Member

Did you run core setup as documented in the install instructions?

@j0hnsmith
Copy link
Contributor Author

I hadn't, didn't realise any setup was required. I've run it now and it works as expected, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants