sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.19k stars 148 forks source link

Terminal Hangs Due to Excessive console.log or console.info Output #292

Closed martg0 closed 3 months ago

martg0 commented 3 months ago

I encounter an error where the application hangs and fails to exit due to an excessive number of entries in the terminal response, typically generated by extensive usage of console.log or console.info. To resolve this issue, I find it necessary to execute sst unlock before attempting to run the process again.

Additional Information:

Operating in sst dev mode. sst version: 0.0.298

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x100df3340]

goroutine 17758 [running]:
bufio.(*Writer).Flush(0x14002186400)
    /opt/hostedtoolcache/go/1.22.2/x64/src/bufio/bufio.go:639 +0x40
net/http.(*response).FlushError(0x14001f622a0)
    /opt/hostedtoolcache/go/1.22.2/x64/src/net/http/server.go:1723 +0x3c
net/http.(*response).Flush(0x102dc2020?)
    /opt/hostedtoolcache/go/1.22.2/x64/src/net/http/server.go:1716 +0x1c
github.com/sst/ion/pkg/server.(*Server).Start.func1.1(0x14003f03df8?)
    /home/runner/work/ion/ion/pkg/server/server.go:120 +0xb4
github.com/sst/ion/pkg/server.(*Server).Start.func1.5(0x1400647c180)
    /home/runner/work/ion/ion/pkg/server/server.go:149 +0x60
github.com/sst/ion/pkg/server/bus.Publish[...](0x1400647c180)
    /home/runner/work/ion/ion/pkg/server/bus/bus.go:27 +0x1c0
github.com/sst/ion/pkg/server/dev/aws.Start.func10.2.1()
    /home/runner/work/ion/ion/pkg/server/dev/aws/aws.go:290 +0xd4
created by github.com/sst/ion/pkg/server/dev/aws.Start.func10.2 in goroutine 89
    /home/runner/work/ion/ion/pkg/server/dev/aws/aws.go:285 +0x338
thdxr commented 3 months ago

recovering from panics for now will i understand this better - fixed in 308