Code Monkey home page Code Monkey logo

Comments (3)

ajzaff avatar ajzaff commented on May 28, 2024 2

It's likely that the error is related to your version of opengl. This only aims to support 4.1 which is fine if it's in your profile, but would return an error if it's not available.

If you're on wsl you can try

sudo apt install mesa-utils
glxinfo | grep "core profile"

To find supported core GL version.

Then, to get it running, you can change all "github.com/go-gl/gl/v4.1-core/gl" imports to a supported version and change the window hints here: https://github.com/danfragoso/thdwb/blob/master/mustard/window.go#L16-17

Longer term would need to add support for older versions of gl.

from thdwb.

JeelRajodiya avatar JeelRajodiya commented on May 28, 2024

i'm facing the same problem
OS : windows 10

$ make test
Testing Sauce...

named files must be .go files: sauce/go.mod
make: *** [Makefile:24: test] Error 1

make build works perfectly but the binary doesn't run

C:\Users\ZEEL\Documents\languages\go\repositories\thdwb>C:\Users\ZEEL\Documents\languages\go\repositories\thdwb\bin\thdwb.exe
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x421ac9]

goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetSizeLimits.func1(0x0, 0x12c, 0xc8, 0xffffffffffffffff, 0xffffffffffffffff)
        C:/Users/ZEEL/Documents/languages/go/golib/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:505 +0x29
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetSizeLimits(0x0, 0x12c, 0xc8, 0xffffffffffffffff, 0xffffffffffffffff)
        C:/Users/ZEEL/Documents/languages/go/golib/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:505 +0x5e
github.com/danfragoso/thdwb/mustard.CreateNewWindow(0x76d231, 0x5, 0x384, 0x258, 0x1, 0x0)
        C:/Users/ZEEL/Documents/languages/go/repositories/thdwb/mustard/window.go:24 +0xd1
main.main()
        C:/Users/ZEEL/Documents/languages/go/repositories/thdwb/browser/main.go:46 +0x2fe

I've ran these make commands in git bash install on windows.
and renamed the bin/thdwb build file to bin/thdwb.exe and tried to run it

from thdwb.

ajzaff avatar ajzaff commented on May 28, 2024

The error on line 23 is unchecked so something went wrong.
You might try to insert:

if err != nil {
    log.Fatal(err)
}

Before line 24, make run, then paste the error here.

from thdwb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.