core icon indicating copy to clipboard operation
core copied to clipboard

I run the example video in freebsd it have error

Open runsys opened this issue 1 year ago • 1 comments

Describe the bug

video example in freebsd invalid memory address error.

How to reproduce

just run it.

Example code

No response

Relevant output

/da/go/src/cogentcore.org/core/examples/video/video  [/da/go/src/cogentcore.org/core/examples/video]
2024/07/01 23:36:51 ERROR girl/paint.FontLib: programmer error: no font paths; need to add some
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1640511]

goroutine 1 [running, locked to thread]:
github.com/ebitengine/oto.NewContext(0x898039ea0?)
	/da/go/src/github.com/ebitengine/oto/context.go:93 +0xb1
github.com/faiface/beep/speaker.Init(0x8983d0008?, 0x113a)
	/da/go/src/github.com/faiface/beep/speaker/speaker.go:40 +0x1c6
cogentcore.org/core/video.(*Video).Open(0x8983e6008, {0x3a9b7c, 0x8})
	/da/go/src/cogentcore.org/core/video/video.go:92 +0x30
main.main()
	/da/go/src/cogentcore.org/core/examples/video/video.go:29 +0x4ef
Command exited with code 2.

Platform

macOS

runsys avatar Jul 01 '24 15:07 runsys

I will look into this issue and improving BSD support soon (relevant to #572).

kkoreilly avatar Jul 02 '24 02:07 kkoreilly