Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/sam: crashes when resizing window (macOS) #119

Open
lorena-mv opened this issue Sep 8, 2024 · 0 comments
Open

cmd/sam: crashes when resizing window (macOS) #119

lorena-mv opened this issue Sep 8, 2024 · 0 comments

Comments

@lorena-mv
Copy link

lorena-mv commented Sep 8, 2024

When starting sam and resizing the window continuously, the program crashes with this output:

% sam
devdraw: skipping lifecycle.Event lifecycle.Event{From:StageDead, To:StageAlive, DrawContext:<nil>}
devdraw: size.Event rect (0,0)-(1024,768)
M mouse.Event
M mouse.Event
M mouse.Event
M mouse.Event
SIGSEGV: segmentation violation
PC=0x15429ab48 m=5 sigcode=2 addr=0x28
signal arrived during cgo execution

goroutine 37 gp=0x14000182c40 m=5 mp=0x14000100008 [syscall, locked to thread]:
runtime.cgocall(0x102539d50, 0x14000073c48)
	/usr/local/go/src/runtime/cgocall.go:167 +0x44 fp=0x14000073c10 sp=0x14000073bd0 pc=0x1024b5c14
golang.org/x/mobile/gl._Cfunc_process(0x140001d8028, 0x0, 0x0, 0x0, 0x3)
	_cgo_gotypes.go:123 +0x34 fp=0x14000073c40 sp=0x14000073c10 pc=0x10251e194
golang.org/x/mobile/gl.(*context).DoWork(0x140001d8000)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/gl/work.go:141 +0x10c fp=0x14000073f20 sp=0x14000073c40 pc=0x10251e39c
golang.org/x/exp/shiny/driver/gldriver.drawLoop(0x140001d6000, 0x1)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:163 +0xd4 fp=0x14000073fb0 sp=0x14000073f20 pc=0x1025291f4
golang.org/x/exp/shiny/driver/gldriver.preparedOpenGL.gowrap1()
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:91 +0x2c fp=0x14000073fd0 sp=0x14000073fb0 pc=0x102528e2c
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x14000073fd0 sp=0x14000073fd0 pc=0x1024c21e4
created by golang.org/x/exp/shiny/driver/gldriver.preparedOpenGL in goroutine 1
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:91 +0x180

