g3n / demos Goto Github PK
View Code? Open in Web Editor NEWStandalone demos for G3N Game Engine
License: BSD 2-Clause "Simplified" License
Standalone demos for G3N Game Engine
License: BSD 2-Clause "Simplified" License
Result: application crashes
Output:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x90 pc=0x7ff65dbe1eee]
goroutine 1 [running, locked to thread]:
github.com/g3n/engine/gui.(*Window).onCursor(0xc000005c08, {0x7ff65dfa2489?, 0x7ff65dd33410?}, {0x7ff65def4440?, 0xc0000ea0a8})
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/gui/window.go:190 +0x22e
github.com/g3n/engine/core.(*Dispatcher).Dispatch(0x0?, {0x7ff65dfa2489, 0xa}, {0x7ff65def4440, 0xc0000ea0a8})
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/core/dispatcher.go:109 +0x8b
github.com/g3n/engine/gui.(*manager).onCursor(0xa?, {0x7ff65dfa2489?, 0x7ff65da1fd1b?}, {0x7ff65def4440?, 0xc0000ea0a8?})
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/gui/manager.go:171 +0x1ae
github.com/g3n/engine/core.(*Dispatcher).Dispatch(0xc0000ec000?, {0x7ff65dfa2489, 0xa}, {0x7ff65def4440, 0xc0000ea0a8})
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/core/dispatcher.go:109 +0x8b
github.com/g3n/engine/window.Init.func6(0xc000031bd8?, 0x7ff65da1e1e5?, 0xc000054000?)
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/window/glfw.go:353 +0x5e
github.com/go-gl/glfw/v3.3/glfw.goCursorPosCB(0x7ff65da51c29?, 0x4072c00000000000, 0x4064400000000000)
C:/Users/astef/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/input.go:340 +0x3e
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwPollEvents()
_cgo_gotypes.go:1540 +0x49
github.com/go-gl/glfw/v3.3/glfw.PollEvents()
C:/Users/astef/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:964 +0xf
github.com/g3n/engine/window.(*GlfwWindow).PollEvents(...)
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/window/glfw.go:433
github.com/g3n/engine/app.(*Application).Run(0xc00006c180, 0xc000031ef8)
C:/Users/astef/go/pkg/mod/github.com/g3n/[email protected]/app/app-desktop.go:91 +0x8a
github.com/g3n/g3nd/app.(*App).Run(0xc000076140)
C:/proj/pub/g3nd/app/app.go:623 +0x294
main.main()
C:/proj/pub/g3nd/main.go:24 +0x18
AL lib: (EE) alc_cleanup: 1 device not closed
exit status 2
I tried to make trivial changes to hellog3n to change the "up" direction from +Y to +Z, but it did not turn out as expected. I have tried to fix it for 2 days with no luck. I think it would be really helpful if a working demo of my failed attempt could be added to the demos. Here is a repo where you can see my three changes clearly marked in source and also documented in the included README.md: g3n-helpme-1
Newcomer to Go here, followed the steps in the documentation and haven't been able to get any g3n modules to run. Not finding any documentation on the exit status code, any thoughts on how to proceed?
Microsoft Windows 10 Pro
10.0.19043 Build 19043
AMD Ryzen 7 3700X 8-Core Processor, 3593 Mhz, 8 Core(s), 16 Logical Processor(s)
Directory: C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n
Mode LastWriteTime Length Name
---- ------------- ------ ----
------ 10/22/2021 11:47 AM 356 go.mod
------ 10/22/2021 11:47 AM 1385 go.sum
------ 10/22/2021 11:47 AM 2274 main.go
------ 10/22/2021 11:47 AM 77760 screenshot.png
PS C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n> go install
PS C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n> go run main.go
exit status 0xc0000135
PS C:\Users\JasonHoku\Documents\GitProjects\GoG3N\hellog3n>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.