fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
25.1k stars 1.4k forks source link

glfw libs not works on virtual MacOS/ #3635

Open yergenbakdaulet opened 1 year ago

yergenbakdaulet commented 1 year ago

Checklist

Describe the bug

My app imports fyne packages for visual gui. It is pretty working on windows and ubuntu 22 platforms. Then i tried to run on virtual macos . it is starts with go run main.go but when i trying to open gui window appears some errors of glfw: GLFW: An invalid error was not accepted by the caller: FormatUnavailable: NSGL: Failed to find a suitable pixel format GLFW: Please report this bug in the Go package immediately. panic: FormatUnavailable: NSGL: Failed to find a suitable pixel format

goroutine 1 [running, locked to thread]: github.com/go-gl/glfw/v3.3/glfw.acceptError({0xc00060fc10, 0x2, 0x100bbd320?}) github.com/go-gl/glfw/v3.3/glfw/error.go:178 Same errors appears when i run fyne_demo.

How to reproduce

Run some virtual macos Run your fyne gui app open any fyne window in app error appears

Screenshots

No response

Example code

App.run ()

Fyne version

2.3

Go compiler version

1.19

Operating system

macOS

Operating system version

ProductName: macOS ProductVersion: 11.1 BuildVersion: 20C69

Additional Information

No response

andydotxyz commented 1 year ago

Can you be more specific about what "virtual macOS" is? If you are talking about running macOS in a virtual machine you'll need to turn on the graphics driver/OpenGL option.