goroutine 1 gp=0x140000021c0 m=nil [chan receive, locked to thread]:
runtime.gopark(0x1400006eb68?, 0x102523ce8?, 0x26?, 0x0?, 0x102664ea0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400006eb40 sp=0x1400006eb20 pc=0x1024ba918
runtime.chanrecv(0x140001922a0, 0x0, 0x1)
	/usr/local/go/src/runtime/chan.go:639 +0x414 fp=0x1400006ebc0 sp=0x1400006eb40 pc=0x102458654
runtime.chanrecv1(0x140001d6038?, 0x10258ab00?)
	/usr/local/go/src/runtime/chan.go:489 +0x14 fp=0x1400006ebf0 sp=0x1400006ebc0 pc=0x102458234
golang.org/x/exp/shiny/driver/gldriver.drawgl(0x8e2?)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:133 +0x160 fp=0x1400006ec40 sp=0x1400006ebf0 pc=0x1025290f0
_cgoexp_b3b7fefaa70a_drawgl(0x1400006ecb8?)
	_cgo_gotypes.go:381 +0x20 fp=0x1400006ec60 sp=0x1400006ec40 pc=0x10252a4a0
runtime.cgocallbackg1(0x10252a480, 0x16d9abff8, 0x0)
	/usr/local/go/src/runtime/cgocall.go:442 +0x218 fp=0x1400006ed30 sp=0x1400006ec60 pc=0x102456878
runtime.cgocallbackg(0x10252a480, 0x16d9abff8, 0x0)
	/usr/local/go/src/runtime/cgocall.go:361 +0xf4 fp=0x1400006ed80 sp=0x1400006ed30 pc=0x1024565d4
runtime.cgocallbackg(0x10252a480, 0x16d9abff8, 0x0)
	<autogenerated>:1 +0x1c fp=0x1400006edb0 sp=0x1400006ed80 pc=0x1024c3e5c
runtime.cgocallback(0x1400006ee28, 0x102528940, 0x1025391dc)
	/usr/local/go/src/runtime/asm_arm64.s:1131 +0xb0 fp=0x1400006ede0 sp=0x1400006edb0 pc=0x1024c20f0
runtime.systemstack_switch()
	/usr/local/go/src/runtime/asm_arm64.s:201 +0x8 fp=0x1400006edf0 sp=0x1400006ede0 pc=0x1024bfc88
runtime.cgocall(0x1025391dc, 0x1400006ee68)
	/usr/local/go/src/runtime/cgocall.go:185 +0x70 fp=0x1400006ee30 sp=0x1400006edf0 pc=0x1024b5c40
golang.org/x/exp/shiny/driver/gldriver._Cfunc_startDriver()
	_cgo_gotypes.go:329 +0x30 fp=0x1400006ee60 sp=0x1400006ee30 pc=0x102528940
golang.org/x/exp/shiny/driver/gldriver.main(0x1025a7be8)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:106 +0xc0 fp=0x1400006eec0 sp=0x1400006ee60 pc=0x102528f20
golang.org/x/exp/shiny/driver/gldriver.Main(0x1025a7be8)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/gldriver.go:26 +0x20 fp=0x1400006eef0 sp=0x1400006eec0 pc=0x102525960
golang.org/x/exp/shiny/driver.main(...)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/driver_darwin.go:16
golang.org/x/exp/shiny/driver.Main(...)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/driver.go:24
main.gfx_main(...)
	/Users/Shared/GitHub/9fans-go/cmd/devdraw/screen.go:26
main.main()
	/Users/Shared/GitHub/9fans-go/cmd/devdraw/srv.go:65 +0x390 fp=0x1400006ef40 sp=0x1400006eef0 pc=0x1025369d0
runtime.main()
	/usr/local/go/src/runtime/proc.go:272 +0x288 fp=0x1400006efd0 sp=0x1400006ef40 pc=0x102487758
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400006efd0 sp=0x1400006efd0 pc=0x1024c21e4

goroutine 18 gp=0x14000102380 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400005a790 sp=0x1400005a770 pc=0x1024ba918
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:430
runtime.forcegchelper()
	/usr/local/go/src/runtime/proc.go:337 +0xb8 fp=0x1400005a7d0 sp=0x1400005a790 pc=0x102487ab8
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005a7d0 sp=0x1400005a7d0 pc=0x1024c21e4
created by runtime.init.7 in goroutine 1
	/usr/local/go/src/runtime/proc.go:325 +0x24

goroutine 19 gp=0x14000102540 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400005af60 sp=0x1400005af40 pc=0x1024ba918
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:430
runtime.bgsweep(0x14000112000)
	/usr/local/go/src/runtime/mgcsweep.go:317 +0x108 fp=0x1400005afb0 sp=0x1400005af60 pc=0x102473988
runtime.gcenable.gowrap1()
	/usr/local/go/src/runtime/mgc.go:203 +0x28 fp=0x1400005afd0 sp=0x1400005afb0 pc=0x102467ba8
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005afd0 sp=0x1400005afd0 pc=0x1024c21e4
created by runtime.gcenable in goroutine 1
	/usr/local/go/src/runtime/mgc.go:203 +0x6c

goroutine 20 gp=0x14000102700 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0xe3fb34?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400005b760 sp=0x1400005b740 pc=0x1024ba918
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:430
runtime.(*scavengerState).park(0x102664680)
	/usr/local/go/src/runtime/mgcscavenge.go:425 +0x5c fp=0x1400005b790 sp=0x1400005b760 pc=0x10247131c
runtime.bgscavenge(0x14000112000)
	/usr/local/go/src/runtime/mgcscavenge.go:658 +0xac fp=0x1400005b7b0 sp=0x1400005b790 pc=0x1024718cc
runtime.gcenable.gowrap2()
	/usr/local/go/src/runtime/mgc.go:204 +0x28 fp=0x1400005b7d0 sp=0x1400005b7b0 pc=0x102467b48
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005b7d0 sp=0x1400005b7d0 pc=0x1024c21e4
created by runtime.gcenable in goroutine 1
	/usr/local/go/src/runtime/mgc.go:204 +0xac

goroutine 34 gp=0x14000182700 m=nil [finalizer wait]:
runtime.gopark(0x1400005e5b8?, 0x1024bb348?, 0x8?, 0x0?, 0x102581160?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400005e580 sp=0x1400005e560 pc=0x1024ba918
runtime.runfinq()
	/usr/local/go/src/runtime/mfinal.go:193 +0x108 fp=0x1400005e7d0 sp=0x1400005e580 pc=0x102466ca8
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400005e7d0 sp=0x1400005e7d0 pc=0x1024c21e4
created by runtime.createfing in goroutine 1
	/usr/local/go/src/runtime/mfinal.go:163 +0x80

goroutine 35 gp=0x140001828c0 m=nil [chan receive]:
runtime.gopark(0x1400011ecd8?, 0x102458b64?, 0xb8?, 0xec?, 0x1025278d0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400011ec60 sp=0x1400011ec40 pc=0x1024ba918
runtime.chanrecv(0x14000192380, 0x1400011ed30, 0x1)
	/usr/local/go/src/runtime/chan.go:639 +0x414 fp=0x1400011ece0 sp=0x1400011ec60 pc=0x102458654
runtime.chanrecv1(0x70?, 0x102537ef0?)
	/usr/local/go/src/runtime/chan.go:489 +0x14 fp=0x1400011ed10 sp=0x1400011ece0 pc=0x102458234
golang.org/x/mobile/gl.(*context).enqueue(...)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/gl/work.go:108
golang.org/x/mobile/gl.(*context).Flush(...)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/gl/gl.go:581
golang.org/x/mobile/gl.context3.Flush({0x0?})
	<autogenerated>:1 +0x90 fp=0x1400011edb0 sp=0x1400011ed10 pc=0x102521810
golang.org/x/exp/shiny/driver/gldriver.(*windowImpl).Publish(0x140001d6000)
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/window.go:377 +0x9c fp=0x1400011edf0 sp=0x1400011edb0 pc=0x1025283cc
main.shinyMain({0x1025a9110, 0x1026645a0})
	/Users/Shared/GitHub/9fans-go/cmd/devdraw/screen.go:223 +0x358 fp=0x1400011efb0 sp=0x1400011edf0 pc=0x102535f98
golang.org/x/exp/shiny/driver/gldriver.driverStarted.func1()
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:113 +0x38 fp=0x1400011efd0 sp=0x1400011efb0 pc=0x10252a3c8
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400011efd0 sp=0x1400011efd0 pc=0x1024c21e4
created by golang.org/x/exp/shiny/driver/gldriver.driverStarted in goroutine 1
	/Users/lorena/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver/cocoa.go:112 +0x24

goroutine 36 gp=0x14000182a80 m=12 mp=0x14000181808 [syscall]:
syscall.syscall(0x1400009fd38?, 0x1024eaf3c?, 0x800000?, 0x7ffff800000?)
	/usr/local/go/src/runtime/sys_darwin.go:27 +0x48 fp=0x1400009fd00 sp=0x1400009fc70 pc=0x1024bdd68
syscall.read(0x140001b4000?, {0x14000204188?, 0x1400009fd78?, 0x1024b6d18?})
	/usr/local/go/src/syscall/zsyscall_darwin_arm64.go:1245 +0x48 fp=0x1400009fd40 sp=0x1400009fd00 pc=0x1024de838
syscall.Read(...)
	/usr/local/go/src/syscall/syscall_unix.go:183
internal/poll.ignoringEINTRIO(...)
	/usr/local/go/src/internal/poll/fd_unix.go:745
internal/poll.(*FD).Read(0x140001b4000, {0x14000204188, 0x4, 0x4})
	/usr/local/go/src/internal/poll/fd_unix.go:161 +0x220 fp=0x1400009fde0 sp=0x1400009fd40 pc=0x1024eb090
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0x140001a0090, {0x14000204188?, 0x1400009fe68?, 0x1024fde54?})
	/usr/local/go/src/os/file.go:124 +0x70 fp=0x1400009fe20 sp=0x1400009fde0 pc=0x1024ebec0
io.ReadAtLeast({0x1025a8a88, 0x140001a0090}, {0x14000204188, 0x4, 0x4}, 0x4)
	/usr/local/go/src/io/io.go:335 +0xa0 fp=0x1400009fe70 sp=0x1400009fe20 pc=0x1024c9d90
io.ReadFull(...)
	/usr/local/go/src/io/io.go:354
9fans.net/go/draw/drawfcall.ReadMsg({0x1025a8a88, 0x140001a0090})
	/Users/Shared/GitHub/9fans-go/draw/drawfcall/msg.go:232 +0x58 fp=0x1400009fed0 sp=0x1400009fe70 pc=0x1024fde78
main.serveproc(0x140001bc008)
	/Users/Shared/GitHub/9fans-go/cmd/devdraw/srv.go:121 +0x44 fp=0x1400009ffb0 sp=0x1400009fed0 pc=0x102536b44
main.gfx_started.gowrap1()
	/Users/Shared/GitHub/9fans-go/cmd/devdraw/srv.go:71 +0x28 fp=0x1400009ffd0 sp=0x1400009ffb0 pc=0x102536ac8
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400009ffd0 sp=0x1400009ffd0 pc=0x1024c21e4
created by main.gfx_started in goroutine 35
	/Users/Shared/GitHub/9fans-go/cmd/devdraw/srv.go:71 +0x70

goroutine 50 gp=0x14000214000 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001ca710 sp=0x140001ca6f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001ca7b0 sp=0x140001ca710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001ca7d0 sp=0x140001ca7b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001ca7d0 sp=0x140001ca7d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 51 gp=0x140002141c0 m=nil [GC worker (idle)]:
runtime.gopark(0x314c059ef032a?, 0x1?, 0x44?, 0x56?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001caf10 sp=0x140001caef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001cafb0 sp=0x140001caf10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001cafd0 sp=0x140001cafb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001cafd0 sp=0x140001cafd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 38 gp=0x14000182e00 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x11?, 0x11?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001cef10 sp=0x140001ceef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001cefb0 sp=0x140001cef10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001cefd0 sp=0x140001cefb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001cefd0 sp=0x140001cefd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 39 gp=0x14000182fc0 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001cf710 sp=0x140001cf6f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001cf7b0 sp=0x140001cf710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001cf7d0 sp=0x140001cf7b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001cf7d0 sp=0x140001cf7d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 40 gp=0x14000183180 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001cff10 sp=0x140001cfef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001cffb0 sp=0x140001cff10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001cffd0 sp=0x140001cffb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001cffd0 sp=0x140001cffd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 41 gp=0x14000183340 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001d0710 sp=0x140001d06f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001d07b0 sp=0x140001d0710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001d07d0 sp=0x140001d07b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001d07d0 sp=0x140001d07d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 42 gp=0x14000183500 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001d0f10 sp=0x140001d0ef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001d0fb0 sp=0x140001d0f10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001d0fd0 sp=0x140001d0fb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001d0fd0 sp=0x140001d0fd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 43 gp=0x140001836c0 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001d1710 sp=0x140001d16f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001d17b0 sp=0x140001d1710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001d17d0 sp=0x140001d17b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001d17d0 sp=0x140001d17d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 44 gp=0x14000183880 m=nil [GC worker (idle)]:
runtime.gopark(0x314c08e8f75f1?, 0x1?, 0x84?, 0xdd?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001d1f10 sp=0x140001d1ef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001d1fb0 sp=0x140001d1f10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001d1fd0 sp=0x140001d1fb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001d1fd0 sp=0x140001d1fd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 45 gp=0x14000183a40 m=nil [GC worker (idle)]:
runtime.gopark(0x314c08e8f911f?, 0x3?, 0xcf?, 0x15?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001f2710 sp=0x140001f26f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001f27b0 sp=0x140001f2710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001f27d0 sp=0x140001f27b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001f27d0 sp=0x140001f27d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 46 gp=0x14000183c00 m=nil [GC worker (idle)]:
runtime.gopark(0x314c08e8f79d9?, 0x3?, 0x4d?, 0x77?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001f2f10 sp=0x140001f2ef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001f2fb0 sp=0x140001f2f10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001f2fd0 sp=0x140001f2fb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001f2fd0 sp=0x140001f2fd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 47 gp=0x14000183dc0 m=nil [GC worker (idle)]:
runtime.gopark(0x314c08e8f7427?, 0x140001b8160?, 0x1a?, 0xa?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001f3710 sp=0x140001f36f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001f37b0 sp=0x140001f3710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001f37d0 sp=0x140001f37b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001f37d0 sp=0x140001f37d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 48 gp=0x140001f6000 m=nil [GC worker (idle)]:
runtime.gopark(0x314c08e8f74f7?, 0x1?, 0x89?, 0x7b?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x1400006ff10 sp=0x1400006fef0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x1400006ffb0 sp=0x1400006ff10 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x1400006ffd0 sp=0x1400006ffb0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1400006ffd0 sp=0x1400006ffd0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

goroutine 49 gp=0x140001f61c0 m=nil [GC worker (idle)]:
runtime.gopark(0x314c08e8f875b?, 0x1?, 0xf3?, 0x9b?, 0x0?)
	/usr/local/go/src/runtime/proc.go:424 +0xc8 fp=0x140001f4710 sp=0x140001f46f0 pc=0x1024ba918
runtime.gcBgMarkWorker(0x14000212000)
	/usr/local/go/src/runtime/mgc.go:1363 +0xdc fp=0x140001f47b0 sp=0x140001f4710 pc=0x102469c8c
runtime.gcBgMarkStartWorkers.gowrap1()
	/usr/local/go/src/runtime/mgc.go:1279 +0x28 fp=0x140001f47d0 sp=0x140001f47b0 pc=0x102469b78
runtime.goexit({})
	/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x140001f47d0 sp=0x140001f47d0 pc=0x1024c21e4
created by runtime.gcBgMarkStartWorkers in goroutine 35
	/usr/local/go/src/runtime/mgc.go:1279 +0x140

r0      0x15be06ac0
r1      0x4000002057cb5ad
r2      0x2057cb5a8
r3      0x0
r4      0x15a71f300
r5      0x22
r6      0x0
r7      0x0
r8      0x0
r9      0x0
r10     0x100
r11     0x3f
r12     0x1d
r13     0x33901c7c0
r14     0x4000002057cb5ad
r15     0x2057cb5a8
r16     0x4000002057cb5ad
r17     0x6
r18     0x0
r19     0x0
r20     0x600002f1c540
r21     0x15ba0b2a0
r22     0x15a71f2b0
r23     0x15be06ac0
r24     0xae10
r25     0xac80
r26     0xac70
r27     0xac98
r28     0xac84
r29     0x16f9ce7f0
lr      0x15429a9a8
sp      0x16f9ce7b0
pc      0x15429ab48
fault   0x28
samterm: readkbd: EOF

The crash happens at random, sometimes it crashes immediately, sometimes I need to drag the resize many times until it crashes.

Machine:

Chip: Apple M3 Max
OS: macOS Sonoma Version 14.5

Details of the sam binary:

% go version -m /Users/lorena/go/bin/sam
/Users/lorena/go/bin/sam: go1.23.1
	path	9fans.net/go/cmd/sam
	mod	9fans.net/go	(devel)	
	build	-buildmode=exe
	build	-compiler=gc
	build	DefaultGODEBUG=asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,netedns0=0,panicnil=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
	build	CGO_ENABLED=1
	build	CGO_CFLAGS=
	build	CGO_CPPFLAGS=
	build	CGO_CXXFLAGS=
	build	CGO_LDFLAGS=
	build	GOARCH=arm64
	build	GOOS=darwin
	build	GOARM64=v8.0
	build	vcs=git
	build	vcs.revision=92f1cafda2b65f8a2aff6eaaa76799fa06d5f795
	build	vcs.time=2024-08-11T19:07:05Z
	build	vcs.modified=true

Details of the samterm binary:

% go version -m /Users/lorena/go/bin/samterm
/Users/lorena/go/bin/samterm: go1.23.1
	path	9fans.net/go/cmd/samterm
	mod	9fans.net/go	(devel)	
	dep	golang.org/x/sys	v0.24.0	h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
	build	-buildmode=exe
	build	-compiler=gc
	build	DefaultGODEBUG=asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,netedns0=0,panicnil=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
	build	CGO_ENABLED=1
	build	CGO_CFLAGS=
	build	CGO_CPPFLAGS=
	build	CGO_CXXFLAGS=
	build	CGO_LDFLAGS=
	build	GOARCH=arm64
	build	GOOS=darwin
	build	GOARM64=v8.0
	build	vcs=git
	build	vcs.revision=92f1cafda2b65f8a2aff6eaaa76799fa06d5f795
	build	vcs.time=2024-08-11T19:07:05Z
	build	vcs.modified=true

Details of the devdraw binary:

% go version -m /Users/lorena/go/bin/devdraw
/Users/lorena/go/bin/devdraw: go1.23.1
	path	9fans.net/go/cmd/devdraw
	mod	9fans.net/go	(devel)	
	dep	golang.org/x/exp	v0.0.0-20210405174845-4513512abef3	h1:ZsldXBaaFMK70l0+CbgvsHOcjhgd9LzPhePQIsm5aS4=
	dep	golang.org/x/image	v0.0.0-20190802002840-cff245a6509b	h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=
	dep	golang.org/x/mobile	v0.0.0-20210220033013-bdb1ca9a1e08	h1:h+GZ3ubjuWaQjGe8owMGcmMVCqs0xYJtRG5y2bpHaqU=
	build	-buildmode=exe
	build	-compiler=gc
	build	DefaultGODEBUG=asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,netedns0=0,panicnil=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
	build	CGO_ENABLED=1
	build	CGO_CFLAGS=
	build	CGO_CPPFLAGS=
	build	CGO_CXXFLAGS=
	build	CGO_LDFLAGS=
	build	GOARCH=arm64
	build	GOOS=darwin
	build	GOARM64=v8.0
	build	vcs=git
	build	vcs.revision=510f6a09135ee7c36bedda412f9ce1698dccbeae
	build	vcs.time=2024-05-30T20:39:22Z
	build	vcs.modified=true

To clarify, sam starts correctly, it's only resizing that doesn't work:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant