Skip to content

Adding bubbletea (0.1.0) and glamour (0.2.1) to project causes Go runtime exception #1

@stevegeek

Description

@stevegeek

If I try to add both to a project, and use lipgloss to render borders and then glamour to render syntax highlighting I get:

fatal error: bad sweepgen in refill

goroutine 17 gp=0x14000002700 m=1 mp=0x14000066008 [running, locked to thread]:
runtime.throw({0x14a756ec5?, 0x0?})
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/panic.go:1101 +0x38 fp=0x14000029c50 sp=0x14000029c20 pc=0x14a389998
runtime.(*mcache).refill(0x1225605b8, 0x4?)
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/mcache.go:158 +0x264 fp=0x14000029ca0 sp=0x14000029c50 pc=0x14a3348d4
runtime.(*mcache).nextFree(0x1225605b8, 0x11)
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/malloc.go:964 +0x84 fp=0x14000029cf0 sp=0x14000029ca0 pc=0x14a330e54
runtime.mallocgcSmallNoscan(0x0?, 0x12242fd50?, 0x0)
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/malloc.go:1283 +0x18c fp=0x14000029d50 sp=0x14000029cf0 pc=0x14a33145c
runtime.mallocgc(0x5f, 0x0, 0x0)
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/malloc.go:1055 +0xa8 fp=0x14000029d80 sp=0x14000029d50 pc=0x14a3877f8
runtime.rawstring(...)
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/string.go:311
runtime.gostring(0x12242fd50)
	/tmp/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/runtime/string.go:367 +0x4c fp=0x14000029dc0 sp=0x14000029d80 pc=0x14a38beac
main._Cfunc_GoString(...)
	_cgo_gotypes.go:79
main.glamour_render(0xac619c701?, 0x122534fe8)
	/home/runner/work/glamour-ruby/glamour-ruby/go/glamour.go:18 +0x24 fp=0x14000029e40 sp=0x14000029dc0 pc=0x14a7310b4
_cgoexp_46e1b95313a7_glamour_render(0x16ddb9118)
	_cgo_gotypes.go:102 +0x2c fp=0x14000029e60 sp=0x14000029e40 pc=0x14a73228c
runtime: g 17: unexpected return pc for _cgoexp_46e1b95313a7_glamour_render called from 0x122aca0b8
stack: frame={sp:0x14000029e40, fp:0x14000029e60} stack=[0x14000026000,0x1400002a000)
0x0000014000029d40:  0x000000000000005f  0x0000014000029d78
0x0000014000029d50:  0x000000014a38beac <runtime.gostring+0x000000000000004c>  0x0000000000000000
0x0000014000029d60:  0x000000012242fd50  0x000000012242fd00
0x0000014000029d70:  0x00000000000002b0  0x0000014000029db8
0x0000014000029d80:  0x000000014a7310b4 <main.glamour_render+0x0000000000000024>  0x000000000000005f

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions