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

fyne_demo not runing on FreeBSD #5178

Open
2 tasks done
timsan7sk opened this issue Oct 3, 2024 · 2 comments
Open
2 tasks done

fyne_demo not runing on FreeBSD #5178

timsan7sk opened this issue Oct 3, 2024 · 2 comments
Labels
unverified A bug that has been reported but not verified

Comments

@timsan7sk
Copy link

timsan7sk commented Oct 3, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

Can't run fyne_demo on FreeBSD 14

How to reproduce

go run fyne.io/fyne/v2/cmd/fyne_demo@latest

Screenshots

image

Example code

[email protected]:~$ go run fyne.io/fyne/v2/cmd/fyne_demo@latest
panic: failed to compile OpenGL shader:

>>> SHADER SOURCE
#version 110

attribute vec3 vert;
attribute vec2 vertTexCoord;
varying vec2 fragTexCoord;

void main() {
    fragTexCoord = vertTexCoord;

    gl_Position = vec4(vert, 1);
}
<<< SHADER SOURCE

goroutine 68 [running, locked to thread]:
fyne.io/fyne/v2/internal/painter/gl.(*painter).createProgram(0x8744c60a0, {0x37380d?, 0x0?})
	/home/timsan/go/pkg/mod/fyne.io/fyne/[email protected]/internal/painter/gl/painter.go:155 +0x5ac
fyne.io/fyne/v2/internal/painter/gl.(*painter).Init(0x8744c60a0)
	/home/timsan/go/pkg/mod/fyne.io/fyne/[email protected]/internal/painter/gl/gl_core.go:73 +0xda
fyne.io/fyne/v2/internal/driver/glfw.(*window).create.func2()
	/home/timsan/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window_desktop.go:764 +0x6a
fyne.io/fyne/v2/internal/driver/glfw.(*window).RunWithContext(0x87441c700, 0x87442a480)
	/home/timsan/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:929 +0x43
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).startDrawThread.func1()
	/home/timsan/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:249 +0x12c
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).startDrawThread in goroutine 1
	/home/timsan/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:241 +0xbb
exit status 2
[email protected]:~$ 

Fyne version

2.5.1

Go compiler version

1.22.2

Operating system and version

FreeBSD 14

Additional Information

[email protected]:~$ pkg info | grep glfw
glfw-3.4                       Portable framework for OpenGL development

On Ubuntu it's run perfectly

@timsan7sk timsan7sk added the unverified A bug that has been reported but not verified label Oct 3, 2024
@andydotxyz
Copy link
Member

Does your FreeBSD have the OpenGL driver / GLX installed?
We test it fairly regularly on FreeBSD and OpenBSD and know it works on our hardware.

@timsan7sk
Copy link
Author

timsan7sk commented Oct 4, 2024

Hi there!

[email protected]:/usr/ports$ less /var/log/messages | grep GeForce
Oct  4 10:23:28 timsan kernel: nvidia0: <GeForce GTX 660 Ti> on vgapci0

[email protected]:~$ /usr/local/bin/glxinfo | grep glx
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:

[email protected]:~$ /usr/local/bin/glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 660 Ti/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 390.154
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 390.154
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.154
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants