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

panic on window resizing #9

Open
astef opened this issue Apr 24, 2024 · 0 comments
Open

panic on window resizing #9

astef opened this issue Apr 24, 2024 · 0 comments

Comments

@astef
Copy link

astef commented Apr 24, 2024

  1. Open gui -> window
  2. Try to resize Window 1 (white one)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant