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

Display Poll/Wait crashing after rendering with Vulkan once #11

Open
DatCaptainHorse opened this issue Dec 2, 2023 · 0 comments
Open

Comments

@DatCaptainHorse
Copy link

DatCaptainHorse commented Dec 2, 2023

Basically, I adapted this example code: https://github.com/bbredesen/go-vk-samples/blob/main/01_single_triangle/app.go - to use gamen instead.

First frame polls and renders nicely, but the 2nd run of the for-loop dies at if !d.Poll() with this:

github.com/rajveermalviya/gamen/internal/wayland._Cfunc_wl_display_dispatch_pending(0x1386060)
        _cgo_gotypes.go:504 +0x47 fp=0xc000191e08 sp=0xc000191de0 pc=0x4a6a87
github.com/rajveermalviya/gamen/internal/wayland.(*Display).pollAndDispatchEvents.func10(0xc000191e78?)
        /home/kristian/go/pkg/mod/github.com/rajveermalviya/[email protected]/internal/wayland/display.go:452 +0x3d fp=0xc000191e40 sp=0xc000191e08 pc=0x4ab71d
github.com/rajveermalviya/gamen/internal/wayland.(*Display).pollAndDispatchEvents(0xc0000e6000, 0x1?)
        /home/kristian/go/pkg/mod/github.com/rajveermalviya/[email protected]/internal/wayland/display.go:452 +0x1c8 fp=0xc000191ea8 sp=0xc000191e40 pc=0x4ab688
github.com/rajveermalviya/gamen/internal/wayland.(*Display).Wait(0x520450?)
        /home/kristian/go/pkg/mod/github.com/rajveermalviya/[email protected]/internal/wayland/display.go:232 +0x37 fp=0xc000191ec8 sp=0xc000191ea8 pc=0x4a9a97

Let me know if further info is needed.

Update: Xcb seems to work, this is just with Wayland.

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