[go-nuts] Re: How to develop with Go source code change?

2024-01-03 Thread 'TheDiveO' via golang-nuts
Maybe your output is interfering with the way the go code base does some of it's checks; based on the fail in cmd/vet maybe this could be involved: https://github.com/golang/go/blob/b25f5558c69140deb652337afaab5c1186cd0ff1/src/cmd/vet/vet_test.go#L197? On Tuesday, January 2, 2024 at 5:45:12 PM U

[go-nuts] <-ctx.Done() panic

2024-01-03 Thread cheng dong
i have a program paniced with ``` runtime.deferCallSave(0xc0313d56d8, 0xc0401839e8?) /home/ubuntu/go/go1.19.5/src/runtime/panic.go:796 +0x88 fp=0xc0313d5618 sp=0xc0313d5608 pc=0x43b248 runtime.runOpenDeferFrame(0xc02349b860?, 0xc0300967d0) /home/ubuntu/go/go1.19.5/src/runtime/pan

[go-nuts] Re: <-ctx.Done() panic

2024-01-03 Thread 'Brian Candler' via golang-nuts
Panics can be caused by all sorts of things, but concurrency issues are a big one. Have you tried running your code under the race detector? https://go.dev/blog/race-detector On Wednesday 3 January 2024 at 10:57:49 UTC cheng dong wrote: > i have a program paniced with > > ``` > runtime.deferCal

[go-nuts] Re: Rendering fonts in Go

2024-01-03 Thread Egon
There's also https://github.com/go-text/typesetting and github.com/go-text/render. But, I'm not sure whether it covers your needs. On Saturday 23 December 2023 at 00:10:13 UTC+2 Howard C. Shaw III wrote: > I think Freetype may still be your best bet - but rather than the Freetype > port, you wo

Re: [go-nuts] <-ctx.Done() panic

2024-01-03 Thread 'Sean Liao' via golang-nuts
maybe a bad custom context implementation in the chain - sean On Wed, Jan 3, 2024, 10:57 cheng dong wrote: > i have a program paniced with > > ``` > runtime.deferCallSave(0xc0313d56d8, 0xc0401839e8?) > /home/ubuntu/go/go1.19.5/src/runtime/panic.go:796 +0x88 > fp=0xc0313d5618 sp=0xc0313d

Re: [go-nuts] Re: A global panic handler for crash reporting

2024-01-03 Thread Johan Liebert
A global panic handler for crash reporting is a critical component in software development. It serves as a robust mechanism to capture, analyze, and respond to unexpected errors or crashes in applications. This handler acts as a safety net, allowing developers to receive real-time notificati

Re: [go-nuts] <-ctx.Done() panic

2024-01-03 Thread Johan Liebert
https://life2vecdeathcalculator.com/ On Wednesday, January 3, 2024 at 3:57:01 AM UTC-8 Sean Liao wrote: > maybe a bad custom context implementation in the chain > > - sean > > On Wed, Jan 3, 2024, 10:57 cheng dong wrote: > >> i have a program paniced with >> >> ``` >> runtime.deferCallSave(0xc0

[go-nuts] Re: How to develop with Go source code change?

2024-01-03 Thread 'Rulin Tang' via golang-nuts
Try it again. And this time it works to build the new Go version. But the debug message doesn't show. Not sure this is the expected result or not. On Wednesday 3 January 2024 at 00:45:12 UTC+8 Rulin Tang wrote: > Hey, I'm trying to do some Go source code development. But I'm confused > about ho

[go-nuts] Re: <-ctx.Done() panic

2024-01-03 Thread cheng dong
yeah, i try race and found that we write/read ctx in race condition and solved it. thanks for give ideas On Wednesday, January 3, 2024 at 7:29:47 PM UTC+8 Brian Candler wrote: > Panics can be caused by all sorts of things, but concurrency issues are a > big one. Have you tried running your code