Giter Site home page Giter Site logo

Comments (8)

pwaller avatar pwaller commented on June 4, 2024

Can you give a complete stack trace?

from gl.

vova616 avatar vova616 commented on June 4, 2024

C:/Users/X/AppData/Local/Temp/2/bindist012168375/go/src/pkg/runtime/panic.c:229 (0x4126b4)
C:/Users/X/AppData/Local/Temp/2/bindist012168375/go/src/pkg/runtime/panic.c:487 (0x412da4)
C:/Users/X/AppData/Local/Temp/2/bindist012168375/go/src/pkg/runtime/os_windows.c:303 (0x41195f)
E:/Users/X/AppData/Local/Temp/go-build207485643/github.com/go-gl/gl/_obj/attriblocation.cgo1.go:2339 (0x4c74c2)
E:/GO/Projects/src/github.com/vova616/GarageEngine/engine/Engine.go:386 (0x43cf11)
com/vova616/GarageEngine/engine.initGL: gl.Init()
E:/GO/Projects/src/github.com/vova616/GarageEngine/engine/Engine.go:176 (0x43a296)
com/vova616/GarageEngine/engine.StartEngine: if err = initGL(); err != nil {
E:/GO/Projects/src/github.com/vova616/GarageEngine/main.go:65 (0x4012a4)
Start: engine.StartEngine()
C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist012168375/go/src/pkg/runtime/proc.c:1223 (0x416030)

from gl.

pwaller avatar pwaller commented on June 4, 2024

I'm at a loss. Unfortunately we don't (currently) have any windows developers so aren't in a position to debug it. It was enabled by default on the basis that it shouldn't have any negative effects for users. Maybe we should revisit that decision and make it a controllable parameter?

On the other hand, it could be viewed as a glew (or perhaps driver) bug. @vova616, are you in a position to debug further by trying to reproduce it with a C/C++ program?

It might be worth shooting an e-mail to the glew mailing list to ask if they know what's going on, but I suspect that without an easily reproducible example they won't run with it.

from gl.

vova616 avatar vova616 commented on June 4, 2024

I think its cgo bug, I checked this simple program and it worked http://play.golang.org/p/RcmVDpwPUn

I think this is what happening, glewExperimental is not initialized so the cgo tries to take an address of uninitialized value.
This will crash:
http://play.golang.org/p/ShhdPD1kln

This wont crash:
http://play.golang.org/p/uMSbkMY_vF

I just checked and if you will make a C function that changes glewExperimental it wont crash, exp:
http://play.golang.org/p/fhsCLxolW4

from gl.

pwaller avatar pwaller commented on June 4, 2024

Thanks for following up! Would you be willing to make a pull request which calls SetExperimental as you demonstrated, instead?

from gl.

vova616 avatar vova616 commented on June 4, 2024

Sure, here
go-gl/gl#101

from gl.

pwaller avatar pwaller commented on June 4, 2024

Aweomse, thanks! I'll review it tomorrow since our automated tests are failing. Sorry for the delay.

from gl.

vova616 avatar vova616 commented on June 4, 2024

np :)

from gl.

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.