Skip to content

Index out of range using gdlv debug #79

Description

Window shows up for a moment then immediately crashes:

gdlv debug github.com/jezek/xgb/xgbgen -- --package xkb --gofmt=false --proto-path ./xml/src ./xml/src/xkb.xml
panic: runtime error: index out of range [5] with length 5

goroutine 24 [running]:
github.com/aarzilli/nucular/richtext.(*RichText).reflow(0xc0001d0008)
	github.com/aarzilli/nucular@v0.0.0-20240117103348-47eb8d7bfc14/richtext/draw.go:519 +0xc77
github.com/aarzilli/nucular/richtext.(*Ctor).End(0xc0001d00a8)
	github.com/aarzilli/nucular@v0.0.0-20240117103348-47eb8d7bfc14/richtext/rtxt.go:501 +0xa1e
main.(*editorWriter).Write(0xc0000de000?, {0xc00010e010, 0x5, 0x0?})
	github.com/aarzilli/gdlv/scrollback.go:49 +0x692
fmt.Fprintf({0x8f0aa0, 0xc00010e000}, {0x84cf6d, 0x5}, {0x0, 0x0, 0x0})
	fmt/print.go:225 +0x97
main.(*ServerDescr).Rebuild(0xb90a40)
	github.com/aarzilli/gdlv/server.go:368 +0x10d
main.(*ServerDescr).Start(0x0?)
	github.com/aarzilli/gdlv/server.go:275 +0x26
created by main.main in goroutine 1
	github.com/aarzilli/gdlv/main.go:1140 +0x425
make: *** [Makefile:62: xkb.delve] Error 2

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions