Skip to content

runtime/cgo: misuse of an invalid Handle #6

Description

@brodo

Hi there!
First of all, thank you for maintaining this project!

Steps to reproduce:

  1. Clone https://github.com/brodo/goBoids
  2. Check out the bugreport tag
  3. Run the project
  4. Hit localhost:3000 a couple of times. (Refresh until it crashes.)
    Here is the complete error log:
panic: runtime/cgo: misuse of an invalid Handle
	panic: runtime/cgo: misuse of an invalid Handle

goroutine 1 [running, locked to thread]:
runtime/cgo.Handle.Delete(0x140000021c0?)
	/opt/homebrew/opt/go/libexec/src/runtime/cgo/handle.go:137 +0x60
panic({0x100ea0180?, 0x100f098c0?})
	/opt/homebrew/opt/go/libexec/src/runtime/panic.go:792 +0x124
runtime/cgo.Handle.Value(0x1400047d8c8?)
	/opt/homebrew/opt/go/libexec/src/runtime/cgo/handle.go:124 +0x60
github.com/cogentcore/webgpu/wgpu.gowebgpu_buffer_map_callback_go(0x0, 0x1006f7b5c?)
	/Users/brodo/go/pkg/mod/github.com/cogentcore/webgpu@v0.23.0/wgpu/buffer.go:65 +0x4c
github.com/cogentcore/webgpu/wgpu._Cfunc_wgpuQueueSubmitForIndex(0x600001a8c9b0, 0x1, 0x600001894030)
	_cgo_gotypes.go:2442 +0x34
github.com/cogentcore/webgpu/wgpu.(*Queue).Submit.func3(...)
	/Users/brodo/go/pkg/mod/github.com/cogentcore/webgpu@v0.23.0/wgpu/queue.go:79
github.com/cogentcore/webgpu/wgpu.(*Queue).Submit(0x1400010a050, {0x1400047dd98, 0x1, 0x0?})
	/Users/brodo/go/pkg/mod/github.com/cogentcore/webgpu@v0.23.0/wgpu/queue.go:79 +0x168
main.(*State).Render(0x14000102000)
	/Users/brodo/repos/goBoids/main.go:410 +0x970
main.main()
	/Users/brodo/repos/goBoids/main.go:518 +0x174

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